Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C4GT] DID: Add tests for InvalidDidAuthorizationCall #287

Open
3 tasks
vatsa287 opened this issue Feb 5, 2024 · 4 comments
Open
3 tasks

[C4GT] DID: Add tests for InvalidDidAuthorizationCall #287

vatsa287 opened this issue Feb 5, 2024 · 4 comments
Assignees
Labels

Comments

@vatsa287
Copy link
Member

vatsa287 commented Feb 5, 2024

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

  • 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

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]

@amarts amarts added the good first issue Good for newcomers label Feb 6, 2024
@MjStar24
Copy link

hey @vatsa287 I would like to work on this can you assign this to me

Aloneking789 added a commit to Aloneking789/cord that referenced this issue Mar 25, 2024
Fixes dhiway#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).
@Aloneking789 Aloneking789 mentioned this issue Mar 25, 2024
@VedantKhairnar
Copy link

Hello @MjStar24 ,
Any update on the contribution?
Pls do let us know if you need any assistance from our end.
Thanks.

@Abhijitam01
Copy link

I would like to work on this . Please assign it to me

@vatsa287 vatsa287 assigned Abhijitam01 and unassigned MjStar24 Nov 19, 2024
@Zapper9982
Copy link

@vatsa287 i would like to work on this issue , it feels inactive for a long time .

@vatsa287 vatsa287 assigned Zapper9982 and unassigned Abhijitam01 Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants