Files
Charon/frontend/src/test/mockData.ts
Wikid82 9f62a4a2df feat: add Docker container management functionality
- Implement DockerHandler to handle API requests for listing Docker containers.
- Create DockerService to interact with Docker API and retrieve container information.
- Add routes for Docker container management in the API.
- Introduce frontend API integration for Docker container listing.
- Enhance ProxyHostForm to allow quick selection of Docker containers.
- Update Docker-related tests to ensure functionality and error handling.
- Modify Docker Compose files to enable Docker socket access for local and remote environments.
- Add TypeScript configurations for improved build processes.
2025-11-20 21:27:02 -05:00

87 lines
2.1 KiB
TypeScript

import { ProxyHost } from '../hooks/useProxyHosts'
import { RemoteServer } from '../hooks/useRemoteServers'
export const mockProxyHosts: ProxyHost[] = [
{
uuid: '123e4567-e89b-12d3-a456-426614174000',
domain_names: 'app.local.dev',
forward_scheme: 'http',
forward_host: 'localhost',
forward_port: 3000,
ssl_forced: false,
http2_support: true,
hsts_enabled: false,
hsts_subdomains: false,
block_exploits: true,
websocket_support: true,
locations: [],
advanced_config: undefined,
enabled: true,
created_at: '2025-11-18T10:00:00Z',
updated_at: '2025-11-18T10:00:00Z',
},
{
uuid: '223e4567-e89b-12d3-a456-426614174001',
domain_names: 'api.local.dev',
forward_scheme: 'http',
forward_host: '192.168.1.100',
forward_port: 8080,
ssl_forced: false,
http2_support: true,
hsts_enabled: false,
hsts_subdomains: false,
block_exploits: true,
websocket_support: false,
locations: [],
advanced_config: undefined,
enabled: true,
created_at: '2025-11-18T10:00:00Z',
updated_at: '2025-11-18T10:00:00Z',
},
]
export const mockRemoteServers: RemoteServer[] = [
{
uuid: '323e4567-e89b-12d3-a456-426614174002',
name: 'Local Docker Registry',
provider: 'docker',
host: 'localhost',
port: 5000,
username: undefined,
enabled: true,
reachable: false,
last_check: undefined,
created_at: '2025-11-18T10:00:00Z',
updated_at: '2025-11-18T10:00:00Z',
},
{
uuid: '423e4567-e89b-12d3-a456-426614174003',
name: 'Development API Server',
provider: 'generic',
host: '192.168.1.100',
port: 8080,
username: undefined,
enabled: true,
reachable: true,
last_check: '2025-11-18T10:00:00Z',
created_at: '2025-11-18T10:00:00Z',
updated_at: '2025-11-18T10:00:00Z',
},
]
export const mockImportPreview = {
hosts: [
{
domain_names: 'test.example.com',
forward_scheme: 'http',
forward_host: 'localhost',
forward_port: 8080,
ssl_forced: true,
http2_support: true,
websocket_support: false,
},
],
conflicts: ['app.local.dev'],
errors: [],
}