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

iOS login test - github #340

Open
Sheeri opened this issue Oct 1, 2020 · 0 comments
Open

iOS login test - github #340

Sheeri opened this issue Oct 1, 2020 · 0 comments
Labels
ci/cd/testing Automated testing with github actions; test cases; use test; regression testing hacktoberfest

Comments

@Sheeri
Copy link
Collaborator

Sheeri commented Oct 1, 2020

Automated test to verify a build against a realm app.

We have a minimal testing system within github actions:
https://github.com/WildAid/o-fish-ios/blob/main/.github/workflows/main.yml

To start developing more tests, the first step is being able to start the app and make sure it's connected to Realm.

Here's sample output from Xcode logs when run on an emulator.

When everything is working, a valid username and password combination is put into the fields and "Log In" is clicked - note that I tested against the realm-app-id called 'wildaidsandbox-mxgfy' which is the public sandbox for O-FISH development:

Logged in
Credential were removed. Server: wildaidsandbox-mxgfy
Credentials were added.
2020-10-01 11:44:38.624401-0400 O-FISH[23750:23515347] Sync: Connection[7]: Session[7]: client_reset_config = false, Realm exists = true, async open = false, client reset = false
2020-10-01 11:44:38.661233-0400 O-FISH[23750:23515347] Sync: Connection[7]: Connected to endpoint '34.227.4.145:443' (from '192.168.4.34:65005')
2020-10-01 11:44:39.100963-0400 O-FISH[23750:23515347] Sync: Connection[7]: Disconnected

Here is an example when a valid username and password is entered, but the connection between Realm and the database isn't working, so it authenticates in Realm but cannot get any user information from the database. The user is logged in, but has no user or agency data:

Logged in
Credential were removed. Server: wildaidsandbox-mxgfy
Credentials were added.
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
Partition not set
2020-10-01 11:25:42.917853-0400 O-FISH[23750:23515347] Sync: Connection[3]: Session[3]: client_reset_config = false, Realm exists = true, async open = false, client reset = false
email not set
Partition not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
2020-10-01 11:25:42.958481-0400 O-FISH[23750:23515347] Sync: Connection[3]: Connected to endpoint '54.145.94.221:443' (from '192.168.4.34:63880')
2020-10-01 11:25:43.264506-0400 O-FISH[23750:23515347] Sync: Connection[3]: Session[3]: Received: ERROR(error_code=206, message_size=33, try_again=1)
2020-10-01 11:25:43.271397-0400 O-FISH[23750:23515347] Sync: Connection[3]: Disconnected
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
email not set
First name not set
Last name not set
realmUser not set
@Sheeri Sheeri added hacktoberfest ci/cd/testing Automated testing with github actions; test cases; use test; regression testing labels Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd/testing Automated testing with github actions; test cases; use test; regression testing hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant