Running the tests for this provider requires access to FireHydrant. Some resources or data sources may require access to the Enterprise tier of FireHydrant to run successfully.
FIREHYDRANT_API_KEY
- (Required) A bot token to use for testing in FireHydrant.FIREHYDRANT_BASE_URL
- (Optional) The FireHydrant API URL to connect to for testing. Defaults tohttps://api.firehydrant.io/v1/
You can set your environment variables using whatever method you'd like. The following are instructions for setting up environment variables using envchain.
-
Make sure you have envchain installed. Instructions for this can be found in the envchain README.
-
Pick a namespace for storing your environment variables. I suggest
terraform-provider-firehydrant
. -
For each environment variable you need to set, run the following command:
envchain --set YOUR_NAMESPACE_HERE ENVIRONMENT_VARIABLE_HERE
OR
Set all of the environment variables at once with the following command:
envchain --set YOUR_NAMESPACE_HERE FIREHYDRANT_BASE_URL FIREHYDRANT_API_KEY
$ envchain YOUR_NAMESPACE_HERE make testacc
$ make testacc
The commands below use task lists as an example.
$ TESTARGS="-run TestAccTaskList" envchain YOUR_NAMESPACE_HERE make testacc
$ TESTARGS="-run TestAccTaskList" make testacc
$ envchain YOUR_NAMESPACE_HERE make test
$ make test