Skip to content

Commit

Permalink
tests: resolve oidc conformity regression
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 23, 2021
1 parent 7f806e5 commit 1049602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=postgres
- image: cockroachdb/cockroach:v20.2.5
- image: cockroachdb/cockroach:v20.2.6
command: start-single-node --insecure
- image: mysql:8.0
environment:
Expand Down
11 changes: 2 additions & 9 deletions test/conformance/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package main

import (
"bytes"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
Expand Down Expand Up @@ -105,13 +104,7 @@ var (
}
server = urlx.ParseOrPanic("https://127.0.0.1:8443")
config, _ = ioutil.ReadFile("./config.json")
httpClient = &http.Client{
Transport: httpx.NewResilientRoundTripper(&http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
}, time.Second*5, time.Second*15),
}
httpClient = httpx.NewResilientClient(httpx.ResilientClientWithMinxRetryWait(time.Second*5), httpx.ResilientClientWithClient(&http.Client{Timeout: time.Second * 5}))

workdir string

Expand Down Expand Up @@ -269,7 +262,7 @@ func createPlan(t *testing.T, extra url.Values, isParallel bool) {
bo := conf.NextBackOff()
require.NotEqual(t, backoff.Stop, bo, "%+v", err)

_, err = hydra.Admin.CreateJSONWebKeySet(admin.NewCreateJSONWebKeySetParams().WithHTTPClient(httpClient).WithSet("hydra.openid.id-token").WithBody(&models.JSONWebKeySetGeneratorRequest{
_, err = hydra.Admin.CreateJSONWebKeySet(admin.NewCreateJSONWebKeySetParams().WithHTTPClient(httpClient.StandardClient()).WithSet("hydra.openid.id-token").WithBody(&models.JSONWebKeySetGeneratorRequest{
Alg: pointerx.String("RS256"),
}))
if err == nil {
Expand Down

0 comments on commit 1049602

Please sign in to comment.