Skip to content

Commit

Permalink
fix(apig/group): remove the default value of the 'domain_access_enabl…
Browse files Browse the repository at this point in the history
…ed' (#5539)
  • Loading branch information
wuzhuanhong authored Sep 10, 2024
1 parent 830ecd4 commit a623c91
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/apig_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The following arguments are supported:
Each API group can be associated with up to `5` domain names.

* `domain_access_enabled` - (Optional, Bool) Specifies whether to use the debugging domain name to access the APIs
within the group. The default value is `true`.
within the group. The default value is `false`.

* `force_destroy` - (Optional, Bool) Specifies whether to delete all sub-resources (for API) when deleting this group.
Defaults to **false**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ func TestAccGroup_withDomainAccess(t *testing.T) {
resource.TestCheckResourceAttr(rNameWithDomainAccess, "domain_access_enabled", "true"),
),
},
{
ResourceName: rNameWithDomainAccess,
ImportState: true,
ImportStateVerify: true,
ImportStateIdFunc: testAccGroupImportStateFunc(rNameWithDomainAccess),
},
},
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ResourceApigGroupV2() *schema.Resource {
"domain_access_enabled": {
Type: schema.TypeBool,
Optional: true,
Default: true,
Computed: true,
Description: "Specifies whether to use the debugging domain name to access the APIs within the group.",
},
"force_destroy": {
Expand Down

0 comments on commit a623c91

Please sign in to comment.