-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
123 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Feature: Root Namespace | ||
|
||
Scenario: User Needs Help | ||
Given the user has the pocketd binary installed | ||
When the user runs the command "help" | ||
Then the user should be able to see standard output containing "Available Commands" | ||
And the pocketd binary should exit without error | ||
Scenario: User Needs Help | ||
Given the user has the pocketd binary installed | ||
When the user runs the command "help" | ||
Then the user should be able to see standard output containing "Available Commands" | ||
And the pocketd binary should exit without error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Feature: Tx Namespace | ||
|
||
Scenario: User can send uPOKT | ||
Given the user has the pocketd binary installed | ||
And the account "app1" has a balance greater than "1000" uPOKT | ||
And an account exists for "app2" | ||
When the user sends "1000" uPOKT from account "app1" to account "app2" | ||
Then the user should be able to see standard output containing "txhash:" | ||
And the user should be able to see standard output containing "code: 0" | ||
And the pocketd binary should exit without error | ||
And the user should wait for "5" seconds | ||
And the account balance of "app1" should be "1000" uPOKT "less" than before | ||
And the account balance of "app2" should be "1000" uPOKT "more" than before | ||
Scenario: User can send uPOKT | ||
Given the user has the pocketd binary installed | ||
And the account "app1" has a balance greater than "1000" uPOKT | ||
And an account exists for "app2" | ||
When the user sends "1000" uPOKT from account "app1" to account "app2" | ||
Then the user should be able to see standard output containing "txhash:" | ||
And the user should be able to see standard output containing "code: 0" | ||
And the pocketd binary should exit without error | ||
And the user should wait for "5" seconds | ||
And the account balance of "app1" should be "1000" uPOKT "less" than before | ||
And the account balance of "app2" should be "1000" uPOKT "more" than before |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: Stake Namespaces | ||
|
||
Scenario: User can stake a Gateway | ||
Given the user has the pocketd binary installed | ||
And the "gateway" for account "gateway1" is not staked | ||
And the account "gateway1" has a balance greater than "1000" uPOKT | ||
When the user stakes a "gateway" with "1000" uPOKT from the account "gateway1" | ||
Then the user should be able to see standard output containing "txhash:" | ||
And the user should be able to see standard output containing "code: 0" | ||
And the pocketd binary should exit without error | ||
And the user should wait for "5" seconds | ||
And the "gateway" for account "gateway1" is staked with "1000" uPOKT | ||
And the account balance of "gateway1" should be "1000" uPOKT "less" than before | ||
|
||
Scenario: User can unstake a Gateway | ||
Given the user has the pocketd binary installed | ||
And the "gateway" for account "gateway1" is staked with "1000" uPOKT | ||
And an account exists for "gateway1" | ||
When the user unstakes a "gateway" from the account "gateway1" | ||
Then the user should be able to see standard output containing "txhash:" | ||
And the user should be able to see standard output containing "code: 0" | ||
And the pocketd binary should exit without error | ||
And the user should wait for "5" seconds | ||
And the "gateway" for account "gateway1" is not staked | ||
And the account balance of "gateway1" should be "1000" uPOKT "more" than before |