-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add grant and revoke tests (#5216)
Signed-off-by: alexstroke1 <[email protected]>
- Loading branch information
1 parent
33cb188
commit 7cb55e4
Showing
11 changed files
with
499 additions
and
146 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
10 changes: 10 additions & 0 deletions
10
pytests/iroha_cli_tests/common/json_isi_examples/grant_permission.json
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,10 @@ | ||
[ | ||
{ | ||
"Grant": { | ||
"Permission": { | ||
"object": {"name": "CanRegisterDomain", "payload": null}, | ||
"destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland" | ||
} | ||
} | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
pytests/iroha_cli_tests/common/json_isi_examples/revoke_permission.json
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,10 @@ | ||
[ | ||
{ | ||
"Revoke": { | ||
"Permission": { | ||
"object": {"name": "CanRegisterDomain", "payload": null}, | ||
"destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland" | ||
} | ||
} | ||
} | ||
] |
12 changes: 7 additions & 5 deletions
12
pytests/iroha_cli_tests/common/json_isi_examples/unregister_asset.json
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,9 @@ | ||
[{ | ||
"Unregister": { | ||
"Asset": { | ||
[ | ||
{ | ||
"Unregister": { | ||
"Asset": { | ||
"object": "rose##ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland" | ||
} | ||
} | ||
} | ||
}] | ||
} | ||
] |
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
Oops, something went wrong.