From 1da9fdef4ec060248e0e9e7f4a991a8d2bd9b7dd Mon Sep 17 00:00:00 2001 From: DazWilkin Date: Mon, 1 Aug 2016 20:00:12 -0700 Subject: [PATCH] Fixed JSON generation error in mocks --- .../inputs/webhooks/dockerhub/dockerhub_webhooks_mocks.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/webhooks/dockerhub/dockerhub_webhooks_mocks.go b/plugins/inputs/webhooks/dockerhub/dockerhub_webhooks_mocks.go index f11ded2f7..eee48a858 100644 --- a/plugins/inputs/webhooks/dockerhub/dockerhub_webhooks_mocks.go +++ b/plugins/inputs/webhooks/dockerhub/dockerhub_webhooks_mocks.go @@ -45,7 +45,7 @@ func NewEventJSONEncoded() string { "is_private": true, "is_trusted": true, "name": "testhook", - "namespace": "telegraf", + "namespace": "%s", "owner": "%s", "repo_name": "%s", "repo_url": "%s", @@ -60,5 +60,7 @@ func NewEventJSONEncoded() string { dockerid, time.Now().Unix(), dockerid, - fmt.Sprintf("%s/%s", dockerid, imagename)) + dockerid, + fmt.Sprintf("%s/%s", dockerid, imagename), + fmt.Sprintf("%s/%s/%s/", registry, dockerid, imagename)) }