Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.04 KB

File metadata and controls

18 lines (15 loc) · 1.04 KB

Correctness Testing for Prometheus Connector

Prerequisites

Prior to running the tests in correctness_test.go, ensure the following:

  1. Have a database called correctness_testing with the table named correctness_testing created.
  2. Ingested data to the correctness_testing table for at least an hour.
  3. Updated the basic_auth section within correctness_testing.yml.
  4. Download or build the Prometheus Connector Docker image and store it in a new directory named resources in the repository root.

How to build and save the docker image

  1. Execute the following command to build the docker image: docker buildx build . -t timestream-prometheus-connector-docker
  2. 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

How to execute tests

  1. Run the following command to execute the correctness tests: go test -v ./correctness