You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New testcase can be tested under cargo test -p pallet-did after adding it in the code.
Goals
Add tests for InvalidDidAuthorizationCall for pallet/did
Expected Outcome
Test should assert for InvalidDidAuthorizationCall being returned properly in all the possible calls.
If there are more than one function returning this error code, all of them should be validated either as one test case or as multiple test cases.
Acceptance Criteria
NA
Implementation Details
Look at other test cases, and add a test case for the same.
Ex: check_invalid_signature_format_call_error which validates error code InvalidSignatureFormat
Fixesdhiway#287
We're creating a new test function check_invalid_did_authorization_call.
We generate authentication keys for DIDs (auth_key and invalid_key).
Create a base DID creation details.
Sign the details with an invalid key (invalid_key).
Description
Subtask under : cord-network/community#7
New testcase can be tested under
cargo test -p pallet-did
after adding it in the code.Goals
InvalidDidAuthorizationCall
for pallet/didExpected Outcome
InvalidDidAuthorizationCall
being returned properly in all the possible calls.Acceptance Criteria
NA
Implementation Details
Look at other test cases, and add a test case for the same.
Ex:
check_invalid_signature_format_call_error
which validates error codeInvalidSignatureFormat
Mockups / Wireframes
NA
Product Name
CORD
Organization Name
Dhiway
Domain
Blockchain
Tech Skills Needed
Rust
Mentor(s)
@amarts
Complexity
[Low]
Category
[Test]
Sub Category
[Beginner friendly]
The text was updated successfully, but these errors were encountered: