-
Notifications
You must be signed in to change notification settings - Fork 136
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: add vrack data source #854
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for your contribution @mantasak !
Apart from the comments I left, can you also add a documentation page in website/docs/d/ ?
err := config.OVHClient.Get( | ||
fmt.Sprintf( | ||
"/vrack/%s", | ||
serviceName, |
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.
serviceName, | |
url.PathEscape(serviceName), |
}) | ||
} | ||
|
||
const testAccVrackDatasourceConfig_Basic = ` |
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.
could you move this definition in the test func itself to avoid the global variable ?
@@ -396,6 +396,11 @@ func testAccPreCheckOkmsCredential(t *testing.T) { | |||
checkEnvOrSkip(t, "OVH_OKMS_CREDENTIAL") | |||
} | |||
|
|||
func testAccPreCheckVrack(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.
can be removed, there is already the testAccPreCheckVRack
func that does the same thing
Description
Adding single vRack retrieval data source support
There is currently no raised issue that needs this functionality, however I have noticed it is missing and I need it for a project.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Simple unit test like implemented for VPS retrieval.
Checklist:
go mod vendor
if I added or modifygo.mod
file