Skip to content

Commit

Permalink
Merge pull request #269 from BellionBastien/dev/bbellion/implement-cl…
Browse files Browse the repository at this point in the history
…oud-databases-provider

Add Cloud Database provider
  • Loading branch information
yanndegat authored Jun 30, 2022
2 parents de1d579 + f5b07c4 commit 974c9e8
Show file tree
Hide file tree
Showing 7 changed files with 916 additions and 0 deletions.
1 change: 1 addition & 0 deletions ovh/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func Provider() *schema.Provider {
"ovh_cloud_project": resourceCloudProject(),
"ovh_cloud_project_containerregistry": resourceCloudProjectContainerRegistry(),
"ovh_cloud_project_containerregistry_user": resourceCloudProjectContainerRegistryUser(),
"ovh_cloud_project_database": resourceCloudProjectDatabase(),
"ovh_cloud_project_failover_ip_attach": resourceCloudProjectFailoverIpAttach(),
"ovh_cloud_project_kube": resourceCloudProjectKube(),
"ovh_cloud_project_kube_nodepool": resourceCloudProjectKubeNodePool(),
Expand Down
11 changes: 11 additions & 0 deletions ovh/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ func testAccPreCheckCloud(t *testing.T) {
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_SERVICE_TEST")
}

// Checks that the environment variables needed for the /cloud/project/{projectId}/database/ acceptance tests are set.
func testAccPreCheckCloudDatabase(t *testing.T) {
testAccPreCheckCredentials(t)
testAccPreCheckCloud(t)
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_DATABASE_ENGINE_TEST")
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_DATABASE_VERSION_TEST")
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_DATABASE_REGION_TEST")
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_DATABASE_FLAVOR_TEST")

}

// Checks that the environment variables needed for the /cloud/project/{projectId}/ip/failover acceptance tests
// are set.
func testAccPreCheckFailoverIpAttach(t *testing.T) {
Expand Down
Loading

0 comments on commit 974c9e8

Please sign in to comment.