[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Create :
resource "ovh_cloud_project_network_private" "network" {
name = "network"
regions = ["GRA11", "GRA9"]
vlan_id = 0
}
Output
# ovh_cloud_project_network_private.network will be created
+ resource "ovh_cloud_project_network_private" "network" {
+ id = (known after apply)
+ name = "network"
+ regions = [
+ "GRA11",
+ "GRA9",
]
+ regions_attributes = (known after apply)
+ regions_status = (known after apply)
+ service_name = "xxxxxxx"
+ status = (known after apply)
+ type = (known after apply)
+ vlan_id = 0
}
Plan: 1 to add, 0 to change, 0 to destroy.
Update
resource "ovh_cloud_project_network_private" "network" {
name = "network"
regions = ["GRA11", "GRA9", "DE1", "SBG5"]
vlan_id = 0
}
Output
# ovh_cloud_project_network_private.network will be updated in-place
~ resource "ovh_cloud_project_network_private" "network" {
id = "xxxx"
name = "network"
~ regions = [
+ "DE1",
+ "SBG5",
# (2 unchanged elements hidden)
]
# (6 unchanged attributes hidden)
}
Make test
make testacc TESTARGS="-run TestAccCloudProjectNetworkPrivate_basic"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor') -v -run TestAccCloudProjectNetworkPrivate_basic -timeout 600m -p 10
? github.com/ovh/terraform-provider-ovh [no test files]
? github.com/ovh/terraform-provider-ovh/ovh/helpers [no test files]
? github.com/ovh/terraform-provider-ovh/ovh/types [no test files]
=== RUN TestAccCloudProjectNetworkPrivate_basic
provider_test.go:387: Read Cloud Project /cloud/project/bad3308a4b4d4dcba4d15d5b082d7225 -> status: 'ok', desc: 'Production'
--- PASS: TestAccCloudProjectNetworkPrivate_basic (47.85s)
PASS
ok github.com/ovh/terraform-provider-ovh/ovh 47.864s
testing: warning: no tests to run
PASS
ok github.com/ovh/terraform-provider-ovh/ovh/helpers/hashcode (cached) [no tests to run]
Test Configuration:
Terraform version: Terraform v1.5.7
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have added acceptance tests that prove my fix is effective or that my feature works
Description
Add possibility to update network private regions
Fixes #402
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Create :
Output
Update
Output
Make test
Test Configuration:
Checklist: