summaryrefslogtreecommitdiffstats
path: root/client/go
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-07-22 12:51:58 +0200
committerJon Bratseth <bratseth@gmail.com>2021-07-22 12:51:58 +0200
commitc3b9c871da33d591ef1830d4d7dcbe5df20c9e96 (patch)
treea7c6e8aa1aec2fe2e0acad7fabc682a3de795e2a /client/go
parent0a6f2ed7a619db57917ba10bdd8017041783e1a7 (diff)
Verify content type
Diffstat (limited to 'client/go')
-rw-r--r--client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go b/client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go
index 6028813549f..33eab5464fd 100644
--- a/client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go
+++ b/client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go
@@ -15,4 +15,7 @@ func TestDeployCommand(t *testing.T) {
executeCommand(t, []string{"deploy", "testdata/application.zip"}))
assert.Equal(t, "http://127.0.0.1:19071/application/v2/tenant/default/prepareandactivate", lastRequest.URL.String())
assert.Equal(t, "application/zip", lastRequest.Header.Get("Content-Type"))
+ var body = lastRequest.Body
+ assert.NotNil(t, body)
+ assert.Equals(t, "", lastRequest.)
}