idempotence.io/ca coverage: 0.0% of statements
idempotence.io/ca/batch coverage: 0.0% of statements
idempotence.io/ca/crypto coverage: 0.0% of statements
idempotence.io/ca/db coverage: 0.0% of statements
=== RUN TestBackend
____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.11.1
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:8080
backend_test.go:38: emailFirstAgent: lonnychristiansen@mueller.org, passwordFirstAgent: tryme
backend_test.go:44: emailSecondAgent: christopherwaters@torphy.name, passwordSecondAgent: tryme
backend_test.go:50: emailAdditionalCompanyAgentNonAdmin: gwendolynkulas@haag.org, passwordAdditionalCompanyAgentNonAdmin: tryme
backend_test.go:56: emailAdditionalCompanyAgentAdmin: jayceblock@windler.info, passwordAdditionalCompanyAgentAdmin: tryme
=== RUN TestBackend/SignUpEmailAndVerifyOnboardingTicketFirstAgent
2025/12/18 08:45:06 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:204 record not found
[1.050ms] [rows:0] SELECT * FROM "certificate_authorities" WHERE "certificate_authorities"."id" = 0 AND "certificate_authorities"."deleted_at" IS NULL ORDER BY "certificate_authorities"."id" LIMIT 1
=== RUN TestBackend/OnboardingFailures
=== RUN TestBackend/OnboardAgentAfterSignupFirstAgent
=== RUN TestBackend/FailLoginOnIncorrectEmail
2025/12/18 08:45:07 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:454 record not found
[2.917ms] [rows:0] SELECT * FROM "certificate_authorities" WHERE "certificate_authorities"."email_address" = 'i.do.not.exist@example.com' AND "certificate_authorities"."deleted_at" IS NULL ORDER BY "certificate_authorities"."id" LIMIT 1
=== RUN TestBackend/FailLoginOnIncorrectPassword
=== RUN TestBackend/LoginFirstAgent
=== RUN TestBackend/DeactivateCompanyAgentSelfBadRequest
=== RUN TestBackend/ActivateCompanyAgentSelfBadRequest
=== RUN TestBackend/GetProfile
=== RUN TestBackend/AddAgentToCompanyNonAdmin
=== RUN TestBackend/DeactivateCompanyAgentNonAdminUnonboardedPriorOnboarding
=== RUN TestBackend/ActivateCompanyAgentNonAdminUnonboardedPriorOnboarding
=== RUN TestBackend/OnboardCompanyAdditionalAgentNonAdmin
=== RUN TestBackend/DeactivateCompanyAgentNonAdminOnboardedPostOnboarding
=== RUN TestBackend/ActivateCompanyAgentNonAdminOnboardedPostOnboarding
=== RUN TestBackend/LoginAgentNonAdmin
=== RUN TestBackend/AddAgentToCompanyAdmin
=== RUN TestBackend/OnboardCompanyAdditionalAgentAdmin
=== RUN TestBackend/DeactivateCompanyAgentNonAdminOnboardedPostOnboardingForbidden
=== RUN TestBackend/ActivateCompanyAgentNonAdminOnboardedPostOnboardingForbidden
=== RUN TestBackend/MakeAgentAdmin
=== RUN TestBackend/LoginAgentAdmin
=== RUN TestBackend/SignUpEmailAndVerifyOnboardingTicketSecondAgent
2025/12/18 08:45:08 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:204 record not found
[1.481ms] [rows:0] SELECT * FROM "certificate_authorities" WHERE "certificate_authorities"."id" = 0 AND "certificate_authorities"."deleted_at" IS NULL ORDER BY "certificate_authorities"."id" LIMIT 1
=== RUN TestBackend/OnboardAgentAfterSignupSecondAgent
=== RUN TestBackend/LoginSecondAgent
=== RUN TestBackend/SendConnectionRequest
=== RUN TestBackend/SendConnectionRequestToNonExistentAgent
2025/12/18 08:45:08 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:204 record not found
[0.928ms] [rows:0] SELECT * FROM "certificate_authorities" WHERE "certificate_authorities"."id" = 0 AND "certificate_authorities"."deleted_at" IS NULL ORDER BY "certificate_authorities"."id" LIMIT 1
=== RUN TestBackend/AcceptConnectionRequest
=== RUN TestBackend/DisconnectActiveConnection
2025/12/18 08:45:08 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/test_helpers/connections.go:222 record not found
[0.546ms] [rows:0] SELECT * FROM "ca_connections" WHERE "ca_connections"."id" = 206121 AND "ca_connections"."deleted_at" IS NULL ORDER BY "ca_connections"."id" LIMIT 1
=== RUN TestBackend/SendConnectionRequest#01
=== RUN TestBackend/AcceptConnectionRequest#01
=== RUN TestBackend/AccessCompanyConnectionsAsNonAdminAgent
=== RUN TestBackend/AccessCompanyConnectionsAsAdminAgent
=== RUN TestBackend/SendConnectionRequest#02
=== RUN TestBackend/SendReverseConnectionRequestAsAcceptance
=== RUN TestBackend/SendConnectionRequestBadRequest
=== RUN TestBackend/DisconnectActiveConnection#01
2025/12/18 08:45:09 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/test_helpers/connections.go:222 record not found
[0.556ms] [rows:0] SELECT * FROM "ca_connections" WHERE "ca_connections"."id" = 206124 AND "ca_connections"."deleted_at" IS NULL ORDER BY "ca_connections"."id" LIMIT 1
=== RUN TestBackend/SendConnectionRequest#03
=== RUN TestBackend/AcceptConnectionRequest#02
=== RUN TestBackend/CreateCertificateAsRegularUser
=== RUN TestBackend/CreateCertificateAsSecondCompanyUser
=== RUN TestBackend/CreateCertificateAsAdminUser
=== RUN TestBackend/CreateCertificateBadRequest
=== RUN TestBackend/CreateAPICredential
=== RUN TestBackend/ListAPICredential
=== RUN TestBackend/RevokeAPICredential
2025/12/18 08:45:11 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:614 record not found
[1.218ms] [rows:0] SELECT * FROM "api_credentials" WHERE ("api_credentials"."id" = 207260 AND "api_credentials"."certificate_authority_id" = 23266) AND "api_credentials"."deleted_at" IS NULL ORDER BY "api_credentials"."id" LIMIT 1
=== RUN TestBackend/SignUpEmailAndDeclineAgent
2025/12/18 08:45:11 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/agent.go:204 record not found
[0.892ms] [rows:0] SELECT * FROM "certificate_authorities" WHERE "certificate_authorities"."id" = 0 AND "certificate_authorities"."deleted_at" IS NULL ORDER BY "certificate_authorities"."id" LIMIT 1
=== RUN TestBackend/GetAllCompanyAgents
=== RUN TestBackend/MakeAgentAdminFailures
=== RUN TestBackend/SendConnectionRequestAndDecline
=== RUN TestBackend/SendConnectionRequestAndDeclineByAdmin
=== RUN TestBackend/SendPendingConnectionRequests
--- PASS: TestBackend (4.79s)
--- PASS: TestBackend/SignUpEmailAndVerifyOnboardingTicketFirstAgent (0.13s)
--- PASS: TestBackend/OnboardingFailures (0.06s)
--- PASS: TestBackend/OnboardAgentAfterSignupFirstAgent (0.09s)
--- PASS: TestBackend/FailLoginOnIncorrectEmail (0.04s)
--- PASS: TestBackend/FailLoginOnIncorrectPassword (0.08s)
--- PASS: TestBackend/LoginFirstAgent (0.07s)
--- PASS: TestBackend/DeactivateCompanyAgentSelfBadRequest (0.02s)
--- PASS: TestBackend/ActivateCompanyAgentSelfBadRequest (0.01s)
--- PASS: TestBackend/GetProfile (0.01s)
--- PASS: TestBackend/AddAgentToCompanyNonAdmin (0.10s)
--- PASS: TestBackend/DeactivateCompanyAgentNonAdminUnonboardedPriorOnboarding (0.01s)
--- PASS: TestBackend/ActivateCompanyAgentNonAdminUnonboardedPriorOnboarding (0.01s)
--- PASS: TestBackend/OnboardCompanyAdditionalAgentNonAdmin (0.09s)
--- PASS: TestBackend/DeactivateCompanyAgentNonAdminOnboardedPostOnboarding (0.01s)
--- PASS: TestBackend/ActivateCompanyAgentNonAdminOnboardedPostOnboarding (0.02s)
--- PASS: TestBackend/LoginAgentNonAdmin (0.08s)
--- PASS: TestBackend/AddAgentToCompanyAdmin (0.11s)
--- PASS: TestBackend/OnboardCompanyAdditionalAgentAdmin (0.10s)
--- PASS: TestBackend/DeactivateCompanyAgentNonAdminOnboardedPostOnboardingForbidden (0.01s)
--- PASS: TestBackend/ActivateCompanyAgentNonAdminOnboardedPostOnboardingForbidden (0.01s)
--- PASS: TestBackend/MakeAgentAdmin (0.02s)
--- PASS: TestBackend/LoginAgentAdmin (0.08s)
--- PASS: TestBackend/SignUpEmailAndVerifyOnboardingTicketSecondAgent (0.09s)
--- PASS: TestBackend/OnboardAgentAfterSignupSecondAgent (0.09s)
--- PASS: TestBackend/LoginSecondAgent (0.07s)
--- PASS: TestBackend/SendConnectionRequest (0.04s)
--- PASS: TestBackend/SendConnectionRequestToNonExistentAgent (0.11s)
--- PASS: TestBackend/AcceptConnectionRequest (0.28s)
--- PASS: TestBackend/DisconnectActiveConnection (0.04s)
--- PASS: TestBackend/SendConnectionRequest#01 (0.02s)
--- PASS: TestBackend/AcceptConnectionRequest#01 (0.32s)
--- PASS: TestBackend/AccessCompanyConnectionsAsNonAdminAgent (0.02s)
--- PASS: TestBackend/AccessCompanyConnectionsAsAdminAgent (0.02s)
--- PASS: TestBackend/SendConnectionRequest#02 (0.02s)
--- PASS: TestBackend/SendReverseConnectionRequestAsAcceptance (0.40s)
--- PASS: TestBackend/SendConnectionRequestBadRequest (0.02s)
--- PASS: TestBackend/DisconnectActiveConnection#01 (0.04s)
--- PASS: TestBackend/SendConnectionRequest#03 (0.02s)
--- PASS: TestBackend/AcceptConnectionRequest#02 (0.33s)
--- PASS: TestBackend/CreateCertificateAsRegularUser (0.15s)
--- PASS: TestBackend/CreateCertificateAsSecondCompanyUser (0.06s)
--- PASS: TestBackend/CreateCertificateAsAdminUser (0.12s)
--- PASS: TestBackend/CreateCertificateBadRequest (0.01s)
--- PASS: TestBackend/CreateAPICredential (1.02s)
--- PASS: TestBackend/ListAPICredential (0.01s)
--- PASS: TestBackend/RevokeAPICredential (0.04s)
--- PASS: TestBackend/SignUpEmailAndDeclineAgent (0.10s)
--- PASS: TestBackend/GetAllCompanyAgents (0.01s)
--- PASS: TestBackend/MakeAgentAdminFailures (0.02s)
--- PASS: TestBackend/SendConnectionRequestAndDecline (0.05s)
--- PASS: TestBackend/SendConnectionRequestAndDeclineByAdmin (0.03s)
--- PASS: TestBackend/SendPendingConnectionRequests (0.04s)
PASS
coverage: 77.5% of statements
ok idempotence.io/ca/handlers 5.358s coverage: 77.5% of statements
=== RUN TestAPI
=== RUN TestAPI/AuthenticationAttempts
____ __
/ __/___/ / ___
/ _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.11.1
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
O\
⇨ http server started on [::]:8181
2025/12/18 08:45:12 /Users/idempotencecloud/Repos/idempotence/idempotence_ca/handlers/api/authenticate.go:38 record not found
[6.456ms] [rows:0] SELECT * FROM "api_credentials" WHERE "api_credentials"."key_id" = 'bad-api-key' AND "api_credentials"."deleted_at" IS NULL ORDER BY "api_credentials"."id" LIMIT 1
api_test.go:60: API Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcGlLZXkiOiJlMDAzODJkZi1jM2EwLTQ3YWYtOTVlMC1jZTM5YzEwODQxZmEiLCJleHAiOjE3NjYxNTU1MTJ9.ML55KwY0gQniqp2vaeAc3MCBK4sN0RAbg1kZgIs3Qls
=== RUN TestAPI/ListCertificates
=== RUN TestAPI/FetchCertificate
=== RUN TestAPI/FetchCertificateBadRequest
--- PASS: TestAPI (0.41s)
--- PASS: TestAPI/AuthenticationAttempts (0.26s)
--- PASS: TestAPI/ListCertificates (0.05s)
--- PASS: TestAPI/FetchCertificate (0.08s)
--- PASS: TestAPI/FetchCertificateBadRequest (0.01s)
PASS
coverage: 64.6% of statements
ok idempotence.io/ca/handlers/api 0.879s coverage: 64.6% of statements
idempotence.io/ca/middleware coverage: 0.0% of statements
idempotence.io/ca/migrations coverage: 0.0% of statements
idempotence.io/ca/models coverage: 0.0% of statements
idempotence.io/ca/services coverage: 0.0% of statements