-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cucumber Tests to validate min-balance field from algod v2/Accounts/{{Account}} response #173
Conversation
features/resources/v2algodclient_responsejsons/accountInformationMinBalance.json
Outdated
Show resolved
Hide resolved
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.
Thanks @jds1g14 for submitting this pull request. I think this is very promising.
I am asking for one change: that the test validate the min-balance is parsed correctly, not just that no error results. In doing so, a new step "the parsed Account Information response should have min-balance {min-balance}" is introduced that should parse the min-balance and assert its equality to a quantity provided in the cucumber feature.
Co-authored-by: Zeph Grunschlag <[email protected]>
Co-authored-by: Zeph Grunschlag <[email protected]>
Hey @tzaffi could you re-review when you have a minute, thanks. |
We have added min-balance to the indexer API spec and have regenerated the individual SDK specifications where warranted. |
As per the issue issue 286, the testing sdk has been updated to include a test which validates the min-balance field received from algodv2 accounts call.
The test has been given an unusual tag of @accounts.min-balance so as to avoid the test case running (and failing) as part of any integration/unit test for an SDK in which this change has not been made for.