hallowed-hydrogen-55872
02/17/2024, 12:17 AMmake test-resetdb
export TEST_DATABASE_MYSQL='<mysql://root>:secret@(127.0.0.1:3444)/mysql?parseTime=true'
export TEST_DATABASE_POSTGRESQL='<postgres://postgres:secret@127.0.0.1:3445/kratos?sslmode=disable>'
export TEST_DATABASE_COCKROACHDB='<cockroach://root@127.0.0.1:3446/defaultdb?sslmode=disable>'
Then
cd selfservice/strategy/oidc
go test -tags sqlite .
I am getting this error:
--- FAIL: TestPostEndpointRedirect (1.73s)
strategy_helper_test.go:246: Environment did not provide Ory Hydra, starting fresh.
strategy_helper_test.go:270:
Error Trace: /Users/kosborn/git/fulcrumapp/kratos/selfservice/strategy/oidc/strategy_helper_test.go:270
/Users/kosborn/git/fulcrumapp/kratos/selfservice/strategy/oidc/strategy_test.go:1430
Error: Received unexpected error:
API error (400): invalid tag format
<http://github.com/ory/dockertest/v3.(*Pool).RunWithOptions|github.com/ory/dockertest/v3.(*Pool).RunWithOptions>
/Users/kosborn/go/pkg/mod/github.com/ory/dockertest/v3@v3.9.1/dockertest.go:413
<http://github.com/ory/kratos/selfservice/strategy/oidc_test.newHydra|github.com/ory/kratos/selfservice/strategy/oidc_test.newHydra>
/Users/kosborn/git/fulcrumapp/kratos/selfservice/strategy/oidc/strategy_helper_test.go:252
<http://github.com/ory/kratos/selfservice/strategy/oidc_test.TestPostEndpointRedirect|github.com/ory/kratos/selfservice/strategy/oidc_test.TestPostEndpointRedirect>
/Users/kosborn/git/fulcrumapp/kratos/selfservice/strategy/oidc/strategy_test.go:1430
testing.tRunner
/usr/local/opt/go/libexec/src/testing/testing.go:1595
runtime.goexit
/usr/local/opt/go/libexec/src/runtime/asm_amd64.s:1650
Test: TestPostEndpointRedirect
FAIL
FAIL <http://github.com/ory/kratos/selfservice/strategy/oidc|github.com/ory/kratos/selfservice/strategy/oidc> 46.446s
FAIL
Is there some step I am missing?
I am also unclear on how to determine which tests are “short” tests and which aren’t. I get this error with both tags.witty-holiday-65473
02/18/2024, 10:37 AMhallowed-hydrogen-55872
02/19/2024, 3:09 PM