MetalHubServerMock.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { MetalHubServer } from "@src/@types/MetalHub";
  2. export const METALHUB_SERVER_MOCK: MetalHubServer = {
  3. id: 12345,
  4. active: true,
  5. hostname: "server01.example.com",
  6. created_at: "2023-11-26T12:00:00Z",
  7. updated_at: "2023-11-26T12:00:00Z",
  8. api_endpoint: "https://api.example.com:1234/path",
  9. firmware_type: "UEFI",
  10. memory: 32768, // in MB
  11. os_info: {
  12. os_name: "Ubuntu",
  13. os_version: "20.04",
  14. },
  15. disks: [
  16. {
  17. id: "disk1",
  18. path: "/dev/sda",
  19. name: "Main Disk",
  20. size: 1024000, // in MB
  21. physical_sector_size: 512,
  22. partitions: [
  23. {
  24. name: "boot",
  25. path: "/dev/sda1",
  26. partition_uuid: "uuid-boot",
  27. sectors: 2048,
  28. start_sector: 0,
  29. end_sector: 2047,
  30. },
  31. {
  32. name: "root",
  33. path: "/dev/sda2",
  34. sectors: 1021952,
  35. start_sector: 2048,
  36. end_sector: 1024000,
  37. },
  38. ],
  39. },
  40. ],
  41. nics: [
  42. {
  43. interface_type: "Ethernet",
  44. ip_addresses: ["192.168.1.10", "192.168.1.11"],
  45. mac_address: "00:1B:44:11:3A:B7",
  46. nic_name: "eth0",
  47. },
  48. ],
  49. physical_cores: 8,
  50. logical_cores: 16,
  51. };