Fixed JSON generation error in mocks
This commit is contained in:
parent
fdf28732d7
commit
1da9fdef4e
|
@ -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))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue