components-contrib/tests/certification/bindings/postgres
Bernd Verst 27365fbb35 Update many libraries again
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-11-01 16:00:27 -07:00
..
components/standard Added certification tests for postgres output binding 2022-09-12 15:17:44 -07:00
README.md Added certification tests for postgres output binding 2022-09-12 15:17:44 -07:00
config.yaml Added certification tests for postgres output binding 2022-09-12 15:17:44 -07:00
docker-compose.yml Added certification tests for postgres output binding 2022-09-12 15:17:44 -07:00
go.mod Update many libraries again 2022-11-01 16:00:27 -07:00
go.sum Update many libraries again 2022-11-01 16:00:27 -07:00
postgres_test.go Changes based on the review comments 2022-09-12 15:17:44 -07:00

README.md

PostgreSQL Output Binding Certification

The purpose of this module is to provide tests that certify the PostgreSQL Output Binding as a stable component.

Test plan

  • Verify the postgres is created/present
    • Create component spec
    • Run dapr application with component
    • Ensure the postgres is present
  • Verify the connection is established to postgres.
    • Create component spec.
    • Run dapr application with component.
    • Ensure that you have access to postgres and connection to postgres DB is established.
  • Verify data is getting stored in postgres DB.
    • Create component spec with the data to be stored.
    • Run dapr application with component to store data in postgres as output binding.
    • Read stored data from postgres.
    • Ensure that read data is same as the data that was stored.
  • Verify reconnection to postgres for output binding.
    • Simulate a network error before sending any messages.
    • Run dapr application with the component.
    • After the reconnection, send messages to postgres.
    • Ensure that the messages sent after the reconnection are stored in postgres.