DP-3T / dp3t-sdk-backend

The backend implementation for DP3T
Mozilla Public License 2.0
198 stars 88 forks source link

Integration Tests and Unit Tests should use random KeyData #244

Open ubamrein opened 4 years ago

ubamrein commented 4 years ago

Currently, in the unit and integration tests we use fixed, hardcoded keydata. Since keyData needs to be unique in the database, we introduce potential problems within one test class, when we make assertions on the number of keys in the database (e.g. two times a key with data "a" gets inserted, the second overwrites the first).

We propose to add a utility class, which provides a random keydata.