Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| components/docker/default | ||
| README.md | ||
| config.yaml | ||
| docker-compose.yml | ||
| go.mod | ||
| go.sum | ||
| postgresql_test.go | ||
README.md
PostgreSQL State Store certification testing
This project aims to test the PostgreSQL State Store component under various conditions.
Test plan
Test for CRUD operations
- Able to create and test connection.
- Able to do set, get, update and delete.
- Negative test to fetch record with key, that is not present.
SQL Injection
- Not prone to SQL injection on write
- Not prone to SQL injection on read
- Not prone to SQL injection on delete
Connection Recovery
- When PostgreSQL goes down and then comes back up - client is able to connect
Concurrency
- Insert a Key-Value pair, eTag is set.
- Update Value v2 for this Key with current eTag - eTag is updated.
- Try to Update v3 for this Key with wrong eTag - value should not get updated.
- Get and validate eTag, which should not have changed.
Transactions
Upsert in Multi function, using 3 keys with updating values and TTL for 2 of the keys, down in the order.