Skip to content

Commit

Permalink
test(index_test.go): update e2e cases with artifact signature info
Browse files Browse the repository at this point in the history
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 committed Jul 20, 2023
1 parent 1b4fa54 commit 0e98e31
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/registry/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Test_upsertIndex(t *testing.T) {
upsertIndex(r, tt.ociArtifacts, i)

if !reflect.DeepEqual(i, expectedIndex) {
t.Errorf("index() = %v, want %v", i, expectedIndex)
t.Errorf("index() = %#v, want %v", i, expectedIndex)
}
})
}
Expand Down
4 changes: 4 additions & 0 deletions build/registry/testdata/index2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
name: The Falco Authors
sources:
- https://github.com/falcosecurity/rules/blob/main/rules/falco_rules.yaml
signature:
cosign:
certificate-oidc-issuer: https://token.actions.githubusercontent.com
certificate-identity-regexp: https://github.com/falcosecurity/rules/
4 changes: 4 additions & 0 deletions build/registry/testdata/index_expected1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
name: The Falco Authors
sources:
- https://github.com/falcosecurity/rules/blob/main/rules/falco_rules.yaml
signature:
cosign:
certificate-oidc-issuer: https://token.actions.githubusercontent.com
certificate-identity-regexp: https://github.com/falcosecurity/rules/
8 changes: 8 additions & 0 deletions build/registry/testdata/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ rulesfiles:
keywords:
- falco
url: https://github.com/falcosecurity/rules/blob/main/rules/falco_rules.yaml
signature:
cosign:
certificate-oidc-issuer: https://token.actions.githubusercontent.com
certificate-identity-regexp: https://github.com/falcosecurity/rules/
- name: applications
description: Application rules
authors: The Falco Authors
Expand All @@ -21,3 +25,7 @@ rulesfiles:
path: rules/application_rules.yaml
url: https://github.com/falcosecurity/rules/blob/main/rules/application_rules.yaml
license: apache-2.0
signature:
cosign:
certificate-oidc-issuer: https://token.actions.githubusercontent.com
certificate-identity-regexp: https://github.com/falcosecurity/rules/

0 comments on commit 0e98e31

Please sign in to comment.