Go Test Report

283
Total
276
Passed
0
Failed
7
Skipped
272.63
Seconds
keskikuja.site/agent-platform/api/internal/auth15 tests0.04s
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.030s
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/crypto9 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
TestHMACSHA256_KnownVector PASS 0.000s
TestHMACSHA256_EmptyMessage PASS 0.000s
TestVerifyHMAC_Valid PASS 0.000s
TestVerifyHMAC_Invalid PASS 0.000s
TestVerifyHMAC_WrongSecret PASS 0.000s
keskikuja.site/agent-platform/api/internal/database1 tests7.55s
Test Status Time
TestMigrateUpDown PASS 7.540s
keskikuja.site/agent-platform/api/internal/git7 skipped15 tests2.01s
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.000s
TestCreateBranch_MainProtected PASS 0.000s
TestCreateBranch_MasterProtected PASS 0.000s
TestCreateBranch_GuardMessage PASS 0.000s
keskikuja.site/agent-platform/api/internal/handlers176 tests232.46s
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 0.780s
TestUpsertUser_UpdateExisting PASS 0.700s
TestUpsertUser_NullImage PASS 0.550s
TestCreateBotAccount_Success PASS 0.540s
TestCreateBotAccount_TokenEncryptedInDB PASS 0.520s
TestCreateBotAccount_MissingName PASS 0.500s
TestCreateBotAccount_NameTooShort PASS 0.510s
TestCreateBotAccount_MissingToken PASS 0.780s
TestGetBotAccount_Success PASS 0.510s
TestGetBotAccount_NotFound PASS 0.500s
TestListBotAccounts PASS 0.500s
TestUpdateBotAccount_Success PASS 0.490s
TestUpdateBotAccount_NewToken PASS 0.470s
TestUpdateBotAccount_EmptyTokenDoesNotOverwrite PASS 0.480s
TestDeleteBotAccount_NotInUse PASS 0.500s
TestDeleteBotAccount_InUse PASS 0.490s
TestBotAccountEndpoints_NoSession PASS 0.460s
TestListBotAccounts_EmptyList PASS 1.500s
TestCreateBotAccount_DescriptionMax PASS 0.590s
TestHealth PASS 0.740s
TestReady_Success PASS 0.870s
TestReady_DBDown PASS 0.080s
TestCheck_Success PASS 0.510s
TestCheck_DBDown PASS 0.040s
TestReady_ContextTimeout PASS 0.500s
TestCheck_NilRequest PASS 0.500s
TestUserHealth_NoAuth PASS 0.580s
TestUserHealth_ApiKey PASS 0.520s
TestUserHealth_SessionCookie PASS 0.490s
TestUserHealth_ExpiredSession PASS 0.530s
TestUserHealth_InvalidApiKey PASS 0.530s
TestCreatePipeline_Success PASS 1.320s
TestCreatePipeline_WithBaseBranch PASS 0.510s
TestCreatePipeline_DefaultBaseBranch PASS 0.470s
TestUpdatePipeline_BaseBranch PASS 0.530s
TestCreatePipeline_MissingName PASS 0.530s
TestCreatePipeline_InvalidProjectId PASS 0.660s
TestGetPipeline_Success PASS 0.490s
TestGetPipeline_NotFound PASS 0.460s
TestListPipelinesByProject PASS 0.650s
TestListPipelinesByProject_NotFound PASS 0.520s
TestListPipelines_FilterEnabled PASS 0.520s
TestUpdatePipeline_Success PASS 0.530s
TestUpdatePipeline_NotFound PASS 0.530s
TestDeletePipeline_Success PASS 0.590s
TestDeletePipeline_NotFound PASS 0.490s
TestGetProjectDetail_IncludesPipelines PASS 0.500s
TestCreatePipeline_WithoutOutputBranch PASS 0.500s
TestCreatePipeline_WithEmptyOutputBranch PASS 0.500s
TestCreatePipeline_WithOutputBranch PASS 0.500s
TestCreatePipeline_WithConfig PASS 0.550s
TestCreatePipeline_ConfigValidation/array_rejected PASS 1.140s
TestCreatePipeline_ConfigValidation/string_rejected PASS 0.480s
TestCreatePipeline_ConfigValidation/null_accepted PASS 0.500s
TestCreatePipeline_ConfigValidation/object_accepted PASS 0.490s
TestCreatePipeline_ConfigValidation PASS 2.620s
TestUpdatePipeline_NullifyOutputBranch PASS 0.530s
TestUpdatePipeline_Config PASS 0.500s
TestCreateProject_Success PASS 0.500s
TestCreateProject_MissingName PASS 0.480s
TestCreateProject_TooShortName PASS 0.570s
TestGetProject_Success PASS 0.510s
TestGetProject_NotFound PASS 0.610s
TestListProjects_DefaultPagination PASS 0.510s
TestListProjects_SortByNameAsc PASS 0.530s
TestListProjects_InvalidSortField PASS 0.630s
TestUpdateProject_Success PASS 0.570s
TestUpdateProject_NotFound PASS 0.510s
TestDeleteProject_Success PASS 0.760s
TestDeleteProject_NotFound PASS 0.650s
TestProjectEndpoints_NoSession PASS 0.680s
TestProjectHandler_Create_WithConfig PASS 1.070s
TestProjectHandler_Create_WithSecrets PASS 1.030s
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.010s
TestProjectHandler_Create_ConfigValidation PASS 1.340s
TestProjectHandler_Update_Config PASS 1.190s
TestProjectHandler_GetDecryptedSecrets PASS 2.090s
TestProjectHandler_Get_StripsSecretsEncrypted PASS 1.410s
TestGetDecryptedSecrets_NoSecrets PASS 1.490s
TestProjectHandler_Update_Secrets PASS 1.380s
TestCreateRepository_Success PASS 1.910s
TestCreateRepository_MissingBotAccountID PASS 1.940s
TestCreateRepository_BotAccountNotFound PASS 2.420s
TestCreateRepository_InvalidName PASS 2.780s
TestCreateRepository_MissingName PASS 2.500s
TestGetRepository_Success PASS 2.480s
TestGetRepository_NotFound PASS 2.130s
TestListRepositories PASS 2.380s
TestGetRepository_HasBotAccountID PASS 2.410s
TestListRepository_HasBotAccountID PASS 1.930s
TestUpdateRepository_Success PASS 2.100s
TestUpdateRepository_ChangeBotAccountID PASS 2.480s
TestUpdateRepository_NotFound PASS 1.490s
TestDeleteRepository_Success PASS 2.310s
TestDeleteRepository_NotFound PASS 2.840s
TestCheckRepositoryHealth_Connected PASS 3.980s
TestCheckRepositoryHealth_Disconnected PASS 2.900s
TestCheckRepositoryHealth_UpdatesDB PASS 2.800s
TestCheckRepositoryHealth_NotFound PASS 2.460s
TestRepositoryEndpoints_NoSession PASS 2.150s
TestCreateRun_Success PASS 2.230s
TestCreateRun_MissingPipelineID PASS 2.100s
TestCreateRun_InvalidPipelineID PASS 2.830s
TestCreateRun_InvalidJSON PASS 2.000s
TestCreateRun_InvalidSourceType PASS 2.040s
TestGetRun_Success PASS 2.460s
TestGetRun_NotFound PASS 2.730s
TestListRuns_ReturnsDefaultPagination PASS 2.500s
TestListRuns_CustomLimitAndOffset PASS 2.490s
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 2.130s
TestListRuns_FilterByPhase PASS 2.620s
TestListRuns_FilterByMultiplePhases PASS 1.250s
TestListRuns_FilterByInvalidPhase PASS 1.030s
TestListRuns_FilterProjectID PASS 0.670s
TestListRuns_FilterPipelineID PASS 1.700s
TestListRuns_FilterSourceType PASS 1.210s
TestListRuns_FilterCreatedAfter PASS 1.980s
TestListRuns_FilterCreatedBefore PASS 1.520s
TestListRuns_FilterSource PASS 0.780s
TestListRuns_SortByStartedAt PASS 0.810s
TestListRuns_FilterMultipleCriteria PASS 1.610s
TestListRuns_SortByCreatedAtDesc PASS 1.380s
TestListRuns_SortByUpdatedAtAsc PASS 2.680s
TestListRuns_InvalidSortField PASS 2.770s
TestListRuns_CursorPagination PASS 2.550s
TestUpdateRun_PhaseOnly PASS 3.200s
TestUpdateRun_Completed PASS 2.930s
TestUpdateRun_Failed PASS 3.000s
TestUpdateRun_NotFound PASS 1.910s
TestUpdateRun_InvalidPhase PASS 2.770s
TestUpdateRun_NoAuth PASS 3.810s
TestIdempotency_NoKey PASS 2.710s
TestIdempotency_SameKeySameBody PASS 2.530s
TestIdempotency_SameKeyDifferentBody PASS 2.740s
TestHubPublishAndReceive PASS 0.000s
TestHubFilterPhaseMatch PASS 0.000s
TestHubFilterPhaseMismatch PASS 0.200s
TestHubFilterSourceType PASS 0.200s
TestSubscribeSSE_NoAuth PASS 2.500s
TestSubscribeSSE_InvalidAPIKey PASS 3.340s
TestRunCreationPublishesSSEEvent PASS 2.310s
TestSubscribeSSE_Heartbeat PASS 3.160s
TestGitHubPR_ValidHMAC_CreatesRun PASS 3.010s
TestGitHubPR_ValidHMAC_GiteaSignature PASS 2.590s
TestGitHubPR_MissingSignature PASS 2.700s
TestGitHubPR_InvalidSignature PASS 2.320s
TestGitHubPR_NonPullRequestEvent PASS 2.310s
TestGitHubPR_DisabledPipeline PASS 2.750s
TestGitHubPR_PipelineNotFound PASS 4.030s
TestGitHubPR_NoWebhookSecret PASS 2.980s
TestGitHubPR_IgnoredAction PASS 2.930s
TestGitHubPR_InvalidPipelineID PASS 2.810s
TestVikunjaWebhook_Success PASS 2.580s
TestVikunjaWebhook_MissingEvent PASS 2.480s
TestVikunjaWebhook_NoProjectConfigured PASS 3.320s
TestVikunjaWebhook_ProjectNotFound PASS 3.190s
TestVikunjaWebhook_NoPipeline PASS 2.890s
TestVikunjaWebhook_InvalidJSON PASS 2.490s
keskikuja.site/agent-platform/api/internal/model21 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
TestPRMetadata_MarshalJSON PASS 0.000s
TestPRMetadata_UnmarshalJSON PASS 0.000s
TestSourceMetadata_WithPR_MarshalJSON PASS 0.000s
TestSourceMetadata_WithoutPR_MarshalJSON PASS 0.000s
TestSourceMetadata_PRNil_OmitsFromJSON PASS 0.000s
keskikuja.site/agent-platform/api/internal/monitor9 tests30.41s
Test Status Time
TestCheckOne_Connected PASS 2.890s
TestCheckOne_Disconnected PASS 2.670s
TestCheckOne_UpdatesDBStatus PASS 2.480s
TestCheckOne_UpdatesLastCheckedAt PASS 2.670s
TestCheckOne_WithEncryptedToken PASS 2.680s
TestCheckAll_IteratesAllRepos PASS 4.350s
TestCheckOne_WithCorruptToken_ProceedsWithoutToken PASS 2.170s
TestStartStop_RunsUntilCancelled PASS 4.000s
TestStartStop_StopIsIdempotent PASS 1.470s
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/k8s28 tests0.06s
Test Status Time
TestBuildJobSpec_Name PASS 0.000s
TestBuildJobSpec_Namespace PASS 0.000s
TestBuildJobSpec_Labels PASS 0.000s
TestBuildJobSpec_BackoffLimit PASS 0.000s
TestBuildJobSpec_TTL PASS 0.000s
TestBuildJobSpec_RestartPolicy PASS 0.000s
TestBuildJobSpec_ServiceAccount PASS 0.000s
TestBuildJobSpec_ContainerImage PASS 0.000s
TestBuildJobSpec_ContainerName PASS 0.000s
TestBuildJobSpec_Command PASS 0.000s
TestBuildJobSpec_EnvVars PASS 0.000s
TestBuildJobSpec_SingleContainerOnly PASS 0.000s
TestStart_CreatesJob PASS 0.000s
TestStart_PREnvvars PASS 0.000s
TestStart_NoPR PASS 0.000s
TestStart_WithBotToken PASS 0.000s
TestStart_NoBotToken PASS 0.000s
TestStart_DecryptTokenError PASS 0.000s
TestStart_GiteaBaseURLParsing PASS 0.000s
TestStart_RepoURLNoHost PASS 0.000s
TestStart_LangfuseEnvVars PASS 0.000s
TestStart_DefaultNamespace PASS 0.000s
TestNewK8sExecutor_MissingEnvVars/missing_NAMESPACE PASS 0.000s
TestNewK8sExecutor_MissingEnvVars/missing_CORE_IMAGE PASS 0.000s
TestNewK8sExecutor_MissingEnvVars/missing_RELEASE_NAME PASS 0.000s
TestNewK8sExecutor_MissingEnvVars/missing_API_URL PASS 0.000s
TestNewK8sExecutor_MissingEnvVars/missing_ENGINE_API_KEY PASS 0.000s
TestNewK8sExecutor_MissingEnvVars PASS 0.000s
keskikuja.site/agent-platform/api/internal/swagger0 tests0.00s
Test Status Time