From 075a78436d4a5d29418e2a5900ac51d48dd2350e Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Sat, 20 Jul 2019 18:35:13 -0400 Subject: [PATCH] Add Mock Data Files --- Tests/Public/Mocks/GetVpg.json | 75 ++++++++ Tests/Public/Mocks/ProtectedVms.json | 274 +++++++++++++++++++++++++++ 2 files changed, 349 insertions(+) create mode 100644 Tests/Public/Mocks/GetVpg.json create mode 100644 Tests/Public/Mocks/ProtectedVms.json diff --git a/Tests/Public/Mocks/GetVpg.json b/Tests/Public/Mocks/GetVpg.json new file mode 100644 index 0000000..f1766dc --- /dev/null +++ b/Tests/Public/Mocks/GetVpg.json @@ -0,0 +1,75 @@ +{ + "ActiveProcessesApi": { + "RunningFailOverTestApi": null + }, + "ActualRPO": 7, + "BackupEnabled": false, + "ConfiguredRpoSeconds": 300, + "Entities": { + "Protected": 0, + "Recovery": 0, + "Source": 0, + "Target": 0 + }, + "FailSafeHistory": { + "ActualFailSafeHistory": 60, + "ConfiguredFailSafeHistory": 240, + "FailSafeDescription": "" + }, + "HistoryStatusApi": { + "ActualHistoryInMinutes": 92, + "ConfiguredHistoryInMinutes": 1440, + "EarliestCheckpoint": { + "CheckpointIdentifier": "786", + "Tag": null, + "TimeStamp": "2019-07-20T19:30:19Z" + } + }, + "IOPs": 13, + "LastTest": null, + "Link": { + "href": "https://192.168.10.20:9669/v1/vpgs/57f502ff-3c41-4aff-b20a-6638205b73cd", + "identifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": null, + "type": "VpgApi" + }, + "Link_{0}": { + "href": "https://192.168.10.20:9669/v1/vpgs/57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": "self", + "type": "VpgApi" + }, + "OrganizationName": "", + "Priority": 1, + "ProgressPercentage": 0, + "ProtectedSite": { + "href": "https://192.168.10.20:9669/v1/localsite", + "identifier": "9e09efa0-0d00-46ed-929b-f86273b28205", + "rel": null, + "type": "LocalSiteApi" + }, + "ProvisionedStorageInMB": 336118, + "RecoverySite": { + "href": "https://192.168.10.20:9669/v1/peersites/057cab27-f02a-443a-989d-7f14341fa9c3", + "identifier": "057cab27-f02a-443a-989d-7f14341fa9c3", + "rel": null, + "type": "PeerSiteApi" + }, + "ServiceProfile": null, + "ServiceProfileIdentifier": null, + "ServiceProfileName": "", + "SourceSite": "WCHL - NC", + "Status": 1, + "SubStatus": 0, + "TargetSite": "WCHL - CA", + "ThroughputInMB": 0.27197265625, + "UsedStorageInMB": 245465, + "VmsCount": 4, + "VpgIdentifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "VpgName": "ExportStuff", + "Zorg": { + "href": "https://192.168.10.20:9669/v1/zorgs/00000000-0000-0000-0000-000000000000", + "identifier": "00000000-0000-0000-0000-000000000000", + "rel": null, + "type": "ZorgApi" + } +} diff --git a/Tests/Public/Mocks/ProtectedVms.json b/Tests/Public/Mocks/ProtectedVms.json new file mode 100644 index 0000000..8326055 --- /dev/null +++ b/Tests/Public/Mocks/ProtectedVms.json @@ -0,0 +1,274 @@ +[ + { + "ActualRPO": 7, + "EnabledActions": { + "IsFlrEnabled": true + }, + "Entities": { + "Protected": 0, + "Recovery": 0, + "Source": 0, + "Target": 0 + }, + "HardwareVersion": "vmx-15", + "IOPs": 2, + "IsVmExists": true, + "JournalHardLimit": { + "LimitType": 1, + "LimitValue": 153600 + }, + "JournalUsedStorageMb": 640, + "JournalWarningThreshold": { + "LimitType": 1, + "LimitValue": 115200 + }, + "LastTest": null, + "Link": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-38?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "identifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-38?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": null, + "type": "VmApi" + }, + "Link_{0}": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-38?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": "self", + "type": "VmApi" + }, + "OrganizationName": "", + "OutgoingBandWidthInMbps": 0.001953125, + "Priority": 1, + "ProtectedSite": { + "href": "https://192.168.10.20:9669/v1/localsite", + "identifier": "9e09efa0-0d00-46ed-929b-f86273b28205", + "rel": null, + "type": "LocalSiteApi" + }, + "ProvisionedStorageInMB": 77906, + "RecoveryHostIdentifier": "f45d81e4-4ff5-4376-a5c8-20ffe8d52431.host-15", + "RecoverySite": { + "href": "https://192.168.10.20:9669/v1/peersites/057cab27-f02a-443a-989d-7f14341fa9c3", + "identifier": "057cab27-f02a-443a-989d-7f14341fa9c3", + "rel": null, + "type": "PeerSiteApi" + }, + "SourceSite": "WCHL - NC", + "Status": 1, + "SubStatus": 0, + "TargetSite": "WCHL - CA", + "ThroughputInMB": 0, + "UsedStorageInMB": 77906, + "VmIdentifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-38", + "VmName": "ncesx3.nc.lab", + "Volumes": [ + { + "VmVolumeIdentifier": "scsi:0:0" + } + ], + "VpgIdentifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "VpgName": "ExportStuff" + }, + { + "ActualRPO": 7, + "EnabledActions": { + "IsFlrEnabled": true + }, + "Entities": { + "Protected": 0, + "Recovery": 0, + "Source": 0, + "Target": 0 + }, + "HardwareVersion": "vmx-15", + "IOPs": 1, + "IsVmExists": true, + "JournalHardLimit": { + "LimitType": 1, + "LimitValue": 153600 + }, + "JournalUsedStorageMb": 609, + "JournalWarningThreshold": { + "LimitType": 1, + "LimitValue": 115200 + }, + "LastTest": null, + "Link": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-37?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "identifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-37?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": null, + "type": "VmApi" + }, + "Link_{0}": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-37?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": "self", + "type": "VmApi" + }, + "OrganizationName": "", + "OutgoingBandWidthInMbps": 0.0009765625, + "Priority": 1, + "ProtectedSite": { + "href": "https://192.168.10.20:9669/v1/localsite", + "identifier": "9e09efa0-0d00-46ed-929b-f86273b28205", + "rel": null, + "type": "LocalSiteApi" + }, + "ProvisionedStorageInMB": 77906, + "RecoveryHostIdentifier": "f45d81e4-4ff5-4376-a5c8-20ffe8d52431.host-15", + "RecoverySite": { + "href": "https://192.168.10.20:9669/v1/peersites/057cab27-f02a-443a-989d-7f14341fa9c3", + "identifier": "057cab27-f02a-443a-989d-7f14341fa9c3", + "rel": null, + "type": "PeerSiteApi" + }, + "SourceSite": "WCHL - NC", + "Status": 1, + "SubStatus": 0, + "TargetSite": "WCHL - CA", + "ThroughputInMB": 0, + "UsedStorageInMB": 77906, + "VmIdentifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-37", + "VmName": "ncesx2.nc.lab", + "Volumes": [ + { + "VmVolumeIdentifier": "scsi:0:0" + } + ], + "VpgIdentifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "VpgName": "ExportStuff" + }, + { + "ActualRPO": 7, + "EnabledActions": { + "IsFlrEnabled": true + }, + "Entities": { + "Protected": 0, + "Recovery": 0, + "Source": 0, + "Target": 0 + }, + "HardwareVersion": "vmx-15", + "IOPs": 2, + "IsVmExists": true, + "JournalHardLimit": { + "LimitType": 1, + "LimitValue": 153600 + }, + "JournalUsedStorageMb": 634, + "JournalWarningThreshold": { + "LimitType": 1, + "LimitValue": 115200 + }, + "LastTest": null, + "Link": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-36?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "identifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-36?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": null, + "type": "VmApi" + }, + "Link_{0}": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-36?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": "self", + "type": "VmApi" + }, + "OrganizationName": "", + "OutgoingBandWidthInMbps": 0.00146484375, + "Priority": 1, + "ProtectedSite": { + "href": "https://192.168.10.20:9669/v1/localsite", + "identifier": "9e09efa0-0d00-46ed-929b-f86273b28205", + "rel": null, + "type": "LocalSiteApi" + }, + "ProvisionedStorageInMB": 77906, + "RecoveryHostIdentifier": "f45d81e4-4ff5-4376-a5c8-20ffe8d52431.host-15", + "RecoverySite": { + "href": "https://192.168.10.20:9669/v1/peersites/057cab27-f02a-443a-989d-7f14341fa9c3", + "identifier": "057cab27-f02a-443a-989d-7f14341fa9c3", + "rel": null, + "type": "PeerSiteApi" + }, + "SourceSite": "WCHL - NC", + "Status": 1, + "SubStatus": 0, + "TargetSite": "WCHL - CA", + "ThroughputInMB": 0, + "UsedStorageInMB": 77906, + "VmIdentifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-36", + "VmName": "ncesx1.nc.lab", + "Volumes": [ + { + "VmVolumeIdentifier": "scsi:0:0" + } + ], + "VpgIdentifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "VpgName": "ExportStuff" + }, + { + "ActualRPO": 7, + "EnabledActions": { + "IsFlrEnabled": true + }, + "Entities": { + "Protected": 0, + "Recovery": 0, + "Source": 0, + "Target": 0 + }, + "HardwareVersion": "vmx-14", + "IOPs": 5, + "IsVmExists": true, + "JournalHardLimit": { + "LimitType": 1, + "LimitValue": 153600 + }, + "JournalUsedStorageMb": 642, + "JournalWarningThreshold": { + "LimitType": 1, + "LimitValue": 115200 + }, + "LastTest": null, + "Link": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-26?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "identifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-26?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": null, + "type": "VmApi" + }, + "Link_{0}": { + "href": "https://192.168.10.20:9669/v1/vms/d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-26?VpgIdentifier=57f502ff-3c41-4aff-b20a-6638205b73cd", + "rel": "self", + "type": "VmApi" + }, + "OrganizationName": "", + "OutgoingBandWidthInMbps": 0.01953125, + "Priority": 1, + "ProtectedSite": { + "href": "https://192.168.10.20:9669/v1/localsite", + "identifier": "9e09efa0-0d00-46ed-929b-f86273b28205", + "rel": null, + "type": "LocalSiteApi" + }, + "ProvisionedStorageInMB": 102400, + "RecoveryHostIdentifier": "f45d81e4-4ff5-4376-a5c8-20ffe8d52431.host-15", + "RecoverySite": { + "href": "https://192.168.10.20:9669/v1/peersites/057cab27-f02a-443a-989d-7f14341fa9c3", + "identifier": "057cab27-f02a-443a-989d-7f14341fa9c3", + "rel": null, + "type": "PeerSiteApi" + }, + "SourceSite": "WCHL - NC", + "Status": 1, + "SubStatus": 0, + "TargetSite": "WCHL - CA", + "ThroughputInMB": 0, + "UsedStorageInMB": 11747, + "VmIdentifier": "d4a6a1d5-79e9-4308-990a-7c3e616f0908.vm-26", + "VmName": "nczvm.nc.lab", + "Volumes": [ + { + "VmVolumeIdentifier": "scsi:0:0" + } + ], + "VpgIdentifier": "57f502ff-3c41-4aff-b20a-6638205b73cd", + "VpgName": "ExportStuff" + } +]