kojiapi: prefix all routes with /api/composer-koji/v1

The cloud API will be moved to `/api/composer/v1` in the future.

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:
Lars Karlitski 2020-09-23 22:27:48 +02:00 committed by Tom Gundersen
parent a8ba969f6e
commit 40d8440660
5 changed files with 11 additions and 7 deletions

View file

@ -192,7 +192,7 @@ func TestKojiAPIAuth(t *testing.T) {
require.NoError(t, err)
defer ckp.remove()
testRoute(t, "https://localhost/status", ckp, c.success)
testRoute(t, "https://localhost/api/composer-koji/v1/status", ckp, c.success)
})
}
})
@ -208,7 +208,7 @@ func TestKojiAPIAuth(t *testing.T) {
require.NoError(t, err)
defer ckp.remove()
testRoute(t, "https://localhost/status", ckp, false)
testRoute(t, "https://localhost/api/composer-koji/v1/status", ckp, false)
})
t.Run("self-signed certificate", func(t *testing.T) {
@ -217,7 +217,7 @@ func TestKojiAPIAuth(t *testing.T) {
require.NoError(t, err)
defer ckp.remove()
testRoute(t, "https://localhost/status", ckp, false)
testRoute(t, "https://localhost/api/composer-koji/v1/status", ckp, false)
})
}