Tests - operation in Hive - custom_json_operation
Operation: custom_json_operation, // 18
Test cases (positive): User creates a correct custom json operation.
Preconditions:
- There are users A, B and C.
- Users have enough RC.
Test cases
-
1.1 User A creates a custom json operation with a required posting authority of user A and user A signs it with the posting authority. -
1.2 User A creates a custom json operation with a required posting authorities of users A and B and users A and B sign it with the posting authorities. -
1.3 User A creates a custom json operation with a required active authority of user A and user A signs it with the active authority. -
1.4 User A creates a custom json operation with a required active authorities of users A and B and users A and B sign it with the active authorities.
Expected results:
- The operation is added to the blockchain.
- The RC cost is paid by the first account specified on the operation.
Test cases (negative): User creates an incorrect custom json operation.
Preconditions:
- There are users A, B, C.
Test cases
-
2.1 User A creates an incorrect custom json operation with a required posting authority of user A and user A signs it with the posting authority. -
2.2 User A creates an incorrect custom json operation with a required active authority of user A and user A signs it with the active authority. -
2.3 User A creates a custom json operation with a required active authority of user A and posting authority of user A and user A signs it with the required authorities. -
2.4 User A creates custom json operation with a required active authority of user B and posting authority of user C and users B and C sign it with the required authorities.
Expected results:
- An error occurs - the operation is not added to the blockchain.
- The RC cost is not paid.
Edited by Aleksandra Grabowska