Prior to running the tests in correctness_test.go, ensure the following:
- Have a database called correctness_testing with the table named correctness_testing created.
- Ingested data to the correctness_testing table for at least an hour.
- Updated the basic_auth section within correctness_testing.yml.
- Download or build the Prometheus Connector Docker image and store it in a new directory named
resources
in the repository root.
- Execute the following command to build the docker image:
docker buildx build . -t timestream-prometheus-connector-docker
- Execute the following command to save the docker image as a compressed file and update the
version
appropriately:docker save timestream-prometheus-connector-docker | gzip > timestream-prometheus-connector-docker-image-<version>.tar.gz
- Run the following command to execute the correctness tests:
go test -v ./correctness