Go Test Report

235
Total
228
Passed
0
Failed
7
Skipped
299.60
Seconds
keskikuja.site/agent-platform/api/internal/auth15 tests0.02s
Test Status Time
TestSessionMiddleware_ValidCookie PASS 0.000s
TestSessionMiddleware_NoCookie PASS 0.000s
TestSessionMiddleware_InvalidCookie PASS 0.000s
TestSessionMiddleware_IdleExpired PASS 0.000s
TestCSRFMiddleware_AllowsGETWithoutOrigin PASS 0.000s
TestCSRFMiddleware_AllowsPOSTWithCorrectOrigin PASS 0.000s
TestCSRFMiddleware_BlocksPOSTWithWrongOrigin PASS 0.000s
TestCSRFMiddleware_AllowsPOSTWithoutOrigin PASS 0.000s
TestCSRFMiddleware_AllowsPUTWithCorrectOrigin PASS 0.000s
TestCSRFMiddleware_BlocksDELETEWithWrongOrigin PASS 0.000s
TestCSRFMiddleware_AllowsGETWithWrongOrigin PASS 0.000s
TestCSRFMiddleware_EmptyOriginAllowsAll PASS 0.000s
TestAuthMiddlewareValidToken PASS 0.000s
TestAuthMiddlewareInvalidToken PASS 0.000s
TestAuthMiddlewareMissingHeader PASS 0.000s
keskikuja.site/agent-platform/api/internal/auth/store7 tests0.05s
Test Status Time
TestMemoryStore_CreateAndGet PASS 0.000s
TestMemoryStore_GetNotFound PASS 0.000s
TestMemoryStore_Delete PASS 0.000s
TestMemoryStore_TTLExpiry PASS 0.020s
TestMemoryStore_SetStateAndGetAndDeleteState PASS 0.000s
TestMemoryStore_SetRevokedJTIAndIsJTIRevoked PASS 0.000s
TestMemoryStore_StateExpiry PASS 0.020s
keskikuja.site/agent-platform/api/internal/crypto4 tests0.01s
Test Status Time
TestEncryptDecrypt_RoundTrip PASS 0.000s
TestDecrypt_InvalidCiphertext PASS 0.000s
TestDecrypt_LazyMigration_PlaintextPassthrough PASS 0.000s
TestEncrypt_Deterministic_Nope PASS 0.000s
keskikuja.site/agent-platform/api/internal/database1 tests4.12s
Test Status Time
TestMigrateUpDown PASS 4.110s
keskikuja.site/agent-platform/api/internal/git7 skipped15 tests2.03s
Test Status Time
TestCheckHealth_Connected SKIP 0.000s
TestCheckHealth_Disconnected SKIP 0.000s
TestClone_PublicRepo SKIP 0.000s
TestClone_NonExistentRepo SKIP 0.000s
TestClone_WithToken SKIP 0.000s
TestClone_CustomDirectory SKIP 0.000s
TestCreateBranch_Success SKIP 0.000s
TestCheckHealth_Timeout PASS 2.000s
TestCheckHealth_WithToken PASS 0.000s
TestBuildAuthURL_EmptyToken PASS 0.000s
TestBuildAuthURL_ExistingCredentialsNotOverridden PASS 0.000s
TestCreateBranch_EmptyString PASS 0.010s
TestCreateBranch_MainProtected PASS 0.000s
TestCreateBranch_MasterProtected PASS 0.000s
TestCreateBranch_GuardMessage PASS 0.000s
keskikuja.site/agent-platform/api/internal/handlers166 tests286.90s
Test Status Time
TestAuthHandler_Init PASS 0.000s
TestAuthHandler_Init_NoReturnURL PASS 0.000s
TestAuthHandler_Init_AbsoluteReturnURL PASS 0.000s
TestAuthHandler_Session_NoCookie PASS 0.000s
TestAuthHandler_Session_WithSession PASS 0.000s
TestAuthHandler_Logout PASS 0.000s
TestAuthHandler_Logout_Idempotent PASS 0.000s
TestAuthHandler_Logout_WithIDToken PASS 0.000s
TestUpsertUser_InsertNewUser PASS 3.830s
TestUpsertUser_UpdateExisting PASS 2.950s
TestUpsertUser_NullImage PASS 5.820s
TestCreateBotAccount_Success PASS 2.880s
TestCreateBotAccount_TokenEncryptedInDB PASS 3.070s
TestCreateBotAccount_MissingName PASS 2.940s
TestCreateBotAccount_NameTooShort PASS 3.320s
TestCreateBotAccount_MissingToken PASS 4.490s
TestGetBotAccount_Success PASS 3.720s
TestGetBotAccount_NotFound PASS 3.260s
TestListBotAccounts PASS 3.550s
TestUpdateBotAccount_Success PASS 3.160s
TestUpdateBotAccount_NewToken PASS 3.050s
TestUpdateBotAccount_EmptyTokenDoesNotOverwrite PASS 3.600s
TestDeleteBotAccount_NotInUse PASS 3.470s
TestDeleteBotAccount_InUse PASS 2.830s
TestBotAccountEndpoints_NoSession PASS 4.850s
TestListBotAccounts_EmptyList PASS 4.590s
TestCreateBotAccount_DescriptionMax PASS 2.820s
TestHealth PASS 2.820s
TestReady_Success PASS 2.690s
TestReady_DBDown PASS 0.110s
TestCheck_Success PASS 3.770s
TestCheck_DBDown PASS 0.050s
TestReady_ContextTimeout PASS 3.680s
TestCheck_NilRequest PASS 2.770s
TestUserHealth_NoAuth PASS 3.130s
TestUserHealth_ApiKey PASS 3.170s
TestUserHealth_SessionCookie PASS 3.210s
TestUserHealth_ExpiredSession PASS 4.490s
TestUserHealth_InvalidApiKey PASS 3.760s
TestCreatePipeline_Success PASS 2.820s
TestCreatePipeline_WithBaseBranch PASS 3.160s
TestCreatePipeline_DefaultBaseBranch PASS 2.860s
TestUpdatePipeline_BaseBranch PASS 2.770s
TestCreatePipeline_MissingName PASS 3.590s
TestCreatePipeline_InvalidProjectId PASS 2.170s
TestGetPipeline_Success PASS 1.660s
TestGetPipeline_NotFound PASS 0.830s
TestListPipelinesByProject PASS 0.730s
TestListPipelinesByProject_NotFound PASS 0.790s
TestListPipelines_FilterEnabled PASS 0.820s
TestUpdatePipeline_Success PASS 0.940s
TestUpdatePipeline_NotFound PASS 0.650s
TestDeletePipeline_Success PASS 1.450s
TestDeletePipeline_NotFound PASS 0.870s
TestGetProjectDetail_IncludesPipelines PASS 0.730s
TestCreatePipeline_WithoutOutputBranch PASS 1.050s
TestCreatePipeline_WithEmptyOutputBranch PASS 0.910s
TestCreatePipeline_WithOutputBranch PASS 0.830s
TestCreatePipeline_WithConfig PASS 1.250s
TestCreatePipeline_ConfigValidation/array_rejected PASS 2.110s
TestCreatePipeline_ConfigValidation/string_rejected PASS 2.740s
TestCreatePipeline_ConfigValidation/null_accepted PASS 3.730s
TestCreatePipeline_ConfigValidation/object_accepted PASS 2.620s
TestCreatePipeline_ConfigValidation PASS 11.200s
TestUpdatePipeline_NullifyOutputBranch PASS 2.860s
TestUpdatePipeline_Config PASS 3.110s
TestCreateProject_Success PASS 2.910s
TestCreateProject_MissingName PASS 2.740s
TestCreateProject_TooShortName PASS 2.950s
TestGetProject_Success PASS 2.420s
TestGetProject_NotFound PASS 2.890s
TestListProjects_DefaultPagination PASS 2.570s
TestListProjects_SortByNameAsc PASS 2.240s
TestListProjects_InvalidSortField PASS 2.190s
TestUpdateProject_Success PASS 3.000s
TestUpdateProject_NotFound PASS 2.660s
TestDeleteProject_Success PASS 2.910s
TestDeleteProject_NotFound PASS 2.260s
TestProjectEndpoints_NoSession PASS 2.990s
TestProjectHandler_Create_WithConfig PASS 2.870s
TestProjectHandler_Create_WithSecrets PASS 3.290s
TestProjectHandler_Create_ConfigValidation/empty_object PASS 0.010s
TestProjectHandler_Create_ConfigValidation/array_rejected PASS 0.000s
TestProjectHandler_Create_ConfigValidation/string_rejected PASS 0.000s
TestProjectHandler_Create_ConfigValidation/number_rejected PASS 0.000s
TestProjectHandler_Create_ConfigValidation/null_accepted PASS 0.030s
TestProjectHandler_Create_ConfigValidation PASS 2.480s
TestProjectHandler_Update_Config PASS 3.510s
TestProjectHandler_GetDecryptedSecrets PASS 2.610s
TestProjectHandler_Get_StripsSecretsEncrypted PASS 3.770s
TestGetDecryptedSecrets_NoSecrets PASS 2.840s
TestProjectHandler_Update_Secrets PASS 3.240s
TestCreateRepository_Success PASS 2.720s
TestCreateRepository_MissingBotAccountID PASS 2.940s
TestCreateRepository_BotAccountNotFound PASS 3.300s
TestCreateRepository_InvalidName PASS 2.760s
TestCreateRepository_MissingName PASS 2.710s
TestGetRepository_Success PASS 2.820s
TestGetRepository_NotFound PASS 3.360s
TestListRepositories PASS 2.710s
TestGetRepository_HasBotAccountID PASS 2.540s
TestListRepository_HasBotAccountID PASS 2.780s
TestUpdateRepository_Success PASS 2.810s
TestUpdateRepository_ChangeBotAccountID PASS 2.170s
TestUpdateRepository_NotFound PASS 3.240s
TestDeleteRepository_Success PASS 2.920s
TestDeleteRepository_NotFound PASS 3.000s
TestCheckRepositoryHealth_Connected PASS 3.960s
TestCheckRepositoryHealth_Disconnected PASS 1.410s
TestCheckRepositoryHealth_UpdatesDB PASS 1.020s
TestCheckRepositoryHealth_NotFound PASS 0.530s
TestRepositoryEndpoints_NoSession PASS 0.540s
TestCreateRun_Success PASS 0.530s
TestCreateRun_MissingPipelineID PASS 0.470s
TestCreateRun_InvalidPipelineID PASS 0.600s
TestCreateRun_InvalidJSON PASS 0.460s
TestCreateRun_InvalidSourceType PASS 0.470s
TestGetRun_Success PASS 0.490s
TestGetRun_NotFound PASS 0.480s
TestListRuns_ReturnsDefaultPagination PASS 0.470s
TestListRuns_CustomLimitAndOffset PASS 0.460s
TestListRuns_LimitValidation/default_when_missing PASS 0.010s
TestListRuns_LimitValidation/valid_limit PASS 0.000s
TestListRuns_LimitValidation/max_limit_capped PASS 0.000s
TestListRuns_LimitValidation/negative_limit_uses_default PASS 0.000s
TestListRuns_LimitValidation/zero_limit_uses_default PASS 0.000s
TestListRuns_LimitValidation/invalid_format_uses_default PASS 0.000s
TestListRuns_LimitValidation PASS 0.490s
TestListRuns_FilterByPhase PASS 0.480s
TestListRuns_FilterByMultiplePhases PASS 0.490s
TestListRuns_FilterByInvalidPhase PASS 0.530s
TestListRuns_FilterProjectID PASS 0.480s
TestListRuns_FilterPipelineID PASS 0.530s
TestListRuns_FilterSourceType PASS 0.520s
TestListRuns_FilterCreatedAfter PASS 0.510s
TestListRuns_FilterCreatedBefore PASS 0.490s
TestListRuns_FilterSource PASS 0.490s
TestListRuns_SortByStartedAt PASS 0.500s
TestListRuns_FilterMultipleCriteria PASS 0.480s
TestListRuns_SortByCreatedAtDesc PASS 0.490s
TestListRuns_SortByUpdatedAtAsc PASS 0.530s
TestListRuns_InvalidSortField PASS 1.020s
TestListRuns_CursorPagination PASS 0.480s
TestUpdateRun_PhaseOnly PASS 0.510s
TestUpdateRun_Completed PASS 0.490s
TestUpdateRun_Failed PASS 0.500s
TestUpdateRun_NotFound PASS 0.480s
TestUpdateRun_InvalidPhase PASS 0.480s
TestUpdateRun_NoAuth PASS 0.490s
TestIdempotency_NoKey PASS 0.500s
TestIdempotency_SameKeySameBody PASS 0.520s
TestIdempotency_SameKeyDifferentBody PASS 0.500s
TestHubPublishAndReceive PASS 0.000s
TestHubFilterPhaseMatch PASS 0.000s
TestHubFilterPhaseMismatch PASS 0.200s
TestHubFilterSourceType PASS 0.200s
TestSubscribeSSE_NoAuth PASS 0.610s
TestSubscribeSSE_InvalidAPIKey PASS 0.490s
TestRunCreationPublishesSSEEvent PASS 0.500s
TestSubscribeSSE_Heartbeat PASS 0.580s
TestVikunjaWebhook_Success PASS 0.500s
TestVikunjaWebhook_MissingEvent PASS 0.490s
TestVikunjaWebhook_NoProjectConfigured PASS 0.490s
TestVikunjaWebhook_ProjectNotFound PASS 0.480s
TestVikunjaWebhook_NoPipeline PASS 0.500s
TestVikunjaWebhook_InvalidJSON PASS 0.480s
keskikuja.site/agent-platform/api/internal/model16 tests0.01s
Test Status Time
TestPipeline_MarshalJSON_IncludesConfig PASS 0.000s
TestPipeline_MarshalJSON_OutputBranchNullWhenNil PASS 0.000s
TestPipeline_MarshalJSON_OutputBranchValueWhenSet PASS 0.000s
TestPipeline_UnmarshalJSON_OutputBranchNullUnmarshalsToNil PASS 0.000s
TestCreatePipelineRequest_AcceptsConfigAndNullableOutputBranch PASS 0.000s
TestCreatePipelineRequest_OutputBranchValueWhenSet PASS 0.000s
TestUpdatePipelineRequest_AcceptsConfig PASS 0.000s
TestPipeline_ConfigNilMarshalsToNull PASS 0.000s
TestProject_MarshalJSON_IncludesConfig PASS 0.000s
TestProject_MarshalJSON_ExcludesSecretsEncrypted PASS 0.000s
TestProject_UnmarshalJSON_AcceptsConfig PASS 0.000s
TestProject_UnmarshalJSON_SecretsEncryptedNotFromJSON PASS 0.000s
TestCreateProjectRequest_AcceptsConfigAndSecrets PASS 0.000s
TestCreateProjectRequest_MarshalJSON_ConfigAndSecrets PASS 0.000s
TestUpdateProjectRequest_AcceptsConfigAndSecrets PASS 0.000s
TestProject_ConfigNilMarshalsToNull PASS 0.000s
keskikuja.site/agent-platform/api/internal/monitor9 tests6.45s
Test Status Time
TestCheckOne_Connected PASS 0.590s
TestCheckOne_Disconnected PASS 0.490s
TestCheckOne_UpdatesDBStatus PASS 0.490s
TestCheckOne_UpdatesLastCheckedAt PASS 0.500s
TestCheckOne_WithEncryptedToken PASS 0.690s
TestCheckAll_IteratesAllRepos PASS 0.780s
TestCheckOne_WithCorruptToken_ProceedsWithoutToken PASS 0.500s
TestStartStop_RunsUntilCancelled PASS 0.840s
TestStartStop_StopIsIdempotent PASS 0.490s
keskikuja.site/agent-platform/api/internal/pipeline2 tests0.01s
Test Status Time
TestMockExecutor_Start PASS 0.000s
TestMockExecutor_Interface PASS 0.000s
keskikuja.site/agent-platform/api/internal/pipeline/k8s0 tests0.00s
Test Status Time
keskikuja.site/agent-platform/api/internal/swagger0 tests0.00s
Test Status Time