-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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-----" | ||
|