From bdb52664ed162ebd278267546a15f78c194de72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Vydra?= <485514@mail.muni.cz> Date: Mon, 22 Jul 2024 10:31:09 +0200 Subject: [PATCH] Update testing definition url to HTTPS --- internal/provider/provider_test.go | 2 +- internal/provider/sandbox_definition_resource_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go index 1de618d..09c629c 100644 --- a/internal/provider/provider_test.go +++ b/internal/provider/provider_test.go @@ -29,7 +29,7 @@ resource "gitlab_project_tag" "terraform_testing_definition" { } resource "kypo_sandbox_definition" "test" { - url = "git@gitlab.ics.muni.cz:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" + url = "https://gitlab.ics.muni.cz/muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" rev = gitlab_project_tag.terraform_testing_definition.name } ` diff --git a/internal/provider/sandbox_definition_resource_test.go b/internal/provider/sandbox_definition_resource_test.go index dffe3d9..bbbfbdc 100644 --- a/internal/provider/sandbox_definition_resource_test.go +++ b/internal/provider/sandbox_definition_resource_test.go @@ -28,12 +28,12 @@ func TestAccSandboxDefinitionResource(t *testing.T) { { Config: providerConfig + gitlabTestingDefinitionTag + ` resource "kypo_sandbox_definition" "test" { - url = "git@gitlab.ics.muni.cz:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" + url = "https://gitlab.ics.muni.cz/muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" rev = gitlab_project_tag.terraform_testing_definition[0].name } `, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "git@gitlab.ics.muni.cz:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"), + resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "https://gitlab.ics.muni.cz/muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"), resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "rev", os.Getenv("TF_VAR_TAG_NAME")+"-0"), resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "terraform-testing-definition"), resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "id"), @@ -55,12 +55,12 @@ resource "kypo_sandbox_definition" "test" { { Config: providerConfig + gitlabTestingDefinitionTag + ` resource "kypo_sandbox_definition" "test" { - url = "git@gitlab.ics.muni.cz:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" + url = "https://gitlab.ics.muni.cz/muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git" rev = gitlab_project_tag.terraform_testing_definition[1].name } `, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "git@gitlab.ics.muni.cz:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"), + resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "https://gitlab.ics.muni.cz/muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"), resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "rev", os.Getenv("TF_VAR_TAG_NAME")+"-1"), resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "terraform-testing-definition"), resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "id"),