Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/test_cookiecutter.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_default_project(cookies):
for platform in ("linux/arm64", "linux/amd64"):
env["PLATFORM"] = platform
subprocess.run(
["task", "-v", "build", "test", "sbom", "vulnscan"],
["task", "-v", "build", "test", "sbom", "vulnscan", "license-check"],
capture_output=True,
check=True,
cwd=project,
Expand Down Expand Up @@ -266,7 +266,7 @@ def test_default_project(cookies):
f"Unexpected exit code when running {command}; expected {expected_exit}, received {process.returncode}"
)

# Clean the repo, perform a multi-platform build, and then run the sbom and vulnscan task to ensure it all works
# Clean the repo, perform a multi-platform build, and then run the sbom / vulnscan / license check tasks to ensure it all works
# We cannot functionally test a multi-platform image without pushing it to a registry and then pulling it back down because they can't directly be
# loaded into the docker daemon
env["PLATFORM"] = "all"
Expand All @@ -278,6 +278,7 @@ def test_default_project(cookies):
"build",
"sbom",
"vulnscan",
"license-check",
],
capture_output=True,
check=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ def test_multi_platform_build():
env=env,
)

# Test SBOM generation for specific platforms
# Test SBOM generation, vuln scanning, and license checks for each supported platforms
for platform in ["linux/amd64", "linux/arm64"]:
env["PLATFORM"] = platform
subprocess.run(
["task", "-v", "sbom", "vulnscan"],
["task", "-v", "sbom", "vulnscan", "license-check"],
capture_output=True,
check=True,
cwd=project_root,
Expand Down
Loading