Skip to content

Commit 2872467

Browse files
committed
Improvement in the management of the specificities of dedicated_server_networking which is an Internal route that shall be authorized manually.
1 parent 239fa47 commit 2872467

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

ovh/provider_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,8 @@ func testAccPreCheckWorkflowBackup(t *testing.T) {
351351
checkEnvOrSkip(t, WORKFLOW_BACKUP_TEST_INSTANCE_ID_ENV_VAR)
352352
checkEnvOrSkip(t, WORKFLOW_BACKUP_TEST_REGION_ENV_VAR)
353353
}
354+
355+
// This variable shall be defined to run the test because it targets an internal route that shall be authorized per user
356+
func testAccPreCheckDedicatedServerNetworking(t *testing.T) {
357+
checkEnvOrSkip(t, "TEST_DEDICATED_SERVER_NETWORKING")
358+
}

ovh/resource_dedicated_server_networking_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func TestAccresourceDedicatedServerNetworking(t *testing.T) {
2020
PreCheck: func() {
2121
testAccPreCheckCredentials(t)
2222
testAccPreCheckDedicatedServer(t)
23+
testAccPreCheckDedicatedServerNetworking(t)
2324
},
2425
Providers: testAccProviders,
2526
Steps: []resource.TestStep{

website/docs/r/ovh_dedicated_server_networking.html.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ subcategory : "Dedicated Server"
66

77
Manage dedicated server networking interface on SCALE and HIGH-GRADE range.
88

9+
!> The API route targeted by this resource are restricted to OVHCloud users (`Internal API`) with additional restrictions.
10+
11+
912
## Example Usage
1013

1114
The following example aims to bind all interfaces in a vRack

0 commit comments

Comments
 (0)