Publish curated Unraid-AppOps-Gateway source from 402a0ef2e7d14e98325504f79ab7d7651ffc88b1
This commit is contained in:
1 parent
e49634bb10
commit
58f5e3c8c2
6 files changed
+70
-24
No files matched your search
@@ -2768,7 +2768,9 @@ def test_installer_explicit_archive_and_install_contract_includes_candidate_help
|
||||
assert "ops/gitea-deploy-broker/prepare_mcp_hub_candidate.py" in archive_paths
|
||||
assert "prepare_mcp_hub_candidate.py" in installed_modules
|
||||
powershell = (ROOT / "scripts/upgrade_deployment_controller.ps1").read_text(encoding="utf-8")
|
||||
assert "ops/gitea-deploy-broker" in powershell.split("& git archive", 1)[1].splitlines()[0]
|
||||
archive_command = next(line for line in powershell.splitlines()
|
||||
if line.lstrip().startswith("& git ") and " archive --format=tar " in line)
|
||||
assert "ops/gitea-deploy-broker" in archive_command
|
||||
|
||||
|
||||
def test_current_release_digest_binds_the_role_password_helper():
|
||||
@@ -3280,7 +3282,13 @@ def test_legacy_crlf_compatibility_is_limited_to_one_attested_handoff(
|
||||
assert module._matches_legacy_crlf_source(name, captured, source, identity) is accepted
|
||||
|
||||
|
||||
def test_current_e854_crlf_capture_requires_exact_full_release_identity():
|
||||
@pytest.mark.parametrize("revision,tree,artifact", [
|
||||
("e854334923cca574482d22b8424ba3ce46ec6aa1", "cf2a117f9222b952deb9902c646116612f3a7ea0",
|
||||
"e88739bf091c8bac77ea0db5b97300666a1baa8ba984bbf6ae91e3bf25719e08"),
|
||||
("aaf7d11821a86be65c91fead97a6a4758c4fbacd", "34a90f9bd06fa4efa26a19dbf5c7c13239d03721",
|
||||
"ba8de75ba04f25b5298f81d107e6108bc7a92de95531b390ade0bcba9e4678e2"),
|
||||
])
|
||||
def test_current_attested_crlf_capture_requires_exact_full_release_identity(revision, tree, artifact):
|
||||
checked_out_source = (ROOT / "scripts/run_repopulse_adoption.py").read_bytes()
|
||||
source = checked_out_source.replace(b"\r\n", b"\n")
|
||||
captured = source.replace(b"\n", b"\r\n")
|
||||
@@ -3291,10 +3299,10 @@ def test_current_e854_crlf_capture_requires_exact_full_release_identity():
|
||||
"e3036cef0f6e1934297de2d35c0381f93441bbf6f28bd18c94c3f47fc116e4e1"
|
||||
)
|
||||
identity = {
|
||||
"sourceRevision": "e854334923cca574482d22b8424ba3ce46ec6aa1",
|
||||
"sourceTree": "cf2a117f9222b952deb9902c646116612f3a7ea0",
|
||||
"sourceRevision": revision,
|
||||
"sourceTree": tree,
|
||||
"controllerVersion": "2.1.14",
|
||||
"artifactSha256": "e88739bf091c8bac77ea0db5b97300666a1baa8ba984bbf6ae91e3bf25719e08",
|
||||
"artifactSha256": artifact,
|
||||
}
|
||||
|
||||
assert module._matches_legacy_crlf_source(
|
||||
@@ -3313,17 +3321,23 @@ def test_current_e854_crlf_capture_requires_exact_full_release_identity():
|
||||
("run_repopulse_adoption.py", "", "", True),
|
||||
],
|
||||
)
|
||||
def test_current_e854_crlf_compatibility_rejects_near_misses(
|
||||
name, field, value, change_capture,
|
||||
@pytest.mark.parametrize("revision,tree,artifact", [
|
||||
("e854334923cca574482d22b8424ba3ce46ec6aa1", "cf2a117f9222b952deb9902c646116612f3a7ea0",
|
||||
"e88739bf091c8bac77ea0db5b97300666a1baa8ba984bbf6ae91e3bf25719e08"),
|
||||
("aaf7d11821a86be65c91fead97a6a4758c4fbacd", "34a90f9bd06fa4efa26a19dbf5c7c13239d03721",
|
||||
"ba8de75ba04f25b5298f81d107e6108bc7a92de95531b390ade0bcba9e4678e2"),
|
||||
])
|
||||
def test_current_attested_crlf_compatibility_rejects_near_misses(
|
||||
name, field, value, change_capture, revision, tree, artifact,
|
||||
):
|
||||
checked_out_source = (ROOT / "scripts/run_repopulse_adoption.py").read_bytes()
|
||||
source = checked_out_source.replace(b"\r\n", b"\n")
|
||||
captured = source.replace(b"\n", b"\r\n")
|
||||
identity = {
|
||||
"sourceRevision": "e854334923cca574482d22b8424ba3ce46ec6aa1",
|
||||
"sourceTree": "cf2a117f9222b952deb9902c646116612f3a7ea0",
|
||||
"sourceRevision": revision,
|
||||
"sourceTree": tree,
|
||||
"controllerVersion": "2.1.14",
|
||||
"artifactSha256": "e88739bf091c8bac77ea0db5b97300666a1baa8ba984bbf6ae91e3bf25719e08",
|
||||
"artifactSha256": artifact,
|
||||
}
|
||||
if field:
|
||||
identity[field] = value
|
||||
|
||||
Reference in new issue
Block a user