Skip to content

Commit f9a0c10

Browse files
MrLujeonematchfox
andauthored
Update argocd/resource_argocd_repository_test.go
Co-authored-by: Brian Fox <[email protected]>
1 parent e00956f commit f9a0c10

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

argocd/resource_argocd_repository_test.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -156,30 +156,30 @@ resource "argocd_repository" "helm" {
156156

157157
func testAccArgoCDRepositoryHelmProjectScoped(project string) string {
158158
return fmt.Sprintf(`
159-
resource "argocd_project" "simple" {
160-
metadata {
161-
name = "%s"
162-
namespace = "argocd"
163-
}
164-
165-
spec {
166-
description = "simple project"
167-
source_repos = ["*"]
159+
resource "argocd_project" "simple" {
160+
metadata {
161+
name = "%[1]s"
162+
namespace = "argocd"
163+
}
168164
169-
destination {
170-
name = "anothercluster"
171-
namespace = "bar"
172-
}
173-
}
174-
}
165+
spec {
166+
description = "simple project"
167+
source_repos = ["*"]
168+
169+
destination {
170+
name = "anothercluster"
171+
namespace = "bar"
172+
}
173+
}
174+
}
175175
176176
resource "argocd_repository" "helm" {
177177
repo = "https://helm.nginx.com/stable"
178178
name = "nginx-stable-scoped"
179179
type = "helm"
180-
project = "%s"
180+
project = "%[1]s"
181181
}
182-
`, project, project)
182+
`, project)
183183
}
184184

185185
func testAccArgoCDRepositoryPublicUsageInApplication(name string) string {

0 commit comments

Comments
 (0)