1STAAS_TEST_VOLUME = {
2    'accountId': 1234,
3    'activeTransactions': None,
4    'activeTransactionCount': 0,
5    'billingItem': {
6        'activeChildren': [{
7            'categoryCode': 'storage_snapshot_space',
8            'id': 125,
9            'cancellationDate': '',
10        }],
11        'cancellationDate': '',
12        'categoryCode': 'storage_as_a_service',
13        'hourlyFlag': None,
14        'id': 454,
15        'location': {'id': 449500}
16    },
17    'capacityGb': 500,
18    'hasEncryptionAtRest': 1,
19    'id': 102,
20    'iops': 1000,
21    'lunId': 2,
22    'osType': {'keyName': 'LINUX'},
23    'originalVolumeSize': '500',
24    'parentVolume': {'snapshotSizeBytes': 1024},
25    'provisionedIops': '1000',
26    'replicationPartnerCount': 0,
27    'schedules': [{
28        'id': 978,
29        'type': {'keyname': 'SNAPSHOT_WEEKLY'},
30    }],
31    'serviceResource': {'datacenter': {'id': 449500, 'name': 'dal05'}},
32    'serviceResourceBackendIpAddress': '10.1.2.3',
33    'snapshotCapacityGb': '10',
34    'staasVersion': '2',
35    'storageTierLevel': 'READHEAVY_TIER',
36    'storageType': {'keyName': 'ENDURANCE_BLOCK_STORAGE'},
37    'username': 'duplicatable_volume_username'
38}
39
40getObject = {
41    'accountId': 1234,
42    'activeTransactionCount': 1,
43    'activeTransactions': [{
44        'transactionStatus': {'friendlyName': 'This is a buffer time in which the customer may cancel the server'}
45    }],
46    'allowedHardware': [{
47        'allowedHost': {
48            'credential': {'username': 'joe', 'password': '12345'},
49            'name': 'test-server',
50        },
51        'domain': 'example.com',
52        'hostname': 'test-server',
53        'id': 1234,
54        'primaryBackendIpAddress': '10.0.0.2',
55    }],
56    'allowedIpAddresses': [{
57        'allowedHost': {
58            'credential': {'username': 'joe', 'password': '12345'},
59            'name': 'test-server',
60        },
61        'id': 1234,
62        'ipAddress': '10.0.0.1',
63        'note': 'backend ip',
64    }],
65    'allowedSubnets': [{
66        'allowedHost': {
67            'credential': {'username': 'joe', 'password': '12345'},
68            'name': 'test-server',
69        },
70        'cidr': '24',
71        'id': 1234,
72        'networkIdentifier': '10.0.0.1',
73        'note': 'backend subnet',
74    }],
75    'allowedVirtualGuests': [{
76        'allowedHost': {
77            'credential': {'username': 'joe', 'password': '12345'},
78            'name': 'test-server',
79        },
80        'domain': 'example.com',
81        'hostname': 'test-server',
82        'id': 1234,
83        'primaryBackendIpAddress': '10.0.0.1',
84    }],
85    'billingItem': {
86        'activeChildren': [{
87            'cancellationDate': '',
88            'categoryCode': 'storage_snapshot_space',
89            'id': 123,
90        }],
91        'cancellationDate': '',
92        'categoryCode': 'storage_service_enterprise',
93        'id': 449,
94        'location': {'id': 449500}
95    },
96    'bytesUsed': 0,
97    'capacityGb': 20,
98    'createDate': '2015:50:15-04:00',
99    'fileNetworkMountAddress': '127.0.0.1:/TEST',
100    'guestId': '',
101    'hardwareId': '',
102    'hasEncryptionAtRest': 0,
103    'hostId': '',
104    'id': 100,
105    'iops': 1000,
106    'lunId': 2,
107    'nasType': 'ISCSI',
108    'notes': """{'status': 'available'}""",
109    'originalSnapshotName': 'test-original-snapshot-name',
110    'originalVolumeName': 'test-original-volume-name',
111    'originalVolumeSize': '20',
112    'osType': {'keyName': 'LINUX'},
113    'parentVolume': {'snapshotSizeBytes': 1024},
114    'password': '',
115    'provisionedIops': '1000',
116    'replicationPartnerCount': 1,
117    'replicationPartners': [{
118        'createDate': '2017:50:15-04:00',
119        'id': 1784,
120        'nasType': 'ISCSI_REPLICANT',
121        'replicationSchedule': {'type': {'keyname': 'REPLICATION_HOURLY'}},
122        'serviceResource': {'datacenter': {'name': 'wdc01'}},
123        'serviceResourceBackendIpAddress': '10.3.174.79',
124        'username': 'TEST_REP_1',
125    }, {
126        'createDate': '2017:50:15-04:00',
127        'id': 1785,
128        'nasType': 'ISCSI_REPLICANT',
129        'replicationSchedule': {'type': {'keyname': 'REPLICATION_DAILY'}},
130        'serviceResource': {'datacenter': {'name': 'dal01'}},
131        'serviceResourceBackendIpAddress': '10.3.177.84',
132        'username': 'TEST_REP_2',
133    }],
134    'replicationStatus': 'Replicant Volume Provisioning has completed.',
135    'schedules': [
136        {
137            'id': 978,
138            'type': {'keyname': 'SNAPSHOT_WEEKLY'},
139            'properties': [
140                {'type': {'keyname': 'MINUTE'}, 'value': '30'},
141            ]
142        },
143        {
144            'id': 988,
145            'type': {'keyname': 'REPLICATION_INTERVAL'},
146            'properties': [
147                {'type': {'keyname': 'MINUTE'}, 'value': '-1'},
148            ]
149        }
150    ],
151    'serviceProviderId': 1,
152    'serviceResource': {'datacenter': {'id': 449500, 'name': 'dal05'}},
153    'serviceResourceBackendIpAddress': '10.1.2.3',
154    'serviceResourceName': 'Storage Type 01 Aggregate staaspar0101_pc01',
155    'snapshotCapacityGb': '10',
156    'staasVersion': '1',
157    'storageTierLevel': 'READHEAVY_TIER',
158    'storageType': {'keyName': 'ENDURANCE_STORAGE'},
159    'username': 'username',
160    'dependentDuplicate': 1,
161}
162
163getSnapshots = [{
164    'id': 470,
165    'notes': 'unit_testing_note',
166    'snapshotCreationTimestamp': '2016-07-06T07:41:19-05:00',
167    'snapshotSizeBytes': '42',
168}]
169
170getReplicationPartners = [{
171    'id': 1784,
172    'accountId': 3000,
173    'capacityGb': 20,
174    'username': 'TEST_REP_1',
175    'serviceResourceBackendIpAddress': '10.3.174.79',
176    'nasType': 'ISCSI_REPLICANT',
177    'hostId': None,
178    'guestId': None,
179    'hardwareId': None,
180    'createDate': '2017:50:15-04:00',
181    'serviceResource': {'datacenter': {'name': 'wdc01'}},
182    'replicationSchedule': {'type': {'keyname': 'REPLICATION_HOURLY'}},
183}, {
184    'id': 1785,
185    'accountId': 3001,
186    'capacityGb': 20,
187    'username': 'TEST_REP_2',
188    'serviceResourceBackendIpAddress': '10.3.177.84',
189    'nasType': 'ISCSI_REPLICANT',
190    'hostId': None,
191    'guestId': None,
192    'hardwareId': None,
193    'createDate': '2017:50:15-04:00',
194    'serviceResource': {'datacenter': {'name': 'dal01'}},
195    'replicationSchedule': {'type': {'keyname': 'REPLICATION_DAILY'}},
196}]
197
198getValidReplicationTargetDatacenterLocations = [{
199    'id': 12345,
200    'longName': 'Dallas 05',
201    'name': 'dal05'
202}]
203
204listVolumeSchedules = [
205    {
206        'id': 978,
207        'type': {'keyname': 'SNAPSHOT_WEEKLY'},
208        'properties': [{'type': {'keyname': 'MINUTE'}, 'value': '30'}]
209    },
210    {
211        'id': 988,
212        'type': {'keyname': 'REPLICATION_INTERVAL'},
213        'properties': [{'type': {'keyname': 'MINUTE'}, 'value': '-1'}]
214    }
215]
216
217deleteObject = True
218editObject = True
219allowAccessFromHostList = True
220removeAccessFromHostList = True
221failoverToReplicant = True
222failbackFromReplicant = True
223restoreFromSnapshot = True
224disasterRecoveryFailoverToReplicant = True
225
226createSnapshot = {
227    'id': 449
228}
229
230enableSnapshots = True
231disableSnapshots = True
232
233getVolumeCountLimits = {
234    'datacenterName': 'global',
235    'maximumAvailableCount': 300,
236    'provisionedCount': 100
237}
238
239refreshDuplicate = {
240     'dependentDuplicate': 1
241}
242
243convertCloneDependentToIndependent = {
244    'dependentDuplicate': 1
245}
246