diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-09-01 09:09:57 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-09-01 09:09:57 +0200 |
commit | b831723dad93967476f28e16ff5c30444a5f3020 (patch) | |
tree | 9c021ece6118af2a4de6a3f38456f120d9231f74 /client | |
parent | d70ed3ee222320cff442c93878e6f83a73c4bd61 (diff) |
Fix submit URL
Diffstat (limited to 'client')
-rw-r--r-- | client/go/internal/vespa/deploy.go | 2 | ||||
-rw-r--r-- | client/go/internal/vespa/deploy_test.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/go/internal/vespa/deploy.go b/client/go/internal/vespa/deploy.go index 1bfaf641243..d42c65cef1e 100644 --- a/client/go/internal/vespa/deploy.go +++ b/client/go/internal/vespa/deploy.go @@ -263,7 +263,7 @@ func Submit(opts DeploymentOptions, submission Submission) error { return err } submitURL := opts.Target.Deployment().System.SubmitURL(opts.Target.Deployment()) - u, err := opts.url(submitURL) + u, err := url.Parse(submitURL) if err != nil { return err } diff --git a/client/go/internal/vespa/deploy_test.go b/client/go/internal/vespa/deploy_test.go index 9addf81138a..693d4527624 100644 --- a/client/go/internal/vespa/deploy_test.go +++ b/client/go/internal/vespa/deploy_test.go @@ -99,6 +99,7 @@ func TestSubmit(t *testing.T) { SourceURL: "https://github.com/foo/repo", })) require.Nil(t, httpClient.LastRequest.ParseMultipartForm(1<<20)) + assert.Equal(t, "https://api-ctl.vespa-cloud.com:4443/application/v4/tenant/t1/application/a1/submit", httpClient.LastRequest.URL.String()) assert.Equal(t, "{\"risk\":1,\"commit\":\"sha\",\"description\":\"broken garbage\",\"authorEmail\":\"foo@example.com\",\"sourceUrl\":\"https://github.com/foo/repo\"}", httpClient.LastRequest.FormValue("submitOptions")) |