Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication Test Is Broken #606

Open
dthuering opened this issue Jul 16, 2023 · 0 comments · May be fixed by #607
Open

Authentication Test Is Broken #606

dthuering opened this issue Jul 16, 2023 · 0 comments · May be fixed by #607

Comments

@dthuering
Copy link

Describe the bug

The project tests do not run successfully.

Configuration

none

Steps to reproduce

Check out main and run make run-unit

Actual result

--- FAIL: TestAuthenticator (0.00s)
    --- FAIL: TestAuthenticator/TestAuthenticateTLS (0.00s)
        --- FAIL: TestAuthenticator/TestAuthenticateTLS/should_authenticate_an_api_key_successfully_with_wildcard_permissions (0.00s)
            authenticator_test.go:207: 
                        Error Trace:    authenticator_test.go:207
                                                                suite.go:77
                        Error:          Received unexpected error:
                                        IR100: invalid tls certificate
                        Test:           TestAuthenticator/TestAuthenticateTLS/should_authenticate_an_api_key_successfully_with_wildcard_permissions
FAIL

Expected result

All tests pass.

Additional context

MacBook Pro with M1 using go1.20.6 darwin/arm64

Other

It is most likely the expired certificate for Eve in tls.go that causes the test to fail.

$ openssl x509 -text -in tmp/eveCert.pem
Certificate:
    Data:
        Version: 1 (0x0)
        Serial Number:
            20:eb:cb:11:19:4d:57:94:bb:66:db:c3:43:b8:6d:9d:15:ba:47:eb
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C = CH, ST = Vaud, L = Lausanne, O = ConsenSys, OU = Protocol, CN = localhost
        Validity
            Not Before: Sep  6 15:25:04 2021 GMT
            Not After : Sep  6 15:25:04 2022 GMT
        Subject: C = CH, ST = Vaud, L = Lausanne, O = signer, OU = *:ethereum, CN = auth0|eve
@dthuering dthuering linked a pull request Jul 16, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant