[services] Tunnelbroker - Database PublicKeyItem tests
Summary:
Database (DynamoDB) item tests. For the PublicKeyItem database entity we perform:
- Check if the table is available,
- Create and fulfill database item entity,
- Put into the database table,
- Find the record using the primary key,
- Compare record fields of created item and item from database record,
- Remove the testing record from the database.
Related linear task: ENG-686
Test Plan: Run yarn test-tunnelbroker-service all tests are run and succeed.
Reviewers: karol-bisztyga, palys-swm, varun
Reviewed By: palys-swm
Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, benschac, yayabosh
Differential Revision: https://phabricator.ashoat.com/D3688