makeTo install the provider from a local build with Terraform 0.14, configure your ~/.terraformrc with:
provider_installation {
dev_overrides {
"registry.terraform.io/kaleido-io/kaleido" = "/path/to/terraform-provider-kaleido"
}
direct {}
}then be sure to build the binary you are testing using:
make buildNOTE: binaries built via
make build-${OS}will not be detected by Terraform'sdev_overrides.
Kaleido Terraform Provider uses terrraform-plugin-docs to generate all documentation markdown files. To update the provider documentation after any schema, example, or description changes run:
make docsEnd to end example in examples/multi_region_with_b2b
make build-linux
make build-mac
make build-win
Acceptance tests make actual calls to deploy and destroy resources. Any changes to the provider must pass acceptance tests.
export TF_ACC=true
export KALEIDO_API='https://control-stage.kaleido.io/api/v1'
export KALEIDO_API_KEY=XXXXXXX=
go test -v ./kaleidoNote unit tests are now being prioritized and the process of migrating acceptance tests to unit tests has been started in platform/service_test.go