[C4GT] Network-Score: Add tests for 'UnauthorizedOperation'
Description
Subtask under : https://github.com/cord-network/community/issues/7
New testcase can be tested under cargo test -p pallet-network-score after adding it in the code.
Goals
- [ ] Add tests for
UnauthorizedOperationfor pallet/network-score
Expected Outcome
- [ ] Test should assert for
UnauthorizedOperationbeing 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: In pallets/network-membership check method test_duplicate_member_request which validates error code MembershipAlreadyAcquired
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]
Hey @amarts I would like to work on this issue ! Kindly assign it to me if possible.
@hardik-pratap-singh Look at this issue.
Hey @amarts! I'm looking forward to contribute towards solving this issue. Could you please assign it to me? I already have experience with Rust and Blockchain and I believe I can deliver the same to the community in no time! Looking forward for a positive response from your end.
Hello @ayush572 Do you need any assistance with the issue or any progress you might want to share? Thanks.
Hello,@vatsa287 should i work on it
please assign me this issue @vatsa287
I have made changes and tried to add the desired test case, and here is the PR - https://github.com/dhiway/cord/pull/557
@vatsa287 Bro, please go through it and let me know what changes need to be made to fix the test and help me tackle this issue successfully. I need your help with this.....
We are moving away from the 'network-score' pallet described here to something newer soon.
Hence, closing this issue.
Refer to https://github.com/dhiway/cord/blob/develop/docs/cord-features.md to get more idea about what features you can contribute on.