Skip to content

Commit

Permalink
Fix missing import id
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-hontarau committed May 16, 2024
1 parent af685c5 commit d678f00
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spacelift/data_gcp_service_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func TestGCPServiceAccountData(t *testing.T) {
Check: Resource(
"data.spacelift_gcp_service_account.test",
Attribute("id", IsNotEmpty()),
Attribute("module_id", Equals(fmt.Sprintf("terraform-defautl-test-module-%s", randomID))),
Attribute("module_id", Equals(fmt.Sprintf("terraform-default-test-module-%s", randomID))),
Attribute("service_account_email", IsNotEmpty()),
SetEquals("token_scopes", "https://www.googleapis.com/auth/compute"),
AttributeNotPresent("stack_id"),
Expand Down
2 changes: 1 addition & 1 deletion spacelift/resource_context_attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestContextAttachmentResource(t *testing.T) {
{
ResourceName: resourceName,
ImportState: true,
ImportStateId: fmt.Sprintf("test-context-%s/test-module-%s", randomID, randomID),
ImportStateId: fmt.Sprintf("test-context-%s/terraform-default-test-module-%s", randomID, randomID),
ImportStateVerify: true,
}})
})
Expand Down
4 changes: 2 additions & 2 deletions spacelift/resource_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestModuleResource(t *testing.T) {
Config: config("test-root/ab"),
Check: Resource(
"spacelift_module.test",
Attribute("id", Equals(fmt.Sprintf("project-root-%s", randomID))),
Attribute("id", Equals(fmt.Sprintf("terraform-papaya-project-root-%s", randomID))),
Attribute("administrative", Equals("true")),
Attribute("branch", Equals("master")),
Attribute("description", Equals("description")),
Expand Down Expand Up @@ -342,7 +342,7 @@ func TestModuleResourceSpace(t *testing.T) {
Config: config("test-root/ab"),
Check: Resource(
"spacelift_module.test",
Attribute("id", Equals(fmt.Sprintf("project-root-%s", randomID))),
Attribute("id", Equals(fmt.Sprintf("terraform-papaya-project-root-%s", randomID))),
Attribute("administrative", Equals("true")),
Attribute("branch", Equals("master")),
Attribute("description", Equals("description")),
Expand Down
2 changes: 1 addition & 1 deletion spacelift/resource_policy_attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestPolicyAttachmentResource(t *testing.T) {
{
ResourceName: resourceName,
ImportState: true,
ImportStateId: fmt.Sprintf("my-first-policy-%s/test-module-%s", randomID, randomID),
ImportStateId: fmt.Sprintf("my-first-policy-%s/terraform-default-test-module-%s", randomID, randomID),
ImportStateVerify: true,
},
})
Expand Down
2 changes: 1 addition & 1 deletion spacelift/resource_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func TestStackResource(t *testing.T) {
resourceName,
Attribute("id", StartsWith("provider-test-stack")),
Attribute("kubernetes.0.namespace", Equals("")),
Attribute("kubernetes.0.kubectl_version", Equals("1.23.5")),
Attribute("kubernetes.0.kubectl_version", IsNotEmpty()),
Attribute("ansible.#", Equals("0")),
Attribute("pulumi.#", Equals("0")),
Attribute("cloudformation.#", Equals("0")),
Expand Down

0 comments on commit d678f00

Please sign in to comment.