Skip to content

Commit

Permalink
fix: upgrade hydra in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Aug 17, 2023
1 parent 6525867 commit fc27095
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ docs/swagger:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -d -b .bin v1.52.2

.bin/hydra: Makefile
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin hydra v2.0.2
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b .bin hydra v2.2.0-rc.3

.bin/ory: Makefile
curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.2.2
Expand Down
3 changes: 2 additions & 1 deletion selfservice/strategy/password/op_login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ func newHydra(t *testing.T, loginUI string, consentUI string) (hydraAdmin string

hydraResource, err := pool.RunWithOptions(&dockertest.RunOptions{
Repository: "oryd/hydra",
Tag: "v2.0.0",
Tag: "v2.2.0",
Env: []string{
"DSN=memory",
fmt.Sprintf("URLS_SELF_ISSUER=http://127.0.0.1:%d/", publicPort),
"URLS_LOGIN=" + loginUI,
"URLS_CONSENT=" + consentUI,
"LOG_LEAK_SENSITIVE_VALUES=true",
"SECRETS_SYSTEM=someverylongsecretthatis32byteslong",
},
Cmd: []string{"serve", "all", "--dev"},
ExposedPorts: []string{"4444/tcp", "4445/tcp"},
Expand Down
1 change: 1 addition & 0 deletions test/e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ prepare() {
LOG_LEVEL=trace \
URLS_LOGIN=http://localhost:4455/login \
URLS_CONSENT=http://localhost:4746/consent \
SECRETS_SYSTEM="[\"1234567890123456789012345678901\"]" \
hydra serve all --dev >"${base}/test/e2e/hydra-kratos.e2e.log" 2>&1 &

(cd test/e2e; npm run wait-on -- -l -t 300000 http-get://127.0.0.1:4745/health/alive)
Expand Down

0 comments on commit fc27095

Please sign in to comment.