•  
      ticket_contents #291821 Subtask under : cord-network/community#7 New testcase can be tested under cargo test -p pallet-network-authorization after adding it in the code.
    Empty
    Subtask under : cord-network/community#7 New testcase can be tested under cargo test -p pallet-network-authorization after adding it in the code.

    Add tests for PeerIdTooLong for pallet/network-authorization

    1. Test should assert for PeerIdTooLong being returned properly in all the possible calls.
    2. 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.
    Empty
    • [ ] Set up the basic structure and configuration
    • [ ] Design and implement a simple and user-friendly
    • [ ] Perform thorough testing to ensure the accuracy
    • [ ] Document
    Empty

    Look at other test cases, and add a test case for the same. Ex: check method add_well_known_node_works which validates error code NodeIdTooLong

    N/A
    CORD
    Empty
    RUST
    NA
    MEDUIUM
    #291821
    Anjali (anjalikumari)
    Stage
    New
    Anjali (anjalikumari)
    2024-09-23 18:35
    Attachments
    Empty