hyperledger-archives / aries-protocol-test-suite

Test Suite for testing protocol compliance of Aries Agents
https://wiki.hyperledger.org/display/aries
Apache License 2.0
25 stars 19 forks source link

Properly send and receive the ~thread decorator. #34

Closed smithbk closed 4 years ago

smithbk commented 4 years ago

I added a BaseModule class to protocol_tests/init.py which is extended by the discover_features, issue_credential, and present_proof protocols. The BaseModule contains code to properly send and receive the ~thread decorator.

Prior to this fix, the ~thread decorator was manually handled in each case. Sometimes it was correct but often it was not sending the sender_order or received_orders fields at all. It also was not checking for correctness for incoming messages. These changes address this for these protocols.

Signed-off-by: Keith Smith bksmith@us.ibm.com