diff --git a/Makefile b/Makefile index 548161a..510fb8b 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,12 @@ test-acceptance-local: TF_SKIP_INIT=1 \ go test -v -count=1 -timeout 30m ./... +TEST ?= TestFullStack +test-acceptance-one: + cd tests/acceptance && \ + TF_SKIP_INIT=1 \ + go test ./ -run $(TEST) -v -count=1 -timeout 10m + # ── Run both ────────────────────────────────────────────────────────────────── test: test-unit test-acceptance diff --git a/examples/basic/main.tf b/examples/basic/main.tf index e7d2d7d..334fd1d 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "~> 0.3" + version = ">= 0.3.2" } } } diff --git a/examples/existing-network/main.tf b/examples/existing-network/main.tf index a28acbb..44f0b10 100644 --- a/examples/existing-network/main.tf +++ b/examples/existing-network/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "~> 0.3" + version = ">= 0.3.2" } } } diff --git a/examples/private-vm/main.tf b/examples/private-vm/main.tf index 9f57d68..93623be 100644 --- a/examples/private-vm/main.tf +++ b/examples/private-vm/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "~> 0.3" + version = ">= 0.3.2" } } } diff --git a/examples/with-data-volume/main.tf b/examples/with-data-volume/main.tf index 16a32c8..af8192c 100644 --- a/examples/with-data-volume/main.tf +++ b/examples/with-data-volume/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "~> 0.3" + version = ">= 0.3.2" } } } diff --git a/main.tf b/main.tf index 7cc9df5..7a9ae2f 100644 --- a/main.tf +++ b/main.tf @@ -3,7 +3,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "0.3.1" + version = ">= 0.3.2" } } } diff --git a/tests/acceptance/acceptance_test.go b/tests/acceptance/acceptance_test.go index 7294b43..91fe9d9 100644 --- a/tests/acceptance/acceptance_test.go +++ b/tests/acceptance/acceptance_test.go @@ -65,7 +65,9 @@ func envOrSkip(t *testing.T, names ...string) map[string]string { func requiredVars(t *testing.T) (apiKey, region, flavorName, imageName string) { t.Helper() env := envOrSkip(t, "HUDDLE_API_KEY", "HUDDLE_REGION", "HUDDLE_FLAVOR_NAME", "HUDDLE_IMAGE_NAME") - return env["HUDDLE_API_KEY"], env["HUDDLE_REGION"], env["HUDDLE_FLAVOR_NAME"], env["HUDDLE_IMAGE_NAME"] + return env["HUDDLE_API_KEY"], env["HUDDLE_REGION"], + strings.ToLower(env["HUDDLE_FLAVOR_NAME"]), + strings.ToLower(env["HUDDLE_IMAGE_NAME"]) } // applyBaseURL injects the base_url Terraform variable when HUDDLE_LOCAL_BASE_URL diff --git a/tests/acceptance/fixtures/main.tf b/tests/acceptance/fixtures/main.tf index 021b422..7b64a97 100644 --- a/tests/acceptance/fixtures/main.tf +++ b/tests/acceptance/fixtures/main.tf @@ -3,7 +3,7 @@ terraform { required_providers { huddle = { source = "huddle01/cloud" - version = "0.3.1" + version = ">= 0.3.2" } } }