diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-07-22 12:51:58 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-07-22 12:51:58 +0200 |
commit | c3b9c871da33d591ef1830d4d7dcbe5df20c9e96 (patch) | |
tree | a7c6e8aa1aec2fe2e0acad7fabc682a3de795e2a | |
parent | 0a6f2ed7a619db57917ba10bdd8017041783e1a7 (diff) |
Verify content type
-rw-r--r-- | client/go/src/github.com/vespa-engine/vespa/cmd/deploy_test.go | 3 |
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.) } |