feat(deploy): register Depttrans zone authority
This commit is contained in:
@@ -34,9 +34,12 @@ RUNNER = load_runner()
|
||||
|
||||
|
||||
class EngineProviderRotatingSlotTest(unittest.TestCase):
|
||||
def source_has_exact_successor(self):
|
||||
path = ENGINE_ROOT / "nodedc-source/server/dataProductPublishGrant/providerCatalog.js"
|
||||
return hashlib.sha256(path.read_bytes()).hexdigest() == AUTHORITY_SUCCESSOR_SHA256
|
||||
def source_has_advanced(self):
|
||||
current_sha256 = {
|
||||
relative_path: hashlib.sha256((ENGINE_ROOT / relative_path).read_bytes()).hexdigest()
|
||||
for relative_path in RUNNER.ENGINE_PROVIDER_ROTATING_SLOT_ARTIFACT_ENTRIES
|
||||
}
|
||||
return current_sha256 != RUNNER.ENGINE_PROVIDER_ROTATING_SLOT_TARGET_SHA256
|
||||
|
||||
def build(self, artifact_dir):
|
||||
environment = os.environ.copy()
|
||||
@@ -52,7 +55,7 @@ class EngineProviderRotatingSlotTest(unittest.TestCase):
|
||||
return json.loads(completed.stdout)
|
||||
|
||||
def test_builder_emits_exact_deterministic_two_file_slice(self):
|
||||
if self.source_has_exact_successor():
|
||||
if self.source_has_advanced():
|
||||
self.skipTest("historical rotating-slot builder source has advanced to its exact successor")
|
||||
with tempfile.TemporaryDirectory(prefix="nodedc-provider-rotating-slot-") as directory:
|
||||
root = Path(directory)
|
||||
@@ -161,7 +164,7 @@ class EngineProviderRotatingSlotTest(unittest.TestCase):
|
||||
composite_acceptance.assert_not_called()
|
||||
|
||||
def test_live_acceptance_uses_the_rotating_slot_target_contract(self):
|
||||
if self.source_has_exact_successor():
|
||||
if self.source_has_advanced():
|
||||
self.skipTest("historical rotating-slot live fixture source has advanced to its exact successor")
|
||||
expected_live = (
|
||||
"engine-provider-rotating-slot:gelios.provider.v4:"
|
||||
|
||||
Reference in New Issue
Block a user