Skip to content

Commit 32b7454

Browse files
committed
fix: add space_name to schema + fix space_id test
1 parent ad28e72 commit 32b7454

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

stack-config.schema.json

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@
174174
"type": "string",
175175
"description": "Spacelift space ID"
176176
},
177+
"space_name": {
178+
"type": "string",
179+
"description": "Spacelift space name, this will be translated to a space_id. Mutually exclusive with space_id"
180+
},
177181
"terraform_smart_sanitization": {
178182
"type": "boolean",
179183
"description": "Whether to enable smart sanitization"

tests/main.tftest.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ run "test_default_example_stack_final_values" {
154154

155155
# space_id
156156
assert {
157-
condition = spacelift_stack.default["root-module-a-default-example"].space_id == "1234567890"
157+
condition = spacelift_stack.default["root-module-a-default-example"].space_id == "mp-automation-01JEC2D4K2Q2V1AJQ0Y6BFGJJ3"
158158
error_message = "space_id was not correct on the default-example stack: ${jsonencode(spacelift_stack.default["root-module-a-default-example"])}"
159159
}
160160

0 commit comments

Comments
 (0)