Skip to content

Commit

Permalink
Updates to match latest changes from KERIpy and fixing reference to N…
Browse files Browse the repository at this point in the history
…oBackers that should remain in this version

Signed-off-by: pfeairheller <[email protected]>
  • Loading branch information
pfeairheller committed Apr 4, 2024
1 parent 56c01e6 commit 0a57f60
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/keria/testing/testing_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def createRegistry(client, agent, salt, doist, deeds):
baks=[],
toad="0",
nonce=nonce,
cnfg=[eventing.TraitCodex.NoRegistrarBackers],
cnfg=[eventing.TraitCodex.NoBackers],
code=coring.MtrDex.Blake3_256)
anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
serder, sigers = Helpers.interact(pre=pre, bran=salt, pidx=0, ridx=0, dig=aid['d'], sn='1', data=[anchor])
Expand Down
10 changes: 8 additions & 2 deletions tests/app/test_aiding.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def test_identifier_collection_end(helpers):
assert res.status_code == 200
events = res.json
assert len(events) == 2
assert events[1] == serder.ked
assert events[1]['ked'] == serder.ked

serder = eventing.interact(pre=pre, dig=serder.said, sn=len(events), data=[pre])
sigers = [signer.sign(ser=serder.raw, index=0).qb64 for signer in signers]
Expand All @@ -748,7 +748,7 @@ def test_identifier_collection_end(helpers):
assert res.status_code == 200
events = res.json
assert len(events) == 3
assert events[2] == serder.ked
assert events[2]['ked'] == serder.ked

# Bad interactions
res = client.simulate_put(path="/identifiers/badrandy?type=ixn", body=json.dumps(body))
Expand Down Expand Up @@ -1135,6 +1135,7 @@ def test_contact_ends(helpers):
assert response.status == falcon.HTTP_200
assert response.json == [{'challenges': [],
'company': 'GLEIF',
'ends': {},
'first': 'Ken3',
'id': 'EAjKmvW6flpWJfdYYZ2Lu4pllPWKFjCBz0dcX-S86Nvg',
'last': 'Burns3',
Expand All @@ -1146,30 +1147,35 @@ def test_contact_ends(helpers):
assert response.status == falcon.HTTP_200
assert response.json == [{'challenges': [],
'company': 'GLEIF',
'ends': {},
'first': 'Ken3',
'id': 'EAjKmvW6flpWJfdYYZ2Lu4pllPWKFjCBz0dcX-S86Nvg',
'last': 'Burns3',
'wellKnowns': []},
{'challenges': [],
'company': 'GLEIF',
'ends': {},
'first': 'Ken1',
'id': 'EER-n23rDM2RQB8Kw4KRrm8SFpoid4Jnelhauo6KxQpz',
'last': 'Burns1',
'wellKnowns': []},
{'challenges': [],
'company': 'ProSapien',
'ends': {},
'first': 'Ken4',
'id': 'EGwcSt3uvK5-oHI7hVU7dKMvWt0vRfMW2demzBBMDnBG',
'last': 'Burns4',
'wellKnowns': []},
{'challenges': [],
'company': 'ProSapien',
'ends': {},
'first': 'Ken2',
'id': 'ELTQ3tF3n7QS8LDpKMdJyCMhVyMdvNPTiisnqW5ZQP3C',
'last': 'Burns2',
'wellKnowns': []},
{'challenges': [],
'company': 'GLEIF',
'ends': {},
'first': 'Ken0',
'id': 'EPo8Wy1xpTa6ri25M4IlmWBBzs5y8v4Qn3Z8xP4kEjcK',
'last': 'Burns0',
Expand Down
2 changes: 1 addition & 1 deletion tests/app/test_credentialing.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_registry_end(helpers, seeder):
baks=[],
toad="0",
nonce=nonce,
cnfg=[TraitCodex.NoRegistrarBackers],
cnfg=[TraitCodex.NoBackers],
code=coring.MtrDex.Blake3_256)
anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
serder, sigers = helpers.interact(pre=pre, bran=salt, pidx=0, ridx=0, dig=aid['d'], sn='1', data=[anchor])
Expand Down
2 changes: 1 addition & 1 deletion tests/app/test_ipexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def test_multisig_grant_admit(seeder, helpers):
baks=[],
toad="0",
nonce=nonce,
cnfg=[eventing.TraitCodex.NoRegistrarBackers],
cnfg=[eventing.TraitCodex.NoBackers],
code=coring.MtrDex.Blake3_256)

anchor = dict(i=regser.ked['i'], s=regser.ked["s"], d=regser.said)
Expand Down

0 comments on commit 0a57f60

Please sign in to comment.