-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(vrack): add resource ovh_vrack_dedicated_cloud_datacenter #908
base: master
Are you sure you want to change the base?
Conversation
0e8944e
to
5e4a66d
Compare
5e4a66d
to
bc10dad
Compare
resource "ovh_vrack_dedicated_cloud_datacenter" "vrack-dedicatedCloudDatacenter" { | ||
service_name = "<vRack service name>" | ||
datacenter = "<Dedicated Cloud Datacenter service name>" | ||
target_service_name = "<vRack target service name>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
target_service_name = "<vRack target service name>" | |
target_service_name = "<vRack target service name>" |
Move a Dedicated Cloud Datacenter to a vrack. | ||
|
||
## Example Usage | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should mention before this example that the resource cannot be created and needs to be imported first. I know the information is already in the ## Import
section, but a paragraph starting with ~>
would be more visible.
return nil | ||
} | ||
|
||
func TestAccVrackDedicatedCloudDatacenter_basic(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure this test works ? I think ImportState
and other import-related configs are missing from your test step since resource cannot be created
return | ||
} | ||
|
||
resp.Diagnostics.Append(resp.State.SetAttribute(ctx, path.Root("service_name"), splits[0])...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
Description: "Your dedicatedCloud name", | ||
MarkdownDescription: "Your dedicatedCloud name", | ||
}, | ||
"vrack": schema.StringAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this field is useless now, it can be removed
}, | ||
"target_service_name": schema.StringAttribute{ | ||
CustomType: ovhtypes.TfStringType{}, | ||
Optional: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: true, | |
Computed: true, |
Description
Add resource ovh_vrack_dedicated_cloud_datacenter
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
make testacc TESTARGS="-run TestAccVrackDedicatedCloudDatacenter_basic"
Test Configuration:
terraform version
: Terraform vx.y.zChecklist:
go mod vendor
if I added or modifygo.mod
file