JiriCtvrtka / pmm-api-tests

API tests for PMM 2.x.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pmm-api-tests

API tests for PMM 2.x

Setup Instructions

Make sure you have Go 1.13.x installed on your systems, execute the following steps to setup API-tests in your local systems.

  1. Fetch the Repo: go get -u -v github.com/Percona-Lab/pmm-api-tests
  2. Navigate to the tests root folder: cd ~/go/src/github.com/Percona-Lab/pmm-api-tests

Usage

Run the tests using the following command:

go test ./... -pmm.server-url **pmm-server-url** -v

where pmm-server-url should be pointing to pmm-server.

Docker

Build Docker image using the following command:

docker build -t IMAGENAME .

Run Docker container using the following command:

docker run -e PMM_SERVER_URL=**pmm-server-url** IMAGENAME

where PMM_SERVER_URL should be pointing to pmm-server.

If pmm-server located locally:

  • Use --network=host while running docker container.
  • Use non-secured url if you use self generated certificate.

About

API tests for PMM 2.x.


Languages

Language:Go 99.5%Language:Makefile 0.4%Language:Dockerfile 0.1%