Skip to content

Commit 8a366c2

Browse files
authored
fix: Fixes config test group in older TF versions (#1748)
* fix third_party_integration * fix cloud provider access * fix org_invitation * fix project_api_key * fix replication_specs * change default 0 to computed * Revert "change default 0 to computed" This reverts commit 980680e. * Revert "fix replication_specs" This reverts commit 649c238.
1 parent de0ef56 commit 8a366c2

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

internal/service/cloudprovideraccess/resource_cloud_provider_access.go

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func Resource() *schema.Resource {
6262
"iam_assumed_role_arn": {
6363
Type: schema.TypeString,
6464
Optional: true,
65+
Computed: true,
6566
},
6667
"role_id": {
6768
Type: schema.TypeString,
@@ -275,6 +276,7 @@ func resourceMongoDBAtlasCloudProviderAccessV0() *schema.Resource {
275276
"iam_assumed_role_arn": {
276277
Type: schema.TypeString,
277278
Optional: true,
279+
Computed: true,
278280
},
279281
"role_id": {
280282
Type: schema.TypeString,

internal/service/orginvitation/resource_org_invitation.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ func Resource() *schema.Resource {
5050
Computed: true,
5151
},
5252
"teams_ids": {
53-
Type: schema.TypeSet,
54-
Optional: true,
53+
Type: schema.TypeSet,
54+
Optional: true,
55+
Computed: true,
56+
ConfigMode: schema.SchemaConfigModeAttr,
5557
Elem: &schema.Schema{
5658
Type: schema.TypeString,
5759
},

internal/service/projectapikey/resource_project_api_key.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func Resource() *schema.Resource {
3232
Schema: map[string]*schema.Schema{
3333
"project_id": {
3434
Type: schema.TypeString,
35+
Computed: true,
3536
Optional: true,
3637
Deprecated: fmt.Sprintf(constant.DeprecationParamByVersion, "1.16.0"),
3738
},

internal/service/thirdpartyintegration/resource_third_party_integration.go

+18-6
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ func Resource() *schema.Resource {
5656
},
5757
"api_key": {
5858
Type: schema.TypeString,
59-
Sensitive: true,
6059
Optional: true,
60+
Computed: true,
61+
Sensitive: true,
6162
},
6263
"region": {
6364
Type: schema.TypeString,
@@ -66,25 +67,30 @@ func Resource() *schema.Resource {
6667
},
6768
"service_key": {
6869
Type: schema.TypeString,
69-
Sensitive: true,
7070
Optional: true,
71+
Computed: true,
72+
Sensitive: true,
7173
},
7274
"team_name": {
7375
Type: schema.TypeString,
7476
Optional: true,
77+
Computed: true,
7578
},
7679
"channel_name": {
7780
Type: schema.TypeString,
7881
Optional: true,
82+
Computed: true,
7983
},
8084
"routing_key": {
8185
Type: schema.TypeString,
8286
Optional: true,
87+
Computed: true,
8388
Sensitive: true,
8489
},
8590
"url": {
8691
Type: schema.TypeString,
8792
Optional: true,
93+
Computed: true,
8894
},
8995
"secret": {
9096
Type: schema.TypeString,
@@ -93,30 +99,36 @@ func Resource() *schema.Resource {
9399
},
94100
"microsoft_teams_webhook_url": {
95101
Type: schema.TypeString,
96-
Sensitive: true,
97102
Optional: true,
103+
Computed: true,
104+
Sensitive: true,
98105
},
99106
"user_name": {
100107
Type: schema.TypeString,
101-
Sensitive: true,
102108
Optional: true,
109+
Computed: true,
110+
Sensitive: true,
103111
},
104112
"password": {
105113
Type: schema.TypeString,
106-
Sensitive: true,
107114
Optional: true,
115+
Computed: true,
116+
Sensitive: true,
108117
},
109118
"service_discovery": {
110119
Type: schema.TypeString,
111-
Sensitive: true,
112120
Optional: true,
121+
Computed: true,
122+
Sensitive: true,
113123
},
114124
"scheme": {
115125
Type: schema.TypeString,
126+
Computed: true,
116127
Optional: true,
117128
},
118129
"enabled": {
119130
Type: schema.TypeBool,
131+
Computed: true,
120132
Optional: true,
121133
},
122134
},

0 commit comments

Comments
 (0)