Files
Signal-Server/service/src/main/java/org/whispersystems/textsecuregcm
Jonathan Klabunde TomerandJonathan Klabunde Tomer 48ebafa4e0 DynamoDBExtension refactor and helpers for our schema (#1327)
There's a lot of boilerplate involved in setting up a DynamoDBExtension, and some tests were creating several extensions
rather than one with several tables, which is probably slower than it has to be.

This change adds a new DynamoDbExtensionSchema class in which we can define the Dynamo schema for tests, and refactors
DynamoDbExtension to make it easy to instantiate a single extension with all the tables one wants (and no more, both to
minimize test startup time and to ensure we explicitly test our dependencies and lack thereof).

Tests requiring a DynamoDbExtension with a table schema that's not part of the normal Signal schema can instantiate a
DynamoDbExtension.RawSchema instead.

Test timings are unaffected, at least on my machine. Before:
```[INFO] service ............................................ SUCCESS [01:18 min]```

After:
```[INFO] service ............................................ SUCCESS [01:18 min]```

Co-authored-by: Jonathan Klabunde Tomer <jkt@viola.signal.org>
2023-04-03 13:08:43 -07:00
..
2021-10-28 14:48:44 -07:00
2023-03-22 12:57:21 -05:00
2023-02-06 12:16:59 -06:00
2023-02-23 10:17:24 -06:00
2023-02-06 12:16:59 -06:00
2023-01-25 17:28:03 -08:00
2023-03-09 10:43:45 -06:00