Skip to content

Commit

Permalink
fix(domain|test): update - at least one 'assignment' or 'tag' must be…
Browse files Browse the repository at this point in the history
… always set (#104)

* fix(domain|test): update - at least one 'assignment' or 'tag' must be always set

* fix(domain|test): update - expected 2 assignments in final
  • Loading branch information
ndopj authored Jun 29, 2024
1 parent e8b5faf commit 7b870d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestAccDomainResource(t *testing.T) {
//resource.TestCheckResourceAttr("montecarlo_domain.test", "uuid", domainUuid),
resource.TestCheckResourceAttr("montecarlo_domain.test", "name", "domain2"),
resource.TestCheckResourceAttr("montecarlo_domain.test", "description", "Domain test description 2"),
resource.TestCheckResourceAttr("montecarlo_domain.test", "assignments.#", "0"),
resource.TestCheckResourceAttr("montecarlo_domain.test", "assignments.#", "2"),
resource.TestCheckResourceAttr("montecarlo_domain.test", "tags.#", "0"),
),
},
Expand Down
4 changes: 2 additions & 2 deletions internal/testdata/TestAccDomainResource/update_assignments.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "montecarlo_domain" "test" {
name = "domain2"
description = "Domain test description 2"
assignments = [
#"MCON++a84380ed-b962-4bd3-b150-04bc38a209d5++427a1600-2653-40c5-a1e7-5ec98703ee9d++project++gcp-project1-722af1c6",
#"MCON++a84380ed-b962-4bd3-b150-04bc38a209d5++e7c59fd6-7ca8-41e7-8325-062ea38d3df5++dataset++postgre-dataset-1"
"MCON++3e9abc75-5dc1-447e-b4cb-9d5a6fc5db5c++da6c0716-2724-4bfc-b5cc-7e0364faf979++table++data-playground-8bb9fc23:terraform_provider_montecarlo.person",
"MCON++3e9abc75-5dc1-447e-b4cb-9d5a6fc5db5c++da6c0716-2724-4bfc-b5cc-7e0364faf979++table++data-playground-8bb9fc23:terraform_provider_montecarlo.device"
]
}

0 comments on commit 7b870d0

Please sign in to comment.