7 lines
856 B
Python
7 lines
856 B
Python
from http_common import *
|
|
s=login('installer');path='/management/investment/zones/profile-install';p=call(s,path)['plan'];candidate=json.loads((out/'CANDIDATA.json').read_text('utf-8'))
|
|
assert p['code_hash']==candidate['code_hash'];result=call(s,path,{'hash':p['hash'],'idempotency_key':str(uuid.uuid4()),'confirm':True})['receipt']
|
|
check('frozen_candidate_hash_auth_installer_noop',not result['changed'] and result['code_hash']==candidate['code_hash'])
|
|
(out/'INSTALADOR-CANDIDATA-FINAL.json').write_text(json.dumps({'candidate':candidate['candidate'],'receipt':result,'scope':'Final card-label build supplement; core seven retained components and compatibility build unchanged; no DDL repeated'},ensure_ascii=False,indent=2),'utf-8')
|
|
print(json.dumps({'candidate':candidate['candidate'],'checks':len(proof['checks']),'http_events':len(proof['events'])}))
|