feat(deploy): register Depttrans zone authority
This commit is contained in:
@@ -33,7 +33,16 @@ RUNNER = load_runner()
|
||||
|
||||
|
||||
class EngineProviderAuthorityDiagnosticsTest(unittest.TestCase):
|
||||
def require_historical_target(self):
|
||||
current_sha256 = {
|
||||
relative_path: hashlib.sha256((ENGINE_ROOT / relative_path).read_bytes()).hexdigest()
|
||||
for relative_path in RUNNER.ENGINE_PROVIDER_AUTHORITY_DIAGNOSTICS_ARTIFACT_ENTRIES
|
||||
}
|
||||
if current_sha256 != RUNNER.ENGINE_PROVIDER_AUTHORITY_DIAGNOSTICS_TARGET_SHA256:
|
||||
self.skipTest("historical provider authority diagnostics source has advanced")
|
||||
|
||||
def build(self, artifact_dir):
|
||||
self.require_historical_target()
|
||||
environment = os.environ.copy()
|
||||
environment["NODEDC_ENGINE_SOURCE_ROOT"] = str(ENGINE_ROOT)
|
||||
environment["NODEDC_DEPLOY_ARTIFACT_DIR"] = str(artifact_dir)
|
||||
@@ -126,6 +135,7 @@ class EngineProviderAuthorityDiagnosticsTest(unittest.TestCase):
|
||||
acceptance.assert_called_once_with()
|
||||
|
||||
def test_live_acceptance_uses_exact_reason_code_contract(self):
|
||||
self.require_historical_target()
|
||||
expected_live = "engine-provider-authority-diagnostics:exact-reason-codes:v1"
|
||||
with (
|
||||
mock.patch.object(RUNNER, "component_root", return_value=ENGINE_ROOT),
|
||||
|
||||
Reference in New Issue
Block a user