-
Notifications
You must be signed in to change notification settings - Fork 43
enable CLI support for GET_ATTR, GET_SCHEMA, GET_CLAIM_DEF (INDY-23) #255
Conversation
Support was already enabled in sovrin node for these so this just adds support to the CLI and corresponding unit tests
expect=CLAIM_DEF_FOUND, within=5) | ||
|
||
|
||
def test_send_get_schema_as_alice_fails(be, do, poolNodesStarted, trusteeCli, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a test for GET_CLAIM_DEF< not GET_SCHEMA. Please fix the name of the test
expect=CLAIM_DEF_NOT_FOUND, within=5) | ||
|
||
|
||
def test_send_get_schema_with_invalid_ref_fails(be, do, poolNodesStarted, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a test for GET_CLAIM_DEF< not GET_SCHEMA. Please fix the name of the test
expect=CLAIM_DEF_NOT_FOUND, within=5) | ||
|
||
|
||
def test_send_get_schema_with_invalid_signature_fails(be, do, poolNodesStarted, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is a test for GET_CLAIM_DEF< not GET_SCHEMA. Please fix the name of the test
@@ -52,11 +57,23 @@ | |||
"\s+(?P<keys_key>keys=)\s*(?P<keys>[0-9a-zA-Z-_,\s]+)\s*)".format( | |||
schema=SovrinTransactions.SCHEMA.name) | |||
|
|||
GET_SCHEMA_REG_EX = "(\s*(?P<send_get_schema>send\s+{getSchema})" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to test_command_reg_ex.py
@@ -41,6 +41,11 @@ | |||
"\s+ (?P<dest>dest=)\s*(?P<dest_id>[A-Za-z0-9+=/]+) \s*) ".format( | |||
getNym=SovrinTransactions.GET_NYM.name) | |||
|
|||
GET_ATTR_REG_EX = \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to test_command_reg_ex.py
SEND_CLAIM_DEF_REG_EX = "(\s*(?P<send_claim_def>send\s+{issKey})" \ | ||
"\s+(?P<ref_key>ref=)\s*(?P<ref>[0-9]+)\s*)"\ | ||
"\s*(?P<signature_type_key>signature_type=)\s*(?P<signature_type>[A-Z0-9]+)" \ | ||
.format(issKey=SovrinTransactions.CLAIM_DEF.name) | ||
|
||
GET_CLAIM_DEF_REG_EX = "(\s*(?P<send_get_claim_def>send\s+{issKey})" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to test_command_reg_ex.py
Support was already enabled in sovrin node for these so this just
adds support to the CLI and corresponding tests