Remove hardcoded username in test
@@ -108,13 +108,14 @@ func TestAccSingleReplicationRemoteRepo(t *testing.T) {
cron_exp = "0 0 12 ? * MON *"
enable_event_replication = false
url = "https://repo1.maven.org/maven2/"
- username = "christianb"
+ username = "{{ .username }}"
depends_on = [artifactory_remote_repository.{{ .remote_name }}]
}
`
tcl = executeTemplate("foo", tcl, map[string]string{
"repoconfig_name": name,
"remote_name": repo_name,
+ "username": os.Getenv("ARTIFACTORY_USERNAME"),
})
resource.Test(t, resource.TestCase{
CheckDestroy: compositeCheckDestroy(
