|
1 | | -DUPLICATABLE_VOLUME = { |
| 1 | +SAAS_TEST_VOLUME = { |
2 | 2 | 'accountId': 1234, |
3 | 3 | 'activeTransactions': None, |
4 | 4 | 'activeTransactionCount': 0, |
|
9 | 9 | 'cancellationDate': '', |
10 | 10 | }], |
11 | 11 | 'cancellationDate': '', |
| 12 | + 'categoryCode': 'storage_as_a_service', |
12 | 13 | 'id': 454, |
13 | 14 | 'location': {'id': 449500} |
14 | 15 | }, |
15 | 16 | 'capacityGb': 500, |
| 17 | + 'hasEncryptionAtRest': 1, |
16 | 18 | 'id': 102, |
17 | 19 | 'iops': 1000, |
18 | 20 | 'lunId': 2, |
|
21 | 23 | 'parentVolume': {'snapshotSizeBytes': 1024}, |
22 | 24 | 'provisionedIops': '1000', |
23 | 25 | 'replicationPartnerCount': 0, |
| 26 | + 'schedules': [{ |
| 27 | + 'id': 978, |
| 28 | + 'type': {'keyname': 'SNAPSHOT_WEEKLY'}, |
| 29 | + }], |
24 | 30 | 'serviceResource': {'datacenter': {'id': 449500, 'name': 'dal05'}}, |
25 | 31 | 'serviceResourceBackendIpAddress': '10.1.2.3', |
26 | 32 | 'snapshotCapacityGb': '10', |
| 33 | + 'staasVersion': '2', |
27 | 34 | 'storageTierLevel': 'READHEAVY_TIER', |
28 | 35 | 'storageType': {'keyName': 'ENDURANCE_BLOCK_STORAGE'}, |
29 | 36 | 'username': 'duplicatable_volume_username' |
30 | 37 | } |
31 | 38 |
|
32 | 39 | getObject = { |
33 | 40 | 'accountId': 1234, |
34 | | - 'billingItem': { |
35 | | - 'id': 449, |
36 | | - 'cancellationDate': '', |
37 | | - 'categoryCode': 'storage_service_enterprise', |
38 | | - 'activeChildren': [{ |
39 | | - 'categoryCode': 'storage_snapshot_space', |
40 | | - 'id': 123, |
41 | | - 'cancellationDate': '', |
42 | | - }], |
43 | | - 'location': {'id': 449500} |
44 | | - }, |
45 | | - 'capacityGb': 20, |
46 | | - 'createDate': '2015:50:15-04:00', |
47 | | - 'guestId': '', |
48 | | - 'hardwareId': '', |
49 | | - 'hostId': '', |
50 | | - 'id': 100, |
51 | | - 'nasType': 'ISCSI', |
52 | | - 'notes': """{'status': 'available'}""", |
53 | | - 'password': '', |
54 | | - 'serviceProviderId': 1, |
55 | | - 'iops': 1000, |
56 | | - 'storageTierLevel': 'READHEAVY_TIER', |
57 | | - 'snapshotCapacityGb': '10', |
58 | | - 'parentVolume': {'snapshotSizeBytes': 1024}, |
59 | | - 'osType': {'keyName': 'LINUX'}, |
60 | | - 'originalSnapshotName': 'test-origin-snapshot-name', |
61 | | - 'originalVolumeName': 'test-origin-volume-name', |
62 | | - 'originalVolumeSize': '20', |
63 | | - 'schedules': [{ |
64 | | - 'id': 978, |
65 | | - 'type': {'keyname': 'SNAPSHOT_WEEKLY'}, |
66 | | - }], |
67 | | - 'serviceResource': {'datacenter': {'id': 449500, 'name': 'dal05'}}, |
68 | | - 'serviceResourceBackendIpAddress': '10.1.2.3', |
69 | | - 'fileNetworkMountAddress': '127.0.0.1:/TEST', |
70 | | - 'serviceResourceName': 'Storage Type 01 Aggregate staaspar0101_pc01', |
71 | | - 'username': 'username', |
72 | | - 'storageType': {'keyName': 'ENDURANCE_STORAGE'}, |
73 | | - 'bytesUsed': 0, |
74 | | - 'activeTransactions': None, |
75 | 41 | 'activeTransactionCount': 0, |
76 | | - 'allowedVirtualGuests': [{ |
77 | | - 'id': 1234, |
78 | | - 'hostname': 'test-server', |
79 | | - 'domain': 'example.com', |
80 | | - 'primaryBackendIpAddress': '10.0.0.1', |
| 42 | + 'activeTransactions': None, |
| 43 | + 'allowedHardware': [{ |
81 | 44 | 'allowedHost': { |
82 | | - 'name': 'test-server', |
83 | 45 | 'credential': {'username': 'joe', 'password': '12345'}, |
| 46 | + 'name': 'test-server', |
84 | 47 | }, |
85 | | - }], |
86 | | - 'lunId': 2, |
87 | | - 'allowedHardware': [{ |
88 | | - 'id': 1234, |
89 | | - 'hostname': 'test-server', |
90 | 48 | 'domain': 'example.com', |
| 49 | + 'hostname': 'test-server', |
| 50 | + 'id': 1234, |
91 | 51 | 'primaryBackendIpAddress': '10.0.0.2', |
| 52 | + }], |
| 53 | + 'allowedIpAddresses': [{ |
92 | 54 | 'allowedHost': { |
93 | | - 'name': 'test-server', |
94 | 55 | 'credential': {'username': 'joe', 'password': '12345'}, |
| 56 | + 'name': 'test-server', |
95 | 57 | }, |
| 58 | + 'id': 1234, |
| 59 | + 'ipAddress': '10.0.0.1', |
| 60 | + 'note': 'backend ip', |
96 | 61 | }], |
97 | 62 | 'allowedSubnets': [{ |
98 | | - 'id': 1234, |
99 | | - 'networkIdentifier': '10.0.0.1', |
100 | | - 'cidr': '24', |
101 | | - 'note': 'backend subnet', |
102 | 63 | 'allowedHost': { |
103 | | - 'name': 'test-server', |
104 | 64 | 'credential': {'username': 'joe', 'password': '12345'}, |
| 65 | + 'name': 'test-server', |
105 | 66 | }, |
106 | | - }], |
107 | | - 'allowedIpAddresses': [{ |
| 67 | + 'cidr': '24', |
108 | 68 | 'id': 1234, |
109 | | - 'ipAddress': '10.0.0.1', |
110 | | - 'note': 'backend ip', |
| 69 | + 'networkIdentifier': '10.0.0.1', |
| 70 | + 'note': 'backend subnet', |
| 71 | + }], |
| 72 | + 'allowedVirtualGuests': [{ |
111 | 73 | 'allowedHost': { |
112 | | - 'name': 'test-server', |
113 | 74 | 'credential': {'username': 'joe', 'password': '12345'}, |
| 75 | + 'name': 'test-server', |
114 | 76 | }, |
| 77 | + 'domain': 'example.com', |
| 78 | + 'hostname': 'test-server', |
| 79 | + 'id': 1234, |
| 80 | + 'primaryBackendIpAddress': '10.0.0.1', |
115 | 81 | }], |
116 | | - 'replicationStatus': 'Replicant Volume Provisioning has completed.', |
| 82 | + 'billingItem': { |
| 83 | + 'activeChildren': [{ |
| 84 | + 'cancellationDate': '', |
| 85 | + 'categoryCode': 'storage_snapshot_space', |
| 86 | + 'id': 123, |
| 87 | + }], |
| 88 | + 'cancellationDate': '', |
| 89 | + 'categoryCode': 'storage_service_enterprise', |
| 90 | + 'id': 449, |
| 91 | + 'location': {'id': 449500} |
| 92 | + }, |
| 93 | + 'bytesUsed': 0, |
| 94 | + 'capacityGb': 20, |
| 95 | + 'createDate': '2015:50:15-04:00', |
| 96 | + 'fileNetworkMountAddress': '127.0.0.1:/TEST', |
| 97 | + 'guestId': '', |
| 98 | + 'hardwareId': '', |
| 99 | + 'hasEncryptionAtRest': 0, |
| 100 | + 'hostId': '', |
| 101 | + 'id': 100, |
| 102 | + 'iops': 1000, |
| 103 | + 'lunId': 2, |
| 104 | + 'nasType': 'ISCSI', |
| 105 | + 'notes': """{'status': 'available'}""", |
| 106 | + 'originalSnapshotName': 'test-origin-snapshot-name', |
| 107 | + 'originalVolumeName': 'test-origin-volume-name', |
| 108 | + 'originalVolumeSize': '20', |
| 109 | + 'osType': {'keyName': 'LINUX'}, |
| 110 | + 'parentVolume': {'snapshotSizeBytes': 1024}, |
| 111 | + 'password': '', |
| 112 | + 'provisionedIops': '1000', |
117 | 113 | 'replicationPartnerCount': 1, |
118 | 114 | 'replicationPartners': [{ |
| 115 | + 'createDate': '2017:50:15-04:00', |
119 | 116 | 'id': 1784, |
120 | | - 'username': 'TEST_REP_1', |
121 | | - 'serviceResourceBackendIpAddress': '10.3.174.79', |
122 | 117 | 'nasType': 'ISCSI_REPLICANT', |
123 | | - 'createDate': '2017:50:15-04:00', |
124 | | - 'serviceResource': {'datacenter': {'name': 'wdc01'}}, |
125 | 118 | 'replicationSchedule': {'type': {'keyname': 'REPLICATION_HOURLY'}}, |
| 119 | + 'serviceResource': {'datacenter': {'name': 'wdc01'}}, |
| 120 | + 'serviceResourceBackendIpAddress': '10.3.174.79', |
| 121 | + 'username': 'TEST_REP_1', |
126 | 122 | }, { |
| 123 | + 'createDate': '2017:50:15-04:00', |
127 | 124 | 'id': 1785, |
128 | | - 'username': 'TEST_REP_2', |
129 | | - 'serviceResourceBackendIpAddress': '10.3.177.84', |
130 | 125 | 'nasType': 'ISCSI_REPLICANT', |
131 | | - 'createDate': '2017:50:15-04:00', |
132 | | - 'serviceResource': {'datacenter': {'name': 'dal01'}}, |
133 | 126 | 'replicationSchedule': {'type': {'keyname': 'REPLICATION_DAILY'}}, |
| 127 | + 'serviceResource': {'datacenter': {'name': 'dal01'}}, |
| 128 | + 'serviceResourceBackendIpAddress': '10.3.177.84', |
| 129 | + 'username': 'TEST_REP_2', |
| 130 | + }], |
| 131 | + 'replicationStatus': 'Replicant Volume Provisioning has completed.', |
| 132 | + 'schedules': [{ |
| 133 | + 'id': 978, |
| 134 | + 'type': {'keyname': 'SNAPSHOT_WEEKLY'}, |
134 | 135 | }], |
| 136 | + 'serviceProviderId': 1, |
| 137 | + 'serviceResource': {'datacenter': {'id': 449500, 'name': 'dal05'}}, |
| 138 | + 'serviceResourceBackendIpAddress': '10.1.2.3', |
| 139 | + 'serviceResourceName': 'Storage Type 01 Aggregate staaspar0101_pc01', |
| 140 | + 'snapshotCapacityGb': '10', |
| 141 | + 'staasVersion': '1', |
| 142 | + 'storageTierLevel': 'READHEAVY_TIER', |
| 143 | + 'storageType': {'keyName': 'ENDURANCE_STORAGE'}, |
| 144 | + 'username': 'username', |
135 | 145 | } |
136 | 146 |
|
137 | 147 | getSnapshots = [{ |
|
0 commit comments