Skip to content

Commit

Permalink
Add a ignore_files parameter to the test_packages integration test
Browse files Browse the repository at this point in the history
This allows the test to ignore certain files or directories when
checking the contents of the request output. The parameter takes a map
that has as key the directory that needs to be checked (as declared in
the expected_files parameter) and a list of file/directory names to be
ignored.

Note that these names do not represent absolute paths, so any file or
directory matching each name will be ignored.

Signed-off-by: Bruno Pimentel <[email protected]>
  • Loading branch information
brunoapimentel authored and eskultety committed May 28, 2024
1 parent f5ad451 commit 052a78a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/test_data/gomod_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5825,6 +5825,9 @@ go_1.21:
expected_files:
app: https://github.com/cachito-testing/retrodep/tarball/d0c316edef82e527fed5713f9960cfe7f7c29945
deps/gomod/pkg/mod/cache/download/: https://github.com/cachito-testing/test_files/raw/master/retrodep-deps-go-1_21.tar.gz
ignore_files:
deps/gomod/pkg/mod/cache/download/:
- sumdb
content_manifest:
- purl: "pkg:golang/github.com%2Frelease-engineering%2Fretrodep%[email protected]"
dep_purls:
Expand Down

0 comments on commit 052a78a

Please sign in to comment.