-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0b1f5c
commit eda795e
Showing
6 changed files
with
122 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2021-Present The Zarf Authors | ||
|
||
// Package test provides e2e tests for Zarf. | ||
package test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestZarfDevGenerate(t *testing.T) { | ||
t.Log("E2E: Zarf Dev Generate") | ||
|
||
stdOut, stdErr, err := e2e.Zarf("dev", "generate", "podinfo", "--url", "https://github.com/stefanprodan/podinfo.git", "--version", "6.4.0", "--gitPath", "charts/podinfo") | ||
require.NoError(t, err, stdOut, stdErr) | ||
|
||
|
||
|
||
// Assert the ZarfPackageConfig | ||
// ```yaml | ||
// kind: ZarfPackageConfig | ||
// metadata: | ||
// name: podinfo # This is <package-name> | ||
|
||
// components: | ||
// - name: podinfo # This is <package-name> | ||
// required: true | ||
// charts: | ||
// - name: podinfo # This is <chart-name> from the Chart.yaml | ||
// version: 6.4.0 # This is --version | ||
// namespace: podinfo # This is <chart-name> from the Chart.yaml | ||
// url: https://github.com/stefanprodan/podinfo.git # This is --url | ||
// gitPath: charts/podinfo # This is --gitPath | ||
// images: # These are autodiscovered with find-images logic | ||
// - ghcr.io/stefanprodan/podinfo:6.4.0 | ||
// # This is the cosign signature for the podinfo image for image signature verification | ||
// - ghcr.io/stefanprodan/podinfo:sha256-57a654ace69ec02ba8973093b6a786faa15640575fbf0dbb603db55aca2ccec8.sig | ||
// ``` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters