From a046e63835af217837e5e4dec9d9236ae40f3b30 Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 15 Sep 2016 10:08:29 +0200 Subject: [PATCH 1/5] Break things - REBEL!!! --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index ba1d684..459f827 100644 --- a/http.go +++ b/http.go @@ -12,7 +12,7 @@ func hello(w http.ResponseWriter, r *http.Request) { func to_roman(n int) string { if n == 2 { - return "II" + return "III" } return "I" } From 84a5ce45ff5b675da0fd9d01531487ed926d71f8 Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 15 Sep 2016 10:09:13 +0200 Subject: [PATCH 2/5] Update http.go --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 459f827..ba1d684 100644 --- a/http.go +++ b/http.go @@ -12,7 +12,7 @@ func hello(w http.ResponseWriter, r *http.Request) { func to_roman(n int) string { if n == 2 { - return "III" + return "II" } return "I" } From 80b99fd59bd8a47a3810b1ea001f093cf49d82b8 Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 15 Sep 2016 11:06:21 +0200 Subject: [PATCH 3/5] Test webhook --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f07edf2..27148d7 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,5 @@ Test that you can run it: Here's how to run the test suite: docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.6 go test -v + +## Test webhook From 7ba733d8616a5a01b42b0695647ce0a33e460eb0 Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 15 Sep 2016 12:54:49 +0200 Subject: [PATCH 4/5] Break tests to verify deliver protection --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index ba1d684..46fc2d7 100644 --- a/http.go +++ b/http.go @@ -14,7 +14,7 @@ func to_roman(n int) string { if n == 2 { return "II" } - return "I" + return "IX" } type romanGenerator int From 61377f1fa4b8728146704a43d5f70de170fb8f6d Mon Sep 17 00:00:00 2001 From: Mike Long Date: Thu, 15 Sep 2016 12:59:03 +0200 Subject: [PATCH 5/5] Fix tests to verify deliver protection --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 46fc2d7..be5b4f7 100644 --- a/http.go +++ b/http.go @@ -14,7 +14,7 @@ func to_roman(n int) string { if n == 2 { return "II" } - return "IX" + return "I" // oopsie } type romanGenerator int