summaryrefslogtreecommitdiffstats
path: root/client/go/internal/vespa/deploy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/internal/vespa/deploy_test.go')
-rw-r--r--client/go/internal/vespa/deploy_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/go/internal/vespa/deploy_test.go b/client/go/internal/vespa/deploy_test.go
index c68ad750f1a..9addf81138a 100644
--- a/client/go/internal/vespa/deploy_test.go
+++ b/client/go/internal/vespa/deploy_test.go
@@ -19,7 +19,7 @@ import (
func TestDeploy(t *testing.T) {
httpClient := mock.HTTPClient{}
- target := LocalTarget(&httpClient, TLSOptions{})
+ target := LocalTarget(&httpClient, TLSOptions{}, 0)
appDir, _ := mock.ApplicationPackageDir(t, false, false)
opts := DeploymentOptions{
Target: target,
@@ -38,7 +38,7 @@ func TestDeploy(t *testing.T) {
func TestDeployCloud(t *testing.T) {
httpClient := mock.HTTPClient{}
- target := createCloudTarget(t, "http://vespacloud", io.Discard)
+ target, _ := createCloudTarget(t, io.Discard)
cloudTarget, ok := target.(*cloudTarget)
require.True(t, ok)
cloudTarget.httpClient = &httpClient
@@ -51,7 +51,7 @@ func TestDeployCloud(t *testing.T) {
require.Nil(t, err)
assert.Equal(t, 1, len(httpClient.Requests))
req := httpClient.LastRequest
- assert.Equal(t, "http://vespacloud/application/v4/tenant/t1/application/a1/instance/i1/deploy/dev-us-north-1", req.URL.String())
+ assert.Equal(t, "https://api-ctl.vespa-cloud.com:4443/application/v4/tenant/t1/application/a1/instance/i1/deploy/dev-us-north-1", req.URL.String())
values := parseMultiPart(t, req)
zipData := values["applicationZip"]
@@ -71,7 +71,7 @@ func TestDeployCloud(t *testing.T) {
func TestSubmit(t *testing.T) {
httpClient := mock.HTTPClient{}
- target := createCloudTarget(t, "http://vespacloud", io.Discard)
+ target, _ := createCloudTarget(t, io.Discard)
cloudTarget, ok := target.(*cloudTarget)
require.True(t, ok)
cloudTarget.httpClient = &httpClient
@@ -170,7 +170,7 @@ func TestFindApplicationPackage(t *testing.T) {
func TestDeactivate(t *testing.T) {
httpClient := mock.HTTPClient{}
- target := LocalTarget(&httpClient, TLSOptions{})
+ target := LocalTarget(&httpClient, TLSOptions{}, 0)
opts := DeploymentOptions{Target: target}
require.Nil(t, Deactivate(opts))
assert.Equal(t, 1, len(httpClient.Requests))
@@ -181,7 +181,7 @@ func TestDeactivate(t *testing.T) {
func TestDeactivateCloud(t *testing.T) {
httpClient := mock.HTTPClient{}
- target := createCloudTarget(t, "http://vespacloud", io.Discard)
+ target, _ := createCloudTarget(t, io.Discard)
cloudTarget, ok := target.(*cloudTarget)
require.True(t, ok)
cloudTarget.httpClient = &httpClient
@@ -190,7 +190,7 @@ func TestDeactivateCloud(t *testing.T) {
assert.Equal(t, 1, len(httpClient.Requests))
req := httpClient.LastRequest
assert.Equal(t, "DELETE", req.Method)
- assert.Equal(t, "http://vespacloud/application/v4/tenant/t1/application/a1/instance/i1/environment/dev/region/us-north-1", req.URL.String())
+ assert.Equal(t, "https://api-ctl.vespa-cloud.com:4443/application/v4/tenant/t1/application/a1/instance/i1/environment/dev/region/us-north-1", req.URL.String())
}
type pkgFixture struct {