Skip to content

Commit 4437c5c

Browse files
authored
feat(deps): Updated required restapi provider to >= 2.0.1, < 3.0.0. Locked the DA version to 2.0.1 (#312)
1 parent be375f8 commit 4437c5c

File tree

10 files changed

+22
-15
lines changed

10 files changed

+22
-15
lines changed

examples/complete/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ terraform {
1111
}
1212
restapi = {
1313
source = "Mastercard/restapi"
14-
version = ">= 1.20.0"
14+
version = ">= 2.0.1"
1515
}
1616
}
1717
}

modules/plan/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You need the following permissions to run this module.
6262
|------|---------|
6363
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9.0 |
6464
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.79.0, < 2.0.0 |
65-
| <a name="requirement_restapi"></a> [restapi](#requirement\_restapi) | >= 1.20.0, <2.0.0 |
65+
| <a name="requirement_restapi"></a> [restapi](#requirement\_restapi) | >= 2.0.1, < 3.0.0 |
6666

6767
### Modules
6868

modules/plan/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ terraform {
99
}
1010
restapi = {
1111
source = "Mastercard/restapi"
12-
version = ">= 1.20.0, <2.0.0"
12+
version = ">= 2.0.1, < 3.0.0"
1313
}
1414
}
1515
}

modules/quotas/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You need the following permissions to run this module.
4242
|------|---------|
4343
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9.0 |
4444
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.79.0, < 2.0.0 |
45-
| <a name="requirement_restapi"></a> [restapi](#requirement\_restapi) | >= 1.20.0, <2.0.0 |
45+
| <a name="requirement_restapi"></a> [restapi](#requirement\_restapi) | >= 2.0.1, < 3.0.0 |
4646

4747
### Modules
4848

modules/quotas/main.tf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ resource "restapi_object" "container_registry_storage_quota" {
99
data = jsonencode({
1010
"storage_megabytes" : var.storage_megabytes
1111
})
12-
create_method = "PATCH"
13-
create_path = "//${var.container_registry_endpoint}/api/v1/quotas"
14-
destroy_method = "PATCH"
15-
destroy_path = "//${var.container_registry_endpoint}/api/v1/quotas"
12+
id_attribute = "storage_megabytes"
13+
ignore_all_server_changes = true
14+
create_method = "PATCH"
15+
create_path = "//${var.container_registry_endpoint}/api/v1/quotas"
16+
destroy_method = "PATCH"
17+
destroy_path = "//${var.container_registry_endpoint}/api/v1/quotas"
1618
destroy_data = jsonencode({
1719
"storage_megabytes" : 500 # set to default 500 MB
1820
})
@@ -30,10 +32,12 @@ resource "restapi_object" "container_registry_traffic_quota" {
3032
data = jsonencode({
3133
"traffic_megabytes" : var.traffic_megabytes
3234
})
33-
create_method = "PATCH"
34-
create_path = "//${var.container_registry_endpoint}/api/v1/quotas"
35-
destroy_method = "PATCH"
36-
destroy_path = "//${var.container_registry_endpoint}/api/v1/quotas"
35+
id_attribute = "traffic_megabytes"
36+
ignore_all_server_changes = true
37+
create_method = "PATCH"
38+
create_path = "//${var.container_registry_endpoint}/api/v1/quotas"
39+
destroy_method = "PATCH"
40+
destroy_path = "//${var.container_registry_endpoint}/api/v1/quotas"
3741
destroy_data = jsonencode({
3842
"traffic_megabytes" : 5120 # set to default 5GiB
3943
})

modules/quotas/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ terraform {
99
}
1010
restapi = {
1111
source = "Mastercard/restapi"
12-
version = ">= 1.20.0, <2.0.0"
12+
version = ">= 2.0.1, < 3.0.0"
1313
}
1414
}
1515
}

solutions/fully-configurable/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ terraform {
77
}
88
restapi = {
99
source = "Mastercard/restapi"
10-
version = "1.20.0"
10+
version = "2.0.1"
1111
}
1212
}
1313
}

tests/existing-resources/version.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ terraform {
1111
}
1212
restapi = {
1313
source = "Mastercard/restapi"
14-
version = ">= 1.20.0"
14+
version = ">= 2.0.1"
1515
}
1616
}
1717
}

tests/other_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func TestRunCompleteExample(t *testing.T) {
2020
Testing: t,
2121
TerraformDir: completeDir,
2222
Prefix: "complete-icr",
23+
Region: region,
2324
ResourceGroup: resourceGroup,
2425
})
2526
options.TerraformVars = map[string]interface{}{

tests/pr_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func TestRunUpgradeExample(t *testing.T) {
131131
Testing: t,
132132
TerraformDir: solutionFCDir,
133133
Prefix: "upg-icr",
134+
Region: region,
134135
ResourceGroup: resourceGroup,
135136
})
136137
options.TerraformVars = map[string]interface{}{
@@ -190,6 +191,7 @@ func TestRunExistingResourcesExample(t *testing.T) {
190191
Testing: t,
191192
TerraformDir: solutionFCDir,
192193
Prefix: "upg-icr",
194+
Region: region,
193195
ResourceGroup: resourceGroup,
194196
})
195197
options.TerraformVars = map[string]interface{}{

0 commit comments

Comments
 (0)