InstancesMock.ts 597 B

123456789101112131415161718192021222324
  1. import { Instance } from "@src/@types/Instance";
  2. import { DISK_MOCK } from "@tests/mocks/StoragesMock";
  3. export const INSTANCE_MOCK: Instance = {
  4. id: "instance-id",
  5. name: "instance-name",
  6. flavor_name: "instance-flavor-name",
  7. instance_name: "instance-instance-name",
  8. num_cpu: 1,
  9. memory_mb: 1024,
  10. os_type: "instance-os-type",
  11. devices: {
  12. nics: [
  13. {
  14. id: "nic-id",
  15. network_name: "network-name",
  16. ip_addresses: ["nic-ip-addresses"],
  17. mac_address: "nic-mac-address",
  18. network_id: "network-id",
  19. },
  20. ],
  21. disks: [DISK_MOCK],
  22. },
  23. };