Make addr configurable

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-10-03 15:37:41 +02:00
parent 382a37f1e1
commit 37a4d41d0e
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View file

@ -122,6 +122,7 @@ func (s *IntegrationOIDCTestSuite) SetupSuite() {
"10000/tcp": {{HostPort: "10000"}},
},
Env: []string{
fmt.Sprintf("MOCKOIDC_ADDR=%s", oidcMockHostname),
"MOCKOIDC_PORT=10000",
"MOCKOIDC_CLIENT_ID=superclient",
"MOCKOIDC_CLIENT_SECRET=supersecret",
@ -330,6 +331,8 @@ func (s *IntegrationOIDCTestSuite) AuthenticateOIDC(
resp, err := client.Get(loginURL.String())
assert.Nil(s.T(), err)
log.Printf("auth body, err: %#v, %s", resp, err)
body, err := io.ReadAll(resp.Body)
assert.Nil(s.T(), err)