|
| 1 | +import { APIHealthResponse, APIProjectDetails, APIGithubOrgDetails } from '../types.js' |
| 2 | + |
| 3 | +export const mockApiHealthResponse: APIHealthResponse = { |
| 4 | + status: 'ok', |
| 5 | + timestamp: new Date().toISOString(), |
| 6 | + version: '0.1.0-beta3', |
| 7 | + name: 'visionBoard' |
| 8 | +} |
| 9 | + |
| 10 | +export const mockAPIProjectResponse: APIProjectDetails = { |
| 11 | + id: 123, |
| 12 | + name: 'Test Project', |
| 13 | + created_at: new Date().toISOString(), |
| 14 | + updated_at: new Date().toISOString(), |
| 15 | + has_defineFunctionalRoles_policy: null, |
| 16 | + has_orgToolingMFA_policy: null, |
| 17 | + has_softwareArchitectureDocs_policy: null, |
| 18 | + has_MFAImpersonationDefense_policy: null, |
| 19 | + has_includeCVEInReleaseNotes_policy: null, |
| 20 | + has_assignCVEForKnownVulns_policy: null, |
| 21 | + has_incidentResponsePlan_policy: null, |
| 22 | + has_regressionTestsForVulns_policy: null, |
| 23 | + has_vulnResponse14Days_policy: null, |
| 24 | + has_useCVDToolForVulns_policy: null, |
| 25 | + has_securityMdMeetsOpenJSCVD_policy: null, |
| 26 | + has_consistentBuildProcessDocs_policy: null, |
| 27 | + has_machineReadableDependencies_policy: null, |
| 28 | + has_identifyModifiedDependencies_policy: null, |
| 29 | + has_ciAndCdPipelineAsCode_policy: null, |
| 30 | + has_npmOrgMFA_policy: null, |
| 31 | + has_npmPublicationMFA_policy: null, |
| 32 | + has_upgradePathDocs_policy: null, |
| 33 | + has_patchNonCriticalVulns90Days_policy: null, |
| 34 | + has_patchCriticalVulns30Days_policy: null, |
| 35 | + has_twoOrMoreOwnersForAccess_policy: null, |
| 36 | + has_injectedSecretsAtRuntime_policy: null, |
| 37 | + has_preventScriptInjection_policy: null, |
| 38 | + has_resolveLinterWarnings_policy: null, |
| 39 | + has_annualDependencyRefresh_policy: null |
| 40 | +} |
| 41 | + |
| 42 | +export const mockAPIGithubOrgResponse: APIGithubOrgDetails = { |
| 43 | + id: 456, |
| 44 | + login: 'test-org', |
| 45 | + github_org_id: 789, |
| 46 | + node_id: 'O_kgDOBjYYyw', |
| 47 | + url: 'https://api.github.com/orgs/test-org', |
| 48 | + avatar_url: 'https://avatars.githubusercontent.com/u/12345678?v=4', |
| 49 | + description: 'Test organization for OpenPathfinder', |
| 50 | + name: 'Test Organization', |
| 51 | + company: null, |
| 52 | + blog: 'https://test-org.github.io', |
| 53 | + location: 'Worldwide', |
| 54 | + twitter_username: 'testorg', |
| 55 | + is_verified: true, |
| 56 | + has_organization_projects: true, |
| 57 | + has_repository_projects: true, |
| 58 | + public_repos: 42, |
| 59 | + public_gists: 0, |
| 60 | + followers: 100, |
| 61 | + following: 0, |
| 62 | + html_url: 'https://github.com/test-org', |
| 63 | + total_private_repos: 10, |
| 64 | + owned_private_repos: 10, |
| 65 | + private_gists: 0, |
| 66 | + disk_usage: 1000, |
| 67 | + collaborators: 5, |
| 68 | + default_repository_permission: 'read', |
| 69 | + members_can_create_repositories: true, |
| 70 | + two_factor_requirement_enabled: true, |
| 71 | + members_allowed_repository_creation_type: 'all', |
| 72 | + members_can_create_public_repositories: true, |
| 73 | + members_can_create_private_repositories: true, |
| 74 | + members_can_create_internal_repositories: false, |
| 75 | + members_can_create_pages: true, |
| 76 | + members_can_create_public_pages: true, |
| 77 | + members_can_create_private_pages: true, |
| 78 | + members_can_fork_private_repositories: false, |
| 79 | + web_commit_signoff_required: true, |
| 80 | + deploy_keys_enabled_for_repositories: true, |
| 81 | + dependency_graph_enabled_for_new_repositories: true, |
| 82 | + dependabot_alerts_enabled_for_new_repositories: true, |
| 83 | + dependabot_security_updates_enabled_for_new_repositories: true, |
| 84 | + advanced_security_enabled_for_new_repositories: false, |
| 85 | + secret_scanning_enabled_for_new_repositories: true, |
| 86 | + secret_scanning_push_protection_enabled_for_new_repositories: true, |
| 87 | + secret_scanning_push_protection_custom_link: null, |
| 88 | + secret_scanning_push_protection_custom_link_enabled: false, |
| 89 | + github_created_at: '2020-01-01T00:00:00Z', |
| 90 | + github_updated_at: '2025-06-19T13:48:29Z', |
| 91 | + github_archived_at: null, |
| 92 | + created_at: new Date().toISOString(), |
| 93 | + updated_at: new Date().toISOString(), |
| 94 | + project_id: 123 |
| 95 | +} |
0 commit comments