worker: prefix all routes with /api/worker/v1
Mention this in the `servers` section of the openapi.yml (relative URLs are allowed) too, even though our generator does not consider it.
This commit is contained in:
parent
9008a1defc
commit
a8ba969f6e
6 changed files with 35 additions and 21 deletions
|
|
@ -145,7 +145,7 @@ func TestWorkerAPIAuth(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
defer ckp.remove()
|
||||
|
||||
testRoute(t, "https://localhost:8700/status", ckp, c.success)
|
||||
testRoute(t, "https://localhost:8700/api/worker/v1/status", ckp, c.success)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
@ -161,7 +161,7 @@ func TestWorkerAPIAuth(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
defer ckp.remove()
|
||||
|
||||
testRoute(t, "https://localhost:8700/status", ckp, false)
|
||||
testRoute(t, "https://localhost:8700/api/worker/v1/status", ckp, false)
|
||||
})
|
||||
|
||||
t.Run("self-signed certificate", func(t *testing.T) {
|
||||
|
|
@ -170,7 +170,7 @@ func TestWorkerAPIAuth(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
defer ckp.remove()
|
||||
|
||||
testRoute(t, "https://localhost:8700/status", ckp, false)
|
||||
testRoute(t, "https://localhost:8700/api/worker/v1/status", ckp, false)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue