Skip to content

Commit

Permalink
feat: remove update timeout as op is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
lechnerc77 committed Jul 25, 2024
1 parent 106c4db commit 047eca5
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 233 deletions.
2 changes: 0 additions & 2 deletions docs/resources/subaccount_subscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ resource "btp_subaccount_subscription" "workzone" {
plan_name = "free"
timeouts = {
create = "25m"
update = "15m"
delete = "15m"
}
}
Expand Down Expand Up @@ -87,7 +86,6 @@ Optional:

- `create` (String) Timeout for creating the subscription.
- `delete` (String) Timeout for deleting the subscription.
- `update` (String) Timeout for updating the subscription.

## Import

Expand Down
1 change: 0 additions & 1 deletion examples/resources/btp_subaccount_subscription/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ resource "btp_subaccount_subscription" "workzone" {
plan_name = "free"
timeouts = {
create = "25m"
update = "15m"
delete = "15m"
}
}

Large diffs are not rendered by default.

154 changes: 77 additions & 77 deletions internal/provider/fixtures/resource_subaccount_subscription.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions internal/provider/resource_subaccount_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ You must be assigned to the admin role of the subaccount.`,
"timeouts": timeouts.Attributes(ctx, timeouts.Opts{
Create: true,
CreateDescription: "Timeout for creating the subscription.",
Update: true,
UpdateDescription: "Timeout for updating the subscription.",
Update: false,
Delete: true,
DeleteDescription: "Timeout for deleting the subscription.",
}),
Expand Down
2 changes: 0 additions & 2 deletions internal/provider/resource_subaccount_subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func TestResourceSubaccountSubscription(t *testing.T) {
resource.TestMatchResourceAttr("btp_subaccount_subscription.uut", "created_date", regexpValidRFC3999Format),
resource.TestMatchResourceAttr("btp_subaccount_subscription.uut", "last_modified", regexpValidRFC3999Format),
resource.TestCheckResourceAttr("btp_subaccount_subscription.uut", "timeouts.create", "25m"),
resource.TestCheckResourceAttr("btp_subaccount_subscription.uut", "timeouts.update", "15m"),
resource.TestCheckResourceAttr("btp_subaccount_subscription.uut", "timeouts.delete", "15m"),
),
},
Expand Down Expand Up @@ -162,7 +161,6 @@ func hclResourceSubaccountSubscriptionBySubaccountWithTimeout(resourceName strin
plan_name = "%s"
timeouts = {
create = "25m"
update = "15m"
delete = "15m"
}
}`, resourceName, subaccountName, appName, planName)
Expand Down

0 comments on commit 047eca5

Please sign in to comment.