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

Restore messaging tests #96

Merged
merged 14 commits into from
Sep 23, 2020
Merged

Restore messaging tests #96

merged 14 commits into from
Sep 23, 2020

Conversation

Patrik-Stas
Copy link
Contributor

Signed-off-by: Patrik Stas patrik.stas@absa.africa

libvcx/src/messages/get_message.rs Show resolved Hide resolved
libvcx/src/messages/get_message.rs Show resolved Hide resolved
libvcx/src/messages/get_message.rs Show resolved Hide resolved
let hello_msg = download_messages(None, None, Some(vec![hello_uid])).unwrap();
assert_eq!(hello_msg[0].msgs[0].decrypted_payload, Some("{\"@type\":{\"name\":\"hello\",\"ver\":\"1.0\",\"fmt\":\"json\"},\"@msg\":\"hello\"}".to_string()));

// Agency returns a bad request response for invalid dids
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require changes on agency side?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node agency is currently not performing did validation, it just tries to match the did. We should probably audit agency inputs and probably think about its error reporting in general...

@Patrik-Stas Patrik-Stas changed the title Delete invalid test, restore test test_download_messages Restore messaging tests Sep 20, 2020
mirgee
mirgee previously approved these changes Sep 22, 2020
wrappers/node/test/suite1/ariesvcx-connection.test.ts Outdated Show resolved Hide resolved
libvcx/src/v3/handlers/connection/states.rs Show resolved Hide resolved
libvcx/src/utils/mockdata_agency.rs Outdated Show resolved Hide resolved
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
…sages_response

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
…dMessageBuilder)

Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
@mirgee mirgee merged commit 729f24d into master Sep 23, 2020
@mirgee mirgee deleted the restore/agency_pool_tests branch September 23, 2020 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants