I am new to Kratos code, but am working on a PR. S...
# contributors
h
I am new to Kratos code, but am working on a PR. So the first step is to just see if I can run some unit tests. I did these steps from the docs:
Copy code
make 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
Copy code
cd selfservice/strategy/oidc
go test  -tags sqlite  .
I am getting this error:
Copy code
--- 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.
w
The error seems straightforward: are you running hydra?
h
I am not. Is that required to run unit tests?