Go Test Report

351
Total
344
Passed
0
Failed
7
Skipped
324.23
Seconds
keskikuja.site/agent-platform/api/internal/auth15 tests0.05s
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.020s
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 tests9.63s
Test Status Time
TestMigrateUpDown PASS 9.610s
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/handlers223 tests283.52s
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 2.250s
TestUpsertUser_UpdateExisting PASS 3.350s
TestUpsertUser_NullImage PASS 3.910s
TestCreateBotAccount_Success PASS 2.480s
TestCreateBotAccount_TokenEncryptedInDB PASS 3.110s
TestCreateBotAccount_MissingName PASS 2.480s
TestCreateBotAccount_NameTooShort PASS 2.410s
TestCreateBotAccount_MissingToken PASS 2.900s
TestGetBotAccount_Success PASS 2.570s
TestGetBotAccount_NotFound PASS 2.770s
TestListBotAccounts PASS 3.020s
TestUpdateBotAccount_Success PASS 2.970s
TestUpdateBotAccount_NewToken PASS 2.160s
TestUpdateBotAccount_EmptyTokenDoesNotOverwrite PASS 2.790s
TestDeleteBotAccount_NotInUse PASS 1.610s
TestDeleteBotAccount_InUse PASS 2.300s
TestBotAccountEndpoints_NoSession PASS 1.700s
TestListBotAccounts_EmptyList PASS 3.580s
TestCreateBotAccount_DescriptionMax PASS 1.740s
TestHealth PASS 1.340s
TestReady_Success PASS 0.900s
TestReady_DBDown PASS 0.060s
TestCheck_Success PASS 0.950s
TestCheck_DBDown PASS 0.040s
TestReady_ContextTimeout PASS 0.710s
TestCheck_NilRequest PASS 1.180s
TestUserHealth_NoAuth PASS 1.500s
TestUserHealth_ApiKey PASS 0.750s
TestUserHealth_SessionCookie PASS 0.900s
TestUserHealth_ExpiredSession PASS 0.850s
TestUserHealth_InvalidApiKey PASS 0.590s
TestCreateLlmConfig_Success PASS 0.600s
TestCreateLlmConfig_ApiKeyEncryptedInDB PASS 0.650s
TestCreateLlmConfig_MissingName PASS 0.640s
TestCreateLlmConfig_NameTooShort PASS 0.710s
TestCreateLlmConfig_MissingApiKey PASS 0.570s
TestCreateLlmConfig_DuplicateName PASS 0.550s
TestGetLlmConfig_Success PASS 0.580s
TestGetLlmConfig_NotFound PASS 0.530s
TestListLlmConfigs PASS 0.590s
TestListLlmConfigs_EmptyList PASS 0.650s
TestUpdateLlmConfig_Success PASS 0.600s
TestUpdateLlmConfig_NewApiKey PASS 0.630s
TestUpdateLlmConfig_EmptyApiKeyDoesNotOverwrite PASS 0.620s
TestUpdateLlmConfig_MissingApiKeyDoesNotOverwrite PASS 0.700s
TestUpdateLlmConfig_DuplicateName PASS 0.650s
TestUpdateLlmConfig_NotFound PASS 0.600s
TestDeleteLlmConfig_Success PASS 0.680s
TestDeleteLlmConfig_NotFound PASS 0.670s
TestLlmConfigEndpoints_NoSession PASS 0.670s
TestCreatePipeline_Success PASS 1.340s
TestCreatePipeline_WithBaseBranch PASS 0.710s
TestCreatePipeline_DefaultBaseBranch PASS 1.040s
TestUpdatePipeline_BaseBranch PASS 1.100s
TestCreatePipeline_MissingName PASS 0.950s
TestCreatePipeline_InvalidProjectId PASS 1.270s
TestGetPipeline_Success PASS 1.090s
TestGetPipeline_NotFound PASS 1.200s
TestListPipelinesByProject PASS 1.150s
TestListPipelinesByProject_NotFound PASS 1.190s
TestListPipelines_FilterEnabled PASS 1.140s
TestUpdatePipeline_Success PASS 1.070s
TestUpdatePipeline_NotFound PASS 1.020s
TestDeletePipeline_Success PASS 1.030s
TestDeletePipeline_NotFound PASS 1.070s
TestGetProjectDetail_IncludesPipelines PASS 1.150s
TestCreatePipeline_WithoutOutputBranch PASS 1.140s
TestCreatePipeline_WithEmptyOutputBranch PASS 1.100s
TestCreatePipeline_WithOutputBranch PASS 2.600s
TestCreatePipeline_WithConfig PASS 0.910s
TestCreatePipeline_ConfigValidation/array_rejected PASS 0.890s
TestCreatePipeline_ConfigValidation/string_rejected PASS 0.940s
TestCreatePipeline_ConfigValidation/null_accepted PASS 0.840s
TestCreatePipeline_ConfigValidation/object_accepted PASS 0.890s
TestCreatePipeline_ConfigValidation PASS 3.560s
TestUpdatePipeline_NullifyOutputBranch PASS 0.980s
TestUpdatePipeline_Config PASS 1.370s
TestCreatePipeline_WithSkillRepos PASS 0.890s
TestCreatePipeline_EmptySkillRepos PASS 0.870s
TestCreatePipeline_SkillReposValidation/valid_list_accepted PASS 0.870s
TestCreatePipeline_SkillReposValidation/empty_list_accepted PASS 0.890s
TestCreatePipeline_SkillReposValidation/null_accepted PASS 0.990s
TestCreatePipeline_SkillReposValidation/http_scheme_rejected PASS 0.940s
TestCreatePipeline_SkillReposValidation/unparseable_url_rejected PASS 1.010s
TestCreatePipeline_SkillReposValidation/empty_url_rejected PASS 1.020s
TestCreatePipeline_SkillReposValidation/empty_name_rejected PASS 0.970s
TestCreatePipeline_SkillReposValidation/uppercase_name_rejected PASS 1.030s
TestCreatePipeline_SkillReposValidation/underscore_name_rejected PASS 1.030s
TestCreatePipeline_SkillReposValidation/long_name_rejected PASS 0.990s
TestCreatePipeline_SkillReposValidation/duplicate_names_rejected PASS 0.950s
TestCreatePipeline_SkillReposValidation/over_cap_rejected PASS 0.880s
TestCreatePipeline_SkillReposValidation PASS 11.570s
TestGetAndListPipelines_ReturnSkillRepos PASS 1.390s
TestUpdatePipeline_SkillRepos PASS 0.950s
TestUpdatePipeline_SkillReposToEmpty PASS 1.020s
TestUpdatePipeline_SkillReposValidation/bad_url PASS 0.890s
TestUpdatePipeline_SkillReposValidation/duplicate_names PASS 1.350s
TestUpdatePipeline_SkillReposValidation/over_cap PASS 2.560s
TestUpdatePipeline_SkillReposValidation PASS 4.810s
TestCreateProject_Success PASS 1.840s
TestCreateProject_MissingName PASS 1.660s
TestCreateProject_TooShortName PASS 1.320s
TestGetProject_Success PASS 1.280s
TestGetProject_NotFound PASS 1.300s
TestListProjects_DefaultPagination PASS 1.920s
TestListProjects_SortByNameAsc PASS 1.740s
TestListProjects_InvalidSortField PASS 1.460s
TestUpdateProject_Success PASS 1.470s
TestUpdateProject_NotFound PASS 2.390s
TestDeleteProject_Success PASS 1.870s
TestDeleteProject_NotFound PASS 1.200s
TestProjectEndpoints_NoSession PASS 1.150s
TestProjectHandler_Create_WithConfig PASS 1.310s
TestProjectHandler_Create_WithSecrets PASS 2.170s
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.830s
TestProjectHandler_Update_Config PASS 1.270s
TestProjectHandler_GetDecryptedSecrets PASS 1.430s
TestProjectHandler_Get_StripsSecretsEncrypted PASS 1.110s
TestGetDecryptedSecrets_NoSecrets PASS 2.110s
TestProjectHandler_Update_Secrets PASS 1.680s
TestProjectHandler_Update_Secrets_PlainStringRejected PASS 1.460s
TestProjectHandler_Update_Secrets_EmptyStringRejected PASS 1.310s
TestCreateRepository_Success PASS 2.140s
TestCreateRepository_MissingBotAccountID PASS 1.200s
TestCreateRepository_BotAccountNotFound PASS 2.000s
TestCreateRepository_InvalidName PASS 2.070s
TestCreateRepository_MissingName PASS 1.370s
TestGetRepository_Success PASS 1.980s
TestGetRepository_NotFound PASS 1.610s
TestListRepositories PASS 1.280s
TestGetRepository_HasBotAccountID PASS 1.270s
TestListRepository_HasBotAccountID PASS 2.040s
TestUpdateRepository_Success PASS 1.400s
TestUpdateRepository_ChangeBotAccountID PASS 1.490s
TestUpdateRepository_NotFound PASS 2.070s
TestDeleteRepository_Success PASS 0.940s
TestDeleteRepository_NotFound PASS 0.670s
TestCheckRepositoryHealth_Connected PASS 1.500s
TestCheckRepositoryHealth_Disconnected PASS 1.360s
TestCheckRepositoryHealth_UpdatesDB PASS 1.650s
TestCheckRepositoryHealth_NotFound PASS 0.680s
TestRepositoryEndpoints_NoSession PASS 0.890s
TestCreateRun_Success PASS 0.700s
TestCreateRun_MissingPipelineID PASS 0.780s
TestCreateRun_InvalidPipelineID PASS 0.850s
TestCreateRun_InvalidJSON PASS 0.830s
TestCreateRun_InvalidSourceType PASS 0.700s
TestGetRun_Success PASS 0.920s
TestGetRun_NotFound PASS 0.930s
TestListRuns_ReturnsDefaultPagination PASS 1.010s
TestListRuns_CustomLimitAndOffset PASS 1.180s
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 1.440s
TestListRuns_FilterByPhase PASS 2.650s
TestListRuns_FilterByMultiplePhases PASS 1.580s
TestListRuns_FilterByInvalidPhase PASS 1.460s
TestListRuns_FilterProjectID PASS 1.130s
TestListRuns_FilterPipelineID PASS 1.860s
TestListRuns_FilterSourceType PASS 2.270s
TestListRuns_FilterCreatedAfter PASS 2.140s
TestListRuns_FilterCreatedBefore PASS 1.280s
TestListRuns_FilterSource PASS 1.380s
TestListRuns_SortByStartedAt PASS 2.120s
TestListRuns_FilterMultipleCriteria PASS 2.140s
TestListRuns_SortByCreatedAtDesc PASS 1.170s
TestListRuns_SortByUpdatedAtAsc PASS 2.300s
TestListRuns_InvalidSortField PASS 1.750s
TestListRuns_CursorPagination PASS 1.270s
TestUpdateRun_PhaseOnly PASS 1.980s
TestUpdateRun_Completed PASS 2.060s
TestUpdateRun_Failed PASS 1.620s
TestUpdateRun_NotFound PASS 1.570s
TestUpdateRun_InvalidPhase PASS 1.630s
TestUpdateRun_NoAuth PASS 1.480s
TestIdempotency_NoKey PASS 2.200s
TestIdempotency_SameKeySameBody PASS 1.530s
TestIdempotency_SameKeyDifferentBody PASS 2.300s
TestHubPublishAndReceive PASS 0.000s
TestHubFilterPhaseMatch PASS 0.000s
TestHubFilterPhaseMismatch PASS 0.200s
TestHubFilterSourceType PASS 0.200s
TestSubscribeSSE_NoAuth PASS 1.020s
TestSubscribeSSE_InvalidAPIKey PASS 1.980s
TestRunCreationPublishesSSEEvent PASS 1.990s
TestSubscribeSSE_Heartbeat PASS 1.270s
TestGitHubPR_ValidHMAC_CreatesRun PASS 1.570s
TestGitHubPR_ValidHMAC_StoresPRDescription PASS 1.770s
TestGitHubPR_ValidHMAC_GiteaSignature PASS 1.710s
TestGitHubPR_GiteaSynchronizedAction_CreatesRun PASS 1.380s
TestGitHubPR_NoAPIKeyValidHMAC_Accepted PASS 1.480s
TestGitHubPR_MissingSignature PASS 1.610s
TestGitHubPR_InvalidSignature PASS 2.300s
TestGitHubPR_NonPullRequestEvent PASS 1.410s
TestGitHubPR_DisabledPipeline PASS 1.230s
TestGitHubPR_PipelineNotFound PASS 1.310s
TestGitHubPR_NoWebhookSecret PASS 1.070s
TestGitHubPR_IgnoredAction PASS 2.170s
TestGitHubPR_ExecutorFailure_StillAccepted PASS 1.910s
TestGitHubPR_InvalidPipelineID PASS 1.540s
TestVikunjaWebhook_Success PASS 1.770s
TestVikunjaWebhook_MissingEvent PASS 1.440s
TestVikunjaWebhook_NoProjectConfigured PASS 1.890s
TestVikunjaWebhook_ProjectNotFound PASS 1.940s
TestVikunjaWebhook_NoPipeline PASS 1.430s
TestVikunjaWebhook_InvalidJSON PASS 1.170s
keskikuja.site/agent-platform/api/internal/model33 tests0.01s
Test Status Time
TestLlmConfig_MarshalJSON_ExcludesApiKeyEncrypted PASS 0.000s
TestLlmConfig_MarshalJSON_IncludesVisibleFields PASS 0.000s
TestCreateLlmConfigRequest_UnmarshalJSON PASS 0.000s
TestCreateLlmConfigRequest_MarshalJSON_IncludesApiKey PASS 0.000s
TestUpdateLlmConfigRequest_UnmarshalJSON_AllFields PASS 0.000s
TestUpdateLlmConfigRequest_UnmarshalJSON_PartialUpdate PASS 0.000s
TestUpdateLlmConfigRequest_MarshalJSON_OmitsApiKey PASS 0.000s
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
TestPipeline_MarshalJSON_IncludesSkillRepos PASS 0.000s
TestPipeline_SkillReposJSONRoundTrip PASS 0.000s
TestCreatePipelineRequest_AcceptsSkillRepos PASS 0.000s
TestUpdatePipelineRequest_AcceptsSkillRepos PASS 0.000s
TestUpdatePipelineRequest_SkillReposAbsentStaysNil 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/monitor15 tests28.89s
Test Status Time
TestCheckOne_Connected PASS 2.750s
TestCheckOne_Disconnected PASS 1.050s
TestCheckOne_UpdatesDBStatus PASS 2.100s
TestCheckOne_UpdatesLastCheckedAt PASS 1.230s
TestCheckOne_WithEncryptedToken PASS 1.540s
TestCheckAll_IteratesAllRepos PASS 2.480s
TestCheckOne_WithCorruptToken_ProceedsWithoutToken PASS 1.380s
TestStartStop_RunsUntilCancelled PASS 2.210s
TestStartStop_StopIsIdempotent PASS 1.130s
TestRunWatchdog_JobFailed_MarksRunFailed PASS 1.550s
TestRunWatchdog_JobSucceededWithoutCallback_MarksRunFailed PASS 1.220s
TestRunWatchdog_NoJobTimeout_MarksRunFailed PASS 1.410s
TestRunWatchdog_WithinTimeout_NotModified PASS 2.850s
TestRunWatchdog_AlreadyCompleted_NotModified PASS 2.100s
TestRunWatchdog_StartStop_Lifecycle PASS 1.330s
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/k8s31 tests0.05s
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_SKILL_REPOS_Present PASS 0.000s
TestStart_SKILL_REPOS_AbsentWhenEmpty PASS 0.000s
TestStart_PREnvvars PASS 0.000s
TestStart_NoPR PASS 0.000s
TestStart_WithBotToken PASS 0.000s
TestStart_BranchProfileBaseBranch 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