Skip to content

Commit

Permalink
tmp fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonywendt committed Sep 8, 2023
1 parent ee1753d commit fd8c2b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/e2e/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestBundleWithRemoteInitGhcrPkg(t *testing.T) {
bundlePath := filepath.Join(bundleDir, fmt.Sprintf("uds-bundle-remote-init-ghcr-%s-0.0.1.tar.zst", e2e.Arch))

ghcrLogin(t)
create(t, bundleDir)
createSecure(t, bundleDir)
inspect(t, bundlePath)
deploy(t, bundlePath)
remove(t, bundlePath)
Expand Down Expand Up @@ -205,6 +205,12 @@ func create(t *testing.T, bundlePath string) {
require.NoError(t, err)
}

func createSecure(t *testing.T, bundlePath string) {
cmd := strings.Split(fmt.Sprintf("bundle create %s --set INIT_VERSION=%s --confirm", bundlePath, zarfVersion), " ")
_, _, err := e2e.UDS(cmd...)
require.NoError(t, err)
}

func createRemote(t *testing.T, bundlePath string, registry string) {
cmd := strings.Split(fmt.Sprintf("bundle create %s -o oci://%s --set INIT_VERSION=%s --confirm --insecure", bundlePath, registry, zarfVersion), " ")
_, _, err := e2e.UDS(cmd...)
Expand Down

0 comments on commit fd8c2b5

Please sign in to comment.