Files
Investidor-V2/outputs/investmoz-parques-QA-20261016/prove-frozen-installer.py
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

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'])}))