From 45acfa2cba7a25108efa22fdda00a77d9111bcc4 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 23 Aug 2022 23:22:15 -0400 Subject: [PATCH] Add documentation on running tests --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1bfc7fa --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## Testing + +The test target may be set using environment variables: + +``` +export RAPI_USERNAME=example +export RAPI_PASSWORD=asdf +export RAPI_HOST=ganeti.example.com +``` + +Other available environment variables: + +* `RAPI_PORT`: The target port (default: 5080) +* `RAPI_VERSION`: The API version (default: 2) +* `RAPI_TLS_VERIFY`: Should the certificate verification be enabled (default: false) + +Once the environment is configured, tests may be run using `go test`