Skip to content

Commit

Permalink
fix: ignore source correlated check in EC tests (konflux-ci#1195)
Browse files Browse the repository at this point in the history
Some of the EC tests validate images via floating tags (as designed).
This makes it hard to provide the expected git commit. Here we just
ignore that particular check.

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva authored May 31, 2024
1 parent 33cf278 commit d51d4c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/enterprise-contract/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,15 @@ var _ = framework.EnterpriseContractSuiteDescribe("Enterprise Contract E2E tests
Expect(fwk.AsKubeAdmin.TektonController.CreateOrUpdateSigningSecret(goldenImagePublicKey, secretName, namespace)).To(Succeed())
generator.PublicKey = fmt.Sprintf("k8s://%s/%s", namespace, secretName)

policy := defaultECP.Spec
policy := contract.PolicySpecWithSourceConfig(
defaultECP.Spec,
ecp.SourceConfig{
Include: []string{"@slsa3"},
// This test validates an image via a floating tag (as designed). This makes
// it hard to provide the expected git commit. Here we just ignore that
// particular check.
Exclude: []string{"slsa_source_correlated.source_code_reference_provided"},
})
Expect(fwk.AsKubeAdmin.TektonController.CreateOrUpdatePolicyConfiguration(namespace, policy)).To(Succeed())

generator.WithComponentImage("quay.io/redhat-appstudio/ec-golden-image:latest")
Expand Down

0 comments on commit d51d4c7

Please sign in to comment.