Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "~> 0.3"
version = ">= 0.3.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/existing-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "~> 0.3"
version = ">= 0.3.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/private-vm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "~> 0.3"
version = ">= 0.3.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-data-volume/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "~> 0.3"
version = ">= 0.3.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "0.3.1"
version = ">= 0.3.2"
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion tests/acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/fixtures/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
huddle = {
source = "huddle01/cloud"
version = "0.3.1"
version = ">= 0.3.2"
}
}
}
Expand Down
Loading