summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-11 18:37:29 -0600
committermo khan <mo@mokhan.ca>2025-05-11 21:22:02 -0600
commit5cc8d582127abed58433c85526d03a257748ca0c (patch)
tree62b1a2cc892954cb5f8719b45002c63ab3967a72 /test/integration
parentf57db7a7ca4a18f49559f0c7b4c13ed526dbce5a (diff)
test: do not expose host port
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/container_test.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/integration/container_test.go b/test/integration/container_test.go
index bc86046..727c3c4 100644
--- a/test/integration/container_test.go
+++ b/test/integration/container_test.go
@@ -7,8 +7,6 @@ import (
"context"
"net/http"
"net/url"
- "strconv"
- "strings"
"testing"
"time"
@@ -40,8 +38,8 @@ func TestContainer(t *testing.T) {
address, err := url.Parse(srv.MockOIDC.Addr())
require.NoError(t, err)
- port, err := strconv.Atoi(address.Port())
- require.NoError(t, err)
+ // port, err := strconv.Atoi(address.Port())
+ // require.NoError(t, err)
issuer := srv.Issuer()
t.Logf("mockoidc: %v %v %v\n", address.String(), issuer, testcontainers.HostInternal)
@@ -56,9 +54,10 @@ func TestContainer(t *testing.T) {
"OAUTH_CLIENT_ID": srv.MockOIDC.Config().ClientID,
"OAUTH_CLIENT_SECRET": srv.MockOIDC.Config().ClientSecret,
"OAUTH_REDIRECT_URL": "",
- "OIDC_ISSUER": strings.Replace(issuer, "127.0.0.1", testcontainers.HostInternal, 1),
+ // "OIDC_ISSUER": strings.Replace(issuer, "127.0.0.1", testcontainers.HostInternal, 1),
+ "OIDC_ISSUER": issuer,
}),
- testcontainers.WithHostPortAccess(port),
+ // testcontainers.WithHostPortAccess(port),
testcontainers.WithExposedPorts("8080/tcp", "9901/tcp", "10000/tcp"),
testcontainers.WithLogConsumers(&TestLogConsumer{t: t}),
testcontainers.WithWaitStrategy(wait.ForLog("Listening on").WithStartupTimeout(time.Second*5)),