Closed pcn closed 4 years ago
This should pass all current tests. This adds an environment variable so that request and responses will only display when TF_AO_DEBUG
is set. I have no attachment to that name, it's probably best if it changes.
spacey@bagpig:~/go/src/github.com/appoptics/terraform-provider-appoptics (upgrade-to-0.12)$ TF_ACC=1 APPOPTICS_TOKEN='<token>' go test -v ./...
? github.com/appoptics/terraform-provider-appoptics [no test files]
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN TestAccAppOpticsAlertMinimal
--- PASS: TestAccAppOpticsAlertMinimal (1.86s)
=== RUN TestAccAppOpticsAlertBasic
--- PASS: TestAccAppOpticsAlertBasic (1.37s)
=== RUN TestAccAppOpticsAlertFull
--- PASS: TestAccAppOpticsAlertFull (3.50s)
=== RUN TestAccAppOpticsAlertUpdated
--- PASS: TestAccAppOpticsAlertUpdated (10.99s)
=== RUN TestAccAppOpticsAlertRename
--- PASS: TestAccAppOpticsAlertRename (11.04s)
=== RUN TestAccAppOpticsAlertFullUpdate
--- PASS: TestAccAppOpticsAlertFullUpdate (3.55s)
=== RUN TestAccAppOpticsMetrics
--- PASS: TestAccAppOpticsMetrics (31.81s)
=== RUN TestAccAppOpticsServiceBasic
--- PASS: TestAccAppOpticsServiceBasic (2.44s)
=== RUN TestAccAppOpticsServiceUpdated
--- PASS: TestAccAppOpticsServiceUpdated (12.03s)
=== RUN TestAccAppOpticsSpaceChartBasic
--- FAIL: TestAccAppOpticsSpaceChartBasic (0.01s)
testing.go:572: Step 0 error: config is invalid: 2 problems:
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space_chart".
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space".
=== RUN TestAccAppOpticsSpaceChart_Full
--- FAIL: TestAccAppOpticsSpaceChart_Full (0.01s)
testing.go:572: Step 0 error: config is invalid: 3 problems:
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space_chart".
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space".
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space".
=== RUN TestAccAppOpticsSpaceChart_Updated
--- FAIL: TestAccAppOpticsSpaceChart_Updated (0.01s)
testing.go:572: Step 0 error: config is invalid: 2 problems:
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space_chart".
- Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space".
=== RUN TestAccAppOpticsSpaceBasic
--- FAIL: TestAccAppOpticsSpaceBasic (0.01s)
testing.go:572: Step 0 error: config is invalid: Invalid resource type: The provider provider.appoptics does not support resource type "appoptics_space".
FAIL
FAIL github.com/appoptics/terraform-provider-appoptics/appoptics 78.627s
FAIL
This results in a build that almost without changes. Running tests found issues which are fixed.
There are 2 example files now, one for 0.12 syntax, and one for 0.11 syntax.
This was built with the current 0.13.0 version of the terraform library to not be too out of date.