9
9
"testing"
10
10
11
11
"github.com/stretchr/testify/require"
12
- "github.com/zarf-dev/zarf/src/pkg/utils/exec"
13
12
)
14
13
15
14
func TestGHCRDeploy (t * testing.T ) {
@@ -25,20 +24,7 @@ func TestGHCRDeploy(t *testing.T) {
25
24
}
26
25
27
26
// Test with command from https://docs.zarf.dev/getting-started/install/
28
- stdOut , stdErr , err := e2e .Zarf (t , "package" , "deploy" , fmt .Sprintf ("oci://🦄/dos-games:1.0.0-%s@sha256:%s" , e2e .Arch , sha ), "--key=https://zarf.dev/cosign.pub" , "--confirm" )
29
- require .NoError (t , err , stdOut , stdErr )
30
-
31
- stdOut , stdErr , err = e2e .Zarf (t , "package" , "remove" , "dos-games" , "--confirm" )
32
- require .NoError (t , err , stdOut , stdErr )
33
- }
34
-
35
- func TestCosignDeploy (t * testing.T ) {
36
- t .Log ("E2E: Cosign deploy" )
37
-
38
- // Test with command from https://docs.zarf.dev/getting-started/install/
39
- command := fmt .Sprintf ("%s package deploy sget://defenseunicorns/zarf-hello-world:$(uname -m) --confirm" , e2e .ZarfBinPath )
40
-
41
- stdOut , stdErr , err := exec .CmdWithTesting (t , exec .PrintCfg (), "sh" , "-c" , command )
27
+ stdOut , stdErr , err := e2e .Zarf (t , "package" , "deploy" , fmt .Sprintf ("oci://🦄/dos-games:1.0.0-%s@sha256:%s" , e2e .Arch , sha ), "--key=https://raw.githubusercontent.com/zarf-dev/zarf/v0.38.2/cosign.pub" , "--confirm" )
42
28
require .NoError (t , err , stdOut , stdErr )
43
29
44
30
stdOut , stdErr , err = e2e .Zarf (t , "package" , "remove" , "dos-games" , "--confirm" )
0 commit comments