From e2f4093b9c66633bc02c4c33f7f6b8ed45473115 Mon Sep 17 00:00:00 2001 From: Dave Walter Date: Fri, 18 Nov 2016 17:21:08 -0800 Subject: [PATCH] Revert "post body change to apply changes" - this change does not add support for 1.7 - according to the docs on a 1.7 Ops Manager, the /api/v0/installations endpoint takes a multi-part form body, not a JSON object This reverts commit 53f2cea6f3bee1dccd44d4e8106bc1f3284facc5. --- api/installations_service.go | 2 +- api/installations_service_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/installations_service.go b/api/installations_service.go index 975ed45f9..6267c43e8 100644 --- a/api/installations_service.go +++ b/api/installations_service.go @@ -31,7 +31,7 @@ func NewInstallationsService(client httpClient) InstallationsService { } func (is InstallationsService) Trigger() (InstallationsServiceOutput, error) { - req, err := http.NewRequest("POST", "/api/v0/installations", strings.NewReader(`{enabled_errands: {}}`)) + req, err := http.NewRequest("POST", "/api/v0/installations", strings.NewReader(`{}`)) if err != nil { return InstallationsServiceOutput{}, err } diff --git a/api/installations_service_test.go b/api/installations_service_test.go index 47909f956..5e078e9b0 100644 --- a/api/installations_service_test.go +++ b/api/installations_service_test.go @@ -42,7 +42,7 @@ var _ = Describe("InstallationsService", func() { body, err := ioutil.ReadAll(req.Body) Expect(err).NotTo(HaveOccurred()) - Expect(string(body)).To(Equal(`{enabled_errands: {}}`)) + Expect(string(body)).To(Equal("{}")) }) Context("when an error occurs", func() {