-
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
Box Integration Test #196
Box Integration Test #196
Conversation
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.
Just to suggest prefixing box names with a "str" prefix. I think the values are fine since they are understood to be b64 anyway.
And I build an application transaction with the transient account, the current application, suggested params, operation "call", approval-program "", clear-program "", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "str:set,str:name,str:value", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes "0,str:name" | ||
And I sign and submit the transaction, saving the txid. If there is an error it is "". | ||
And I wait for the transaction to be confirmed. | ||
Then the contents of the box with name "name" should be "dmFsdWUAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". |
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.
Then the contents of the box with name "name" should be "dmFsdWUAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". | |
Then the contents of the box with name "str:name" should be "dmFsdWUAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". |
And I build an application transaction with the transient account, the current application, suggested params, operation "call", approval-program "", clear-program "", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "str:delete,str:name", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes "0,str:name" | ||
And I sign and submit the transaction, saving the txid. If there is an error it is "". | ||
And I wait for the transaction to be confirmed. | ||
Then the contents of the box with name "name" should be "". If there is an error it is "box not found". |
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.
Then the contents of the box with name "name" should be "". If there is an error it is "box not found". | |
Then the contents of the box with name "str:name" should be "". If there is an error it is "box not found". |
And I build an application transaction with the transient account, the current application, suggested params, operation "call", approval-program "", clear-program "", global-bytes 0, global-ints 0, local-bytes 0, local-ints 0, app-args "str:create,str:name", foreign-apps "", foreign-assets "", app-accounts "", extra-pages 0, boxes "0,str:name" | ||
And I sign and submit the transaction, saving the txid. If there is an error it is "". | ||
And I wait for the transaction to be confirmed. | ||
Then the contents of the box with name "name" should be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". |
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.
Then the contents of the box with name "name" should be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". | |
Then the contents of the box with name "str:name" should be "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". If there is an error it is "". |
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 for the tests - looks good to merge into the feature branch!
No description provided.