Go to file
Kienan Stewart 45acfa2cba Add documentation on running tests 2022-08-23 23:23:07 -04:00
README.md Add documentation on running tests 2022-08-23 23:23:07 -04:00
client.go Add option to enable TLS verification 2022-08-23 22:10:27 -04:00
client_test.go Add option to enable TLS verification 2022-08-23 22:10:27 -04:00
go.mod Add client to get cluster information and networks 2020-10-24 14:54:40 -04:00

README.md

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