Skip to content

Commit 28e0c96

Browse files
Gabriel Monroymboersma
authored andcommitted
ref(*): parameterize docker image org
1 parent aad1228 commit 28e0c96

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/controller_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func TestController(t *testing.T) {
2626
"/deis/domains",
2727
}
2828
tag, etcdPort := utils.BuildTag(), utils.RandomPort()
29+
imageName := utils.ImagePrefix() + "controller" + ":" + tag
2930

3031
//start etcd container
3132
etcdName := "deis-etcd-" + tag
@@ -38,7 +39,7 @@ func TestController(t *testing.T) {
3839
mock.RunMockDatabase(t, tag, etcdPort, utils.RandomPort())
3940
defer cli.CmdRm("-f", "deis-test-database-"+tag)
4041
host, port := utils.HostAddress(), utils.RandomPort()
41-
fmt.Printf("--- Run deis/controller:%s at %s:%s\n", tag, host, port)
42+
fmt.Printf("--- Run %s at %s:%s\n", imageName, host, port)
4243
name := "deis-controller-" + tag
4344
defer cli.CmdRm("-f", name)
4445
go func() {
@@ -51,7 +52,7 @@ func TestController(t *testing.T) {
5152
"-e", "EXTERNAL_PORT="+port,
5253
"-e", "HOST="+host,
5354
"-e", "ETCD_PORT="+etcdPort,
54-
"deis/controller:"+tag)
55+
imageName)
5556
}()
5657
dockercli.PrintToStdout(t, stdout, stdoutPipe, "Booting")
5758
if err != nil {

0 commit comments

Comments
 (0)