-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add mainnet in config * small various improvement * update list of networks * add robot tests * fix space indentation
- Loading branch information
Showing
9 changed files
with
49 additions
and
7 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
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
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,26 @@ | ||
*** Settings *** | ||
Library RequestsLibrary | ||
Resource ../keywords.resource | ||
Resource ../variables.resource | ||
|
||
*** Test Cases *** | ||
GET /network | ||
${response}= GET | ||
... ${API_URL}/network | ||
... expected_status=${STATUS_OK} | ||
Should Be Equal ${response.json()['currentNetwork']} buildnet | ||
|
||
GET /massa/node | ||
${response}= GET | ||
... ${API_URL}/massa/node | ||
... expected_status=${STATUS_OK} | ||
Should Be Equal ${response.json()['network']} buildnet | ||
|
||
POST /network/mainnet | ||
${response}= POST | ||
... ${API_URL}/network/mainnet | ||
... expected_status=${STATUS_OK} | ||
Should Be Equal ${response.json()['currentNetwork']} mainnet | ||
|
||
# Switch back to buildnet for other tests | ||
Switch to buildnet |
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
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,6 +1,9 @@ | ||
mainnet: | ||
URLs: | ||
- https://mainnet.massa.net/api/v2 | ||
ChainID: 77658377 | ||
Default: true | ||
buildnet: | ||
DNS: AS1pzpVk79cubdM7Zk9pNdg1JR4qKooVa6usyquiCEQhPeRWD9k7 | ||
URLs: | ||
- https://buildnet.massa.net/api/v2 | ||
ChainID: 77658366 | ||
Default: true |
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