Skip to content

Commit 4278b65

Browse files
committed
test: align release contracts with private rails
1 parent 1761e1a commit 4278b65

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

tests/capsem-build-chain/test_active_docs_profile_contract.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"settings",
1717
}
1818

19+
ALLOWED_CONFIG_FILES = {
20+
"README.md",
21+
"public-surface.toml",
22+
"storage-policy.toml",
23+
}
24+
1925
FORBIDDEN_CONFIG_DIRS = {
2026
"admin",
2127
"default",
@@ -209,12 +215,12 @@ def test_config_root_has_only_declared_authority_directories() -> None:
209215
}
210216
assert actual_dirs == ALLOWED_CONFIG_DIRS
211217

212-
unexpected_files = [
218+
actual_files = {
213219
path.name
214220
for path in CONFIG_ROOT.iterdir()
215-
if path.is_file() and path.name != "README.md" and not path.name.startswith(".")
216-
]
217-
assert unexpected_files == []
221+
if path.is_file() and not path.name.startswith(".")
222+
}
223+
assert actual_files == ALLOWED_CONFIG_FILES
218224

219225
forbidden_present = sorted(FORBIDDEN_CONFIG_DIRS & actual_dirs)
220226
assert forbidden_present == []

tests/capsem-build-chain/test_obom_sbom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_release_workflows_generate_binary_sbom_and_asset_obom() -> None:
2828
"- name: Build VM assets"
2929
)
3030
assert asset_workflow.index("CAPSEM_CDXGEN_CMD: cdxgen") < asset_workflow.index(
31-
"just build-rootfs"
31+
"just _build-rootfs"
3232
)
3333
assert "asset-channel-preview" in asset_workflow
3434
assert "Publish immutable GitHub asset release" in asset_workflow

0 commit comments

Comments
 (0)