Fixed JSON generation error in mocks

This commit is contained in:
DazWilkin 2016-08-01 20:00:12 -07:00
parent fdf28732d7
commit 1da9fdef4e
1 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func NewEventJSONEncoded() string {
"is_private": true, "is_private": true,
"is_trusted": true, "is_trusted": true,
"name": "testhook", "name": "testhook",
"namespace": "telegraf", "namespace": "%s",
"owner": "%s", "owner": "%s",
"repo_name": "%s", "repo_name": "%s",
"repo_url": "%s", "repo_url": "%s",
@ -60,5 +60,7 @@ func NewEventJSONEncoded() string {
dockerid, dockerid,
time.Now().Unix(), time.Now().Unix(),
dockerid, dockerid,
fmt.Sprintf("%s/%s", dockerid, imagename)) dockerid,
fmt.Sprintf("%s/%s", dockerid, imagename),
fmt.Sprintf("%s/%s/%s/", registry, dockerid, imagename))
} }