@@ -10,7 +10,6 @@ import (
10
10
"github.com/coder/coder/v2/coderd/util/ptr"
11
11
"github.com/coder/coder/v2/codersdk"
12
12
"github.com/coder/terraform-provider-coderd/integration"
13
- "github.com/google/uuid"
14
13
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
15
14
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
16
15
"github.com/hashicorp/terraform-plugin-testing/statecheck"
@@ -42,12 +41,12 @@ func TestAccOrganizationResource(t *testing.T) {
42
41
cfg2 .DisplayName = ptr .Ref ("Example Organization New" )
43
42
44
43
cfg3 := cfg2
45
- cfg3 .GroupSync = ptr .Ref (codersdk.GroupSyncSettings {
46
- Field : "wibble" ,
47
- Mapping : map [string ][]uuid.UUID {
48
- "wibble" : {uuid .MustParse ("6e57187f-6543-46ab-a62c-a10065dd4314" )},
49
- },
50
- })
44
+ // cfg3.GroupSync = ptr.Ref(codersdk.GroupSyncSettings{
45
+ // Field: "wibble",
46
+ // Mapping: map[string][]uuid.UUID{
47
+ // "wibble": {uuid.MustParse("6e57187f-6543-46ab-a62c-a10065dd4314")},
48
+ // },
49
+ // })
51
50
cfg3 .RoleSync = ptr .Ref (codersdk.RoleSyncSettings {
52
51
Field : "wobble" ,
53
52
Mapping : map [string ][]string {
@@ -90,8 +89,10 @@ func TestAccOrganizationResource(t *testing.T) {
90
89
{
91
90
Config : cfg3 .String (t ),
92
91
ConfigStateChecks : []statecheck.StateCheck {
93
- statecheck .ExpectKnownValue ("coderd_organization.test" , tfjsonpath .New ("group_sync.field" ), knownvalue .StringExact ("wibble" )),
94
- statecheck .ExpectKnownValue ("coderd_organization.test" , tfjsonpath .New ("role_sync.field" ), knownvalue .StringExact ("wobble" )),
92
+ // statecheck.ExpectKnownValue("coderd_organization.test", tfjsonpath.New("group_sync").AtMapKey("field"), knownvalue.StringExact("wibble")),
93
+ // statecheck.ExpectKnownValue("coderd_organization.test", tfjsonpath.New("group_sync").AtMapKey("mapping").AtMapKey("wibble").AtSliceIndex(0), knownvalue.StringExact("6e57187f-6543-46ab-a62c-a10065dd4314")),
94
+ statecheck .ExpectKnownValue ("coderd_organization.test" , tfjsonpath .New ("role_sync" ).AtMapKey ("field" ), knownvalue .StringExact ("wobble" )),
95
+ statecheck .ExpectKnownValue ("coderd_organization.test" , tfjsonpath .New ("role_sync" ).AtMapKey ("mapping" ).AtMapKey ("wobble" ).AtSliceIndex (0 ), knownvalue .StringExact ("wobbly" )),
95
96
},
96
97
},
97
98
},
0 commit comments