Skip to content
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

Add a variable for the Managed Kubernetes Service upgrade test #466

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ovh/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func testAccPreCheckKubernetes(t *testing.T) {
testAccPreCheckCloud(t)
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_KUBE_REGION_TEST")
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_KUBE_VERSION_TEST")
checkEnvOrSkip(t, "OVH_CLOUD_PROJECT_KUBE_PREV_VERSION_TEST")
}

// Checks that the environment variables needed for the /vrack/{service}/cloudProject acceptance tests
Expand Down
4 changes: 2 additions & 2 deletions ovh/resource_cloud_project_kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,8 @@ func TestAccCloudProjectKubeUpdateVersion_basic(t *testing.T) {
name := acctest.RandomWithPrefix(test_prefix)
updatedName := acctest.RandomWithPrefix(test_prefix)

version1 := "1.24"
version2 := "1.25"
version1 := os.Getenv("OVH_CLOUD_PROJECT_KUBE_PREV_VERSION_TEST")
version2 := os.Getenv("OVH_CLOUD_PROJECT_KUBE_VERSION_TEST")

config := fmt.Sprintf(
testAccCloudProjectKubeConfig,
Expand Down
1 change: 1 addition & 0 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ variables must also be set:
* `OVH_CLOUD_PROJECT_KUBE_REGION_TEST` - The region of your public cloud kubernetes project.

* `OVH_CLOUD_PROJECT_KUBE_VERSION_TEST` - The version of your public cloud kubernetes project.
* `OVH_CLOUD_PROJECT_KUBE_PREV_VERSION_TEST` - The previous version of your public cloud kubernetes project. This is used to test upgrade.

* `OVH_DEDICATED_SERVER` - The name of the dedicated server to test dedicated_server_networking resource.

Expand Down