-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get information about public key by public key address #17
Get information about public key by public key address #17
Conversation
…i into get-public-key-info-by-account-address
Codecov Report
@@ Coverage Diff @@
## develop #17 +/- ##
==========================================
+ Coverage 96.3% 96.41% +0.1%
==========================================
Files 20 20
Lines 298 335 +37
==========================================
+ Hits 287 323 +36
- Misses 11 12 +1
Continue to review full report at Codecov.
|
…t-public-key-info-by-account-address
…t-public-key-info-by-account-address
…t-public-key-info-by-account-address
cba6712
to
d726647
Compare
…and refactoring tests
d726647
to
799a16b
Compare
…t-public-key-info-by-account-address
799a16b
to
db74e1f
Compare
…t-public-key-info-by-account-address
README.md
Outdated
@@ -184,6 +184,35 @@ $ remme public-key get-list \ | |||
} | |||
``` | |||
|
|||
Get information about public key address by public key address — ``remme public-key get-info``: |
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.
Get information about public key address...
> Get information about public key...
.
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.
@dmytrostriletskyi, done.
cli/public_key/cli.py
Outdated
@public_key_commands.command('get-info') | ||
def get_public_key_info(address, node_url): | ||
""" | ||
Get information about public key address by public key address. |
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.
The same about you get information about the public key, not its address.
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.
@dmytrostriletskyi, done.
cli/public_key/forms.py
Outdated
) | ||
|
||
|
||
class GetPublicKeyInfoForm(Schema): | ||
""" | ||
Get information about public key address of the public key info form. |
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.
The same about the address.
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.
@dmytrostriletskyi, done.
cli/public_key/forms.py
Outdated
) | ||
|
||
|
||
class GetPublicKeyInfoForm(Schema): |
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.
GetPublicKeyInfoForm
> GetPublicKeyInformationForm
.
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.
@dmytrostriletskyi, done.
cli/public_key/interfaces.py
Outdated
@@ -8,6 +8,12 @@ class PublicKeyInterface: | |||
Implements public key interface. | |||
""" | |||
|
|||
def get(self, address): | |||
""" | |||
Get information about public key address by public key address. |
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.
The same about the address.
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.
@dmytrostriletskyi, done.
tests/conftest.py
Outdated
@@ -91,6 +91,43 @@ def batch_id(self): | |||
'08f5308af03fd4aa18ff1d868f043b12dd7b0a792e141f000a2505acd4b7a956' | |||
|
|||
|
|||
class PublicKeyInfo: |
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.
PublicKeyInfo
> PublicKeyInformation
.
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.
@dmytrostriletskyi, done.
public_key_info = json.loads(result.output).get('result').get('public_key_info') | ||
|
||
assert PASSED_EXIT_FROM_COMMAND_CODE == result.exit_code | ||
|
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.
Remove this blank line.
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.
@dmytrostriletskyi, I wanted to separate the different asserts, removed blank line.
|
||
def test_get_public_key_info_invalid_address(): | ||
""" | ||
Case: get information about public key address by invalid address. |
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.
The same with the address. Fix in other tests.
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.
@dmytrostriletskyi, done.
…t-public-key-info-by-account-address
README.md
Outdated
"a23be10b3aad1b4a98f338c71d6dcdb2aa2f296c7e31fb400615e335dc10dd1d4f62bf", | ||
"a23be14b362514d624c1985277005327f6fc40413fb090eee6fccb673a32c9809060ff" | ||
] | ||
} | ||
} | ||
``` | ||
|
||
Get information about public key by public key address — ``remme public-key get-info``: |
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.
Consider to change it to Get information about public key by its address
. A bit easier to read.
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.
@dmytrostriletskyi, done.
tests/conftest.py
Outdated
@property | ||
def data(self): | ||
""" | ||
Get data of public key information. |
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.
Why not just Get public key information
?
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.
@dmytrostriletskyi, done.
177686f
to
8f357d8
Compare
8f357d8
to
a9bbdcb
Compare
Jira references
Description
Get information about public key by its address command line interface's command implementation.
Example of the usage:
Implemented
— Command line interface's command.
— Service to get information about the public key of the public key class.
References