1.1 KiB
1.1 KiB
Certification test for PostgreSQL configuration store
This project aims to test the Postgres Configuration Store component under various conditions.
Init test
- Initialize with non-existing table name. Verify the error
- Initialize with upperCased table name. Verify the error
- Initialize with correct table name. Should have no errors
Test Get with multiple key versions
- Add a key with empty version: returns added value
- Add a key with version "1": returns value with version "1"
- Add a key with version "2": returns value with version "2"
- Add a key with non-numeric version: returns value with version "2"
Test multiple channels to same table
- Cerate multiple channels to same table
- Start multiple applications and subscribe to all channels with each application for multiple keys
- Verify all notifications received to all applications for every channel
Network test
- Simulate network interruption
- Validate client receives updates for subscribed keys
Infra test:
- Save a key-value pair in db
- Stop postgres server and re-start
- Validate client gets previous saved value using key