summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/deploy_test.go
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-09-22 10:30:19 +0200
committerMartin Polden <mpolden@mpolden.no>2021-09-22 10:45:04 +0200
commit2239bed79760f5eedf25771a1bd6c84114ea7ade (patch)
tree7174ae81e5b9407a1530f7a3a08a00c8763f67fc /client/go/cmd/deploy_test.go
parentb6d3d1814961d95c84d4dac12e875b6fa3bdc3d6 (diff)
Support printing curl command for document operations
Diffstat (limited to 'client/go/cmd/deploy_test.go')
-rw-r--r--client/go/cmd/deploy_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/go/cmd/deploy_test.go b/client/go/cmd/deploy_test.go
index f24ba0829f9..443f7e8846f 100644
--- a/client/go/cmd/deploy_test.go
+++ b/client/go/cmd/deploy_test.go
@@ -1,4 +1,4 @@
-// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// deploy command tests
// Author: bratseth
@@ -130,9 +130,10 @@ func assertActivate(applicationPackage string, arguments []string, t *testing.T)
if err := cfg.WriteSessionID(vespa.DefaultApplication, 42); err != nil {
t.Fatal(err)
}
+ out, _ := execute(command{args: arguments, homeDir: homeDir}, t, client)
assert.Equal(t,
"Success: Activated "+applicationPackage+" with session 42\n",
- execute(command{args: arguments, homeDir: homeDir}, t, client))
+ out)
url := "http://127.0.0.1:19071/application/v2/tenant/default/session/42/active"
assert.Equal(t, url, client.lastRequest.URL.String())
assert.Equal(t, "PUT", client.lastRequest.Method)