Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

enable CLI support for GET_ATTR, GET_SCHEMA, GET_CLAIM_DEF (INDY-23) #255

Merged
merged 3 commits into from
Jul 7, 2017

Conversation

glowkey
Copy link
Contributor

@glowkey glowkey commented Jul 6, 2017

Support was already enabled in sovrin node for these so this just
adds support to the CLI and corresponding tests

Support was already enabled in sovrin node for these so this just
adds support to the CLI and corresponding unit tests
@CLAassistant
Copy link

CLAassistant commented Jul 6, 2017

CLA assistant check
All committers have signed the CLA.

expect=CLAIM_DEF_FOUND, within=5)


def test_send_get_schema_as_alice_fails(be, do, poolNodesStarted, trusteeCli,
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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})" \
Copy link
Contributor

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 = \
Copy link
Contributor

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})" \
Copy link
Contributor

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

@ashcherbakov ashcherbakov merged commit 8f23a0e into hyperledger-archives:master Jul 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants