mobilecoinofficial / auxin

Developer friendly wrapper around the Signal Messenger protocol.
GNU Affero General Public License v3.0
8 stars 7 forks source link

Auxin Testing suite #42

Closed transfaeries closed 2 years ago

transfaeries commented 2 years ago

Start work on a test suite. Specifically tests that don't require interacting with the signal network. This issue will focus on testing

messages.rs/ build_http_request generate_messages_to_all_devices

net.rs/ common_http_headers

profile.rs/ get_profile_key_version

Furthermore we will test sending simulated messages with simulate send. and investigate testing rpc requests.

transfaeries commented 2 years ago

Millie and I started writing the code for testing build_http_requests, and just setting up the test environment has proved difficult. We eventually ran into a problem that required simulating or having a signal pre_key bundle. It might be that Unit Tests will have to be integrated with a more fancy test suite that involves simulated signal data.