Skip to content

Commit 52b5ac0

Browse files
authored
fix(tests): use ssh:// in TestAccArgoCDRepositoryCredentials (#128)
* 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]>
1 parent c046cda commit 52b5ac0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

argocd/resource_argocd_repository_credentials_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func testAccArgoCDRepositoryCredentialsRepositoryCoexistence() string {
6161
return fmt.Sprintf(`
6262
resource "argocd_repository" "private" {
6363
count = 10
64-
repo = format("[email protected]:project-%%d.git", count.index+1)
64+
repo = format("[email protected]:~/project-%%d.git", count.index+1)
6565
insecure = true
6666
depends_on = [argocd_repository_credentials.private]
6767
}

argocd/resource_argocd_repository_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func TestAccArgoCDRepository(t *testing.T) {
3838
),
3939
},
4040
{
41-
Config: testAccArgoCDRepositoryPrivateGitSSH("[email protected]:project-1.git"),
41+
Config: testAccArgoCDRepositoryPrivateGitSSH("[email protected]:~/project-1.git"),
4242
Check: resource.ComposeTestCheckFunc(
4343
resource.TestCheckResourceAttr(
4444
"argocd_repository.private",
@@ -120,7 +120,7 @@ func testAccArgoCDRepositoryMultiplePrivateGitSSH(repoCount int) string {
120120
return fmt.Sprintf(`
121121
resource "argocd_repository" "private" {
122122
count = %d
123-
repo = format("[email protected]:project-%%d.git", count.index+1)
123+
repo = format("[email protected]:~/project-%%d.git", count.index+1)
124124
type = "git"
125125
insecure = true
126126
ssh_private_key = "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW\nQyNTUxOQAAACCGe6Vx0gbKqKCI0wIplfgK5JBjCDO3bhtU3sZfLoeUZgAAAJB9cNEifXDR\nIgAAAAtzc2gtZWQyNTUxOQAAACCGe6Vx0gbKqKCI0wIplfgK5JBjCDO3bhtU3sZfLoeUZg\nAAAEAJeUrObjoTbGO1Sq4TXHl/j4RJ5aKMC1OemWuHmLK7XYZ7pXHSBsqooIjTAimV+Ark\nkGMIM7duG1Texl8uh5RmAAAAC3Rlc3RAYXJnb2NkAQI=\n-----END OPENSSH PRIVATE KEY-----"

0 commit comments

Comments
 (0)