Signal-iOS/SignalServiceKit/tests/Contacts
Michelle Linington ddb2467ebf Added tests to exercise UUIDBackfillTask
This adds a whole bunch of tests for UUIDBackfillTask. This required a
small change to be made in SignalServiceAddress. Currently,
SignalServiceAddress accesses a singleton cache to force updates to any
existing addresses after a UUID is discovered. This breaks a whole bunch
of test verification.

To workaround this, I've added a testing_ flag to modify the singleton
SignalServiceAddressCache to temporarily disable it. This is going to
cause problems if we ever enable test parallelization, but it's all we
can do for now.

This also adds in incremental backoff logic, changes some of the log
statements and disables the task on production.

Also, adopted some minor feedback Matthew provided in the draft PR,
including:
- Rename: {signal -> registered}RecipientsWithoutUUID
- Move to owsFailDebug instead of assertionFailure
- Adopt `IsNetworkConnectivityFailure` for discerning network failures
- Add some extra assertions around our registered/unregistered sets
2020-07-13 18:20:47 -07:00
..
ContactSortingTest.m Sketch out the SDS code generation. 2019-04-11 09:15:28 -04:00
OWSDisappearingMessagesConfigurationTest.m remove block from overwriting update, undeprecate upsert 2019-11-04 14:06:54 -08:00
PhoneNumberTest.m PR Feedback 2020-03-16 16:30:58 -07:00
PhoneNumberTest.swift permissively parse legacy and modern mexican phone number formats 2020-01-16 11:41:48 -07:00
PhoneNumberUtilTest.m Fix PhoneNumberUtilTest. 2019-10-01 13:35:54 -03:00
SignalRecipientTest.m Remove more usage of primary storage. 2019-08-07 17:41:11 -03:00
TSContactThreadTest.m No more transitional_signalServiceAddress 2019-07-11 10:53:33 -07:00
TSGroupThreadTest.m Add early message handling for delivery receipts, reactions, and delete for everyone 2020-04-16 19:44:45 -07:00
TSThreadTest.m Add TSIncomingMessageBuilder. 2020-05-11 09:28:13 -03:00
UUIDBackfillTaskTest.swift Added tests to exercise UUIDBackfillTask 2020-07-13 18:20:47 -07:00