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
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ def admitted_pins(p):
HISTORICAL_PROFILE_SHA='b2d3dd34b88a838a073fa64aa514681c01f1dfee0bd4388fea8441a87bc93dcf'
BASELINE_SHA='11224181c3b33d6894a35cc7e32f655b2087442e4ba4958ef7700dc2c333cad0'
HISTORICAL_ROWS_SHA='8b5d4e2c59978b2e5f0d3d6457a3276935de52859279a0047102017ebd11324c'
RESULT_ROWS_SHA='82cf6fef0c42fd06f4455030af39bb56aee210f7518531a9361ea435fdeb7022'
SUCCESSOR_BASE_ALLOWED_SHA='9d9a26a4c655f07c15072ddd715917e5ae7dbb77ec701e5ddb450ef8ab5f16f8'
SUCCESSOR_MAPPING_DELTA_SHA='e90554a5a7ead26b9db6eb3d250dd732bba1677842051406cf4d192437971060'
RESULT_ROWS_SHA='b9da4fff63926901802580850fcc91888455d5584cdc4e9d38daff1ed807031a'
SUCCESSOR_BASE_ALLOWED_SHA='2e15d85a1ea33e9f2bca9f24f10046e9a10ea1c28645c4faf4fe9376dd816546'
SUCCESSOR_MAPPING_DELTA_SHA='7851f21c579ca183d7c5a7641dcc114213ffa7d67e18187b2b93da5fceea1741'
RETAINED_PHYSICAL_ROWS_SHA='33f0adb4e40baf2da15d1794e46311b66ecb1bbb2c80cf517ce98d2f83d0d07a'
BASE='/home/developer/.local/share/fs-gg-private'
HISTORICAL_DATA=BASE+'/bar-stock-policy968-private-input-successor-20261003/packet/runtime-data'
DATA=BASE+'/bar-native-seed-data-preparation-20261005-v1/packet/runtime-data'
DATA=BASE+'/bar-native-seed-data-preparation-20261005-v2/packet/runtime-data'
HOST=BASE+'/bar-native-seed-input-preparation-20261005-v1/native-host/Broker.NativeProof'
POLICY=BASE+'/bar-native-seed-policy-adoption-root-operation-20261005-v1/placement/managed/RuntimeEvidence'
OLD_HOST='/tmp/bar-stock-fb00-managed-artifact-preparation-synthetic-pdb-successor-20261004/native-host/Broker.NativeProof'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ def digest(value):
def validate(self,p,digest):
with patch.object(m,'semantic_digest',side_effect=digest):return m.validate_schema(p)
def test_independent_golden_delta(self):
self.assertEqual(m.semantic_digest(self.delta),'e90554a5a7ead26b9db6eb3d250dd732bba1677842051406cf4d192437971060');self.assertEqual(len(self.projection),458);self.assertEqual(len(self.base),145);self.assertEqual(sum(x['kind']=='clrPE'for x in self.projection),313)
self.assertEqual(m.semantic_digest(self.delta),'7851f21c579ca183d7c5a7641dcc114213ffa7d67e18187b2b93da5fceea1741');self.assertEqual(len(self.projection),458);self.assertEqual(len(self.base),145);self.assertEqual(sum(x['kind']=='clrPE'for x in self.projection),313)
def test_consumed_v1_data_paths_refuse(self):
p,digest=self.fixture();old='/home/developer/.local/share/fs-gg-private/bar-native-seed-data-preparation-20261005-v1/packet/runtime-data'
q=copy.deepcopy(p);q['dataRoot']=old;self.denied(self.validate,q,digest)
q=copy.deepcopy(p);entry=next(x for x in q['mappingDelta']['added']if x['role']=='highBarPlugin')
for field in ('declaredPath','canonicalPath','baseAllowedKey'):entry['row'][field]=entry['row'][field].replace(m.DATA,old)
self.denied(self.validate,q,digest)
def test_complete_projection_and_retained_engine_authority(self):
p,digest=self.fixture();self.assertEqual(len(self.validate(p,digest)),458);p['authorityPins']=[];self.denied(self.validate,p,digest)
def test_missing_extra_duplicate_reordered_delta(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def forbidden(*args,**kwargs):raise RuntimeError('portable source controls prohi
suite=unittest.TestSuite()
for index,name in enumerate(FILES):
spec=importlib.util.spec_from_file_location('portable_seed_controls_'+str(index),ROOT/name);module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module);suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
expected=114
expected=115
if suite.countTestCases()!=expected:raise SystemExit('portable source control roster changed: '+str(suite.countTestCases()))
result=unittest.TextTestRunner(verbosity=2).run(suite)
if not result.wasSuccessful()or result.testsRun!=expected or result.skipped:raise SystemExit(1)
Expand Down