osbuild-composer-koji.socket: use standard https port

Rather than using the arbitrary port 8701, use the standard 443. The
worker API will remain on a separate port, and as long as the two APIs
are exposed by the same binary that will have to remain separate at
8700.

Move the test instance of koji on localhost from 443 to 4343, to avoid a
conflict.

In a follow-up we should also give this API a prefix, so the cloud API
can share the same port with it.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-09-16 18:38:46 +01:00 committed by Ondřej Budai
parent 06c582a206
commit 4f39a33d34
6 changed files with 13 additions and 13 deletions

View file

@ -24,7 +24,7 @@ import (
func TestKojiRefund(t *testing.T) {
shareDir := "/tmp/osbuild-composer-koji-test"
server := "https://localhost/kojihub"
server := "https://localhost:4343/kojihub"
// base our transport on the default one
transport := http.DefaultTransport.(*http.Transport).Clone()
@ -77,7 +77,7 @@ func TestKojiRefund(t *testing.T) {
func TestKojiImport(t *testing.T) {
// define constants
server := "https://localhost/kojihub"
server := "https://localhost:4343/kojihub"
filename := "image.qcow2"
filesize := 1024
shareDir := "/tmp/osbuild-composer-koji-test"

View file

@ -80,8 +80,8 @@ koji_start() {
${CONTAINER_RUNTIME} run -d --name org.osbuild.koji.koji --network org.osbuild.koji \
-v "${SHARE_DIR}:/share:z" \
-p 80:80 \
-p 443:443 \
-p 8080:80 \
-p 4343:443 \
-e POSTGRES_USER=koji \
-e POSTGRES_PASSWORD=kojipass \
-e POSTGRES_DB=koji \