Skip to content

Commit

Permalink
fix(tests): use ssh:// in TestAccArgoCDRepositoryCredentials (#128)
Browse files Browse the repository at this point in the history
* fix(tests): use ssh:// in TestAccArgoCDRepositoryCredentials

Signed-off-by: Raphaël Pinson <[email protected]>

* fix(tests): use ssh:// in TestAccArgoCDRepository

Signed-off-by: Raphaël Pinson <[email protected]>

* fix(tests): use ~ in git URLs

Signed-off-by: Raphaël Pinson <[email protected]>
  • Loading branch information
raphink authored Jan 26, 2022
1 parent c046cda commit 52b5ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion argocd/resource_argocd_repository_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func testAccArgoCDRepositoryCredentialsRepositoryCoexistence() string {
return fmt.Sprintf(`
resource "argocd_repository" "private" {
count = 10
repo = format("[email protected]:project-%%d.git", count.index+1)
repo = format("[email protected]:~/project-%%d.git", count.index+1)
insecure = true
depends_on = [argocd_repository_credentials.private]
}
Expand Down
4 changes: 2 additions & 2 deletions argocd/resource_argocd_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAccArgoCDRepository(t *testing.T) {
),
},
{
Config: testAccArgoCDRepositoryPrivateGitSSH("[email protected]:project-1.git"),
Config: testAccArgoCDRepositoryPrivateGitSSH("[email protected]:~/project-1.git"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(
"argocd_repository.private",
Expand Down Expand Up @@ -120,7 +120,7 @@ func testAccArgoCDRepositoryMultiplePrivateGitSSH(repoCount int) string {
return fmt.Sprintf(`
resource "argocd_repository" "private" {
count = %d
repo = format("[email protected]:project-%%d.git", count.index+1)
repo = format("[email protected]:~/project-%%d.git", count.index+1)
type = "git"
insecure = true
ssh_private_key = "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW\nQyNTUxOQAAACCGe6Vx0gbKqKCI0wIplfgK5JBjCDO3bhtU3sZfLoeUZgAAAJB9cNEifXDR\nIgAAAAtzc2gtZWQyNTUxOQAAACCGe6Vx0gbKqKCI0wIplfgK5JBjCDO3bhtU3sZfLoeUZg\nAAAEAJeUrObjoTbGO1Sq4TXHl/j4RJ5aKMC1OemWuHmLK7XYZ7pXHSBsqooIjTAimV+Ark\nkGMIM7duG1Texl8uh5RmAAAAC3Rlc3RAYXJnb2NkAQI=\n-----END OPENSSH PRIVATE KEY-----"
Expand Down

0 comments on commit 52b5ac0

Please sign in to comment.