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"),