Skip to content

Commit

Permalink
Update testing definition url to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
vydrazde committed Jul 22, 2024
1 parent 9655479 commit bdb5266
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
`
Expand Down
8 changes: 4 additions & 4 deletions internal/provider/sandbox_definition_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down

0 comments on commit bdb5266

Please sign in to comment.