@itentialopensource/adapter-openstack_cinder 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +43 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +1118 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +20288 -0
  18. package/adapterBase.js +1788 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +242 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +49 -0
  27. package/entities/APIExtensionsExtensions/action.json +25 -0
  28. package/entities/APIExtensionsExtensions/schema.json +30 -0
  29. package/entities/APIVersionDetails/action.json +25 -0
  30. package/entities/APIVersionDetails/schema.json +19 -0
  31. package/entities/APIVersions/action.json +25 -0
  32. package/entities/APIVersions/schema.json +19 -0
  33. package/entities/AttachmentsAttachments/action.json +147 -0
  34. package/entities/AttachmentsAttachments/schema.json +58 -0
  35. package/entities/BackEndStoragePools/action.json +25 -0
  36. package/entities/BackEndStoragePools/schema.json +30 -0
  37. package/entities/BackupActionsBackupsAction/action.json +24 -0
  38. package/entities/BackupActionsBackupsAction/schema.json +41 -0
  39. package/entities/BackupsBackups/action.json +188 -0
  40. package/entities/BackupsBackups/schema.json +71 -0
  41. package/entities/CapabilitiesForStorageBackEndsCapabilities/action.json +25 -0
  42. package/entities/CapabilitiesForStorageBackEndsCapabilities/schema.json +30 -0
  43. package/entities/ConsistencyGroupSnapshotsDEPRECATED/action.json +107 -0
  44. package/entities/ConsistencyGroupSnapshotsDEPRECATED/schema.json +56 -0
  45. package/entities/ConsistencyGroupsDEPRECATED/action.json +147 -0
  46. package/entities/ConsistencyGroupsDEPRECATED/schema.json +58 -0
  47. package/entities/DefaultVolumeTypesDefaultTypes/action.json +86 -0
  48. package/entities/DefaultVolumeTypesDefaultTypes/schema.json +33 -0
  49. package/entities/GenericVolumeGroupsGroups/action.json +147 -0
  50. package/entities/GenericVolumeGroupsGroups/schema.json +69 -0
  51. package/entities/GroupSnapshotsGroupSnapshots/action.json +127 -0
  52. package/entities/GroupSnapshotsGroupSnapshots/schema.json +79 -0
  53. package/entities/GroupTypeSpecsGroupTypesGroupSpecs/action.json +106 -0
  54. package/entities/GroupTypeSpecsGroupTypesGroupSpecs/schema.json +56 -0
  55. package/entities/GroupTypesGroupTypes/action.json +127 -0
  56. package/entities/GroupTypesGroupTypes/schema.json +46 -0
  57. package/entities/HostsExtensionOsHosts/action.json +46 -0
  58. package/entities/HostsExtensionOsHosts/schema.json +42 -0
  59. package/entities/LimitsLimits/action.json +25 -0
  60. package/entities/LimitsLimits/schema.json +30 -0
  61. package/entities/MessagesMessages/action.json +66 -0
  62. package/entities/MessagesMessages/schema.json +43 -0
  63. package/entities/QualityOfServiceQoSSpecificationsQosSpecs/action.json +210 -0
  64. package/entities/QualityOfServiceQoSSpecificationsQosSpecs/schema.json +61 -0
  65. package/entities/QuotaClassSetExtensionOsQuotaClassSets/action.json +45 -0
  66. package/entities/QuotaClassSetExtensionOsQuotaClassSets/schema.json +42 -0
  67. package/entities/QuotaSetsExtensionOsQuotaSets/action.json +86 -0
  68. package/entities/QuotaSetsExtensionOsQuotaSets/schema.json +44 -0
  69. package/entities/ResourceFiltersResourceFilters/action.json +25 -0
  70. package/entities/ResourceFiltersResourceFilters/schema.json +30 -0
  71. package/entities/ServicesOsServices/action.json +185 -0
  72. package/entities/ServicesOsServices/schema.json +38 -0
  73. package/entities/SnapshotActionsSnapshotsAction/action.json +24 -0
  74. package/entities/SnapshotActionsSnapshotsAction/schema.json +41 -0
  75. package/entities/SnapshotManageExtensionManageableSnapshots/action.json +66 -0
  76. package/entities/SnapshotManageExtensionManageableSnapshots/schema.json +32 -0
  77. package/entities/VolumeActionsVolumesAction/action.json +24 -0
  78. package/entities/VolumeActionsVolumesAction/schema.json +41 -0
  79. package/entities/VolumeManageExtensionManageableVolumes/action.json +66 -0
  80. package/entities/VolumeManageExtensionManageableVolumes/schema.json +32 -0
  81. package/entities/VolumeSnapshotsSnapshots/action.json +249 -0
  82. package/entities/VolumeSnapshotsSnapshots/schema.json +85 -0
  83. package/entities/VolumeTransfer/action.json +127 -0
  84. package/entities/VolumeTransfer/schema.json +57 -0
  85. package/entities/VolumeTransfersVolumeTransfers355OrLater/action.json +127 -0
  86. package/entities/VolumeTransfersVolumeTransfers355OrLater/schema.json +79 -0
  87. package/entities/VolumeTypeAccessTypesActionTypesOsVolumeTypeAccess/action.json +45 -0
  88. package/entities/VolumeTypeAccessTypesActionTypesOsVolumeTypeAccess/schema.json +42 -0
  89. package/entities/VolumeTypesTypes/action.json +331 -0
  90. package/entities/VolumeTypesTypes/schema.json +78 -0
  91. package/entities/VolumesVolumes/action.json +270 -0
  92. package/entities/VolumesVolumes/schema.json +108 -0
  93. package/entities/WorkersWorkers/action.json +24 -0
  94. package/entities/WorkersWorkers/schema.json +30 -0
  95. package/error.json +190 -0
  96. package/package.json +87 -0
  97. package/pronghorn.json +10093 -0
  98. package/propertiesDecorators.json +14 -0
  99. package/propertiesSchema.json +1284 -0
  100. package/refs?service=git-upload-pack +0 -0
  101. package/report/adapterInfo.json +10 -0
  102. package/report/cinder-openapi.json +8589 -0
  103. package/report/creationReport.json +1495 -0
  104. package/sampleProperties.json +198 -0
  105. package/swagger/openstack_API_docs/BlockStorageAPIV3-cinder-documentation.html +32674 -0
  106. package/swagger/openstack_api_cinder.js +602 -0
  107. package/test/integration/adapterTestBasicGet.js +85 -0
  108. package/test/integration/adapterTestConnectivity.js +93 -0
  109. package/test/integration/adapterTestIntegration.js +4799 -0
  110. package/test/unit/adapterBaseTestUnit.js +952 -0
  111. package/test/unit/adapterTestUnit.js +7633 -0
  112. package/utils/adapterInfo.js +206 -0
  113. package/utils/addAuth.js +94 -0
  114. package/utils/artifactize.js +146 -0
  115. package/utils/basicGet.js +50 -0
  116. package/utils/checkMigrate.js +63 -0
  117. package/utils/entitiesToDB.js +179 -0
  118. package/utils/findPath.js +74 -0
  119. package/utils/methodDocumentor.js +225 -0
  120. package/utils/modify.js +154 -0
  121. package/utils/packModificationScript.js +35 -0
  122. package/utils/patches2bundledDeps.js +90 -0
  123. package/utils/pre-commit.sh +32 -0
  124. package/utils/removeHooks.js +20 -0
  125. package/utils/setup.js +33 -0
  126. package/utils/tbScript.js +184 -0
  127. package/utils/tbUtils.js +469 -0
  128. package/utils/testRunner.js +298 -0
  129. package/utils/troubleshootingAdapter.js +190 -0
  130. package/workflows/README.md +3 -0
@@ -0,0 +1,198 @@
1
+ {
2
+ "id": "Adapter-openstack_cinder",
3
+ "type": "OpenstackCinder",
4
+ "properties": {
5
+ "host": "192.168.0.108",
6
+ "port": 8776,
7
+ "base_path": "",
8
+ "version": "",
9
+ "cache_location": "none",
10
+ "encode_pathvars": true,
11
+ "encode_queryvars": true,
12
+ "save_metric": false,
13
+ "stub": true,
14
+ "protocol": "https",
15
+ "authentication": {
16
+ "auth_method": "request_token",
17
+ "username": "admin",
18
+ "password": "hEJ6Lbtc40bPdDno7NVpYg8kJfN9Bm7Z",
19
+ "token": "",
20
+ "token_timeout": 600000,
21
+ "token_cache": "local",
22
+ "invalid_token_error": 401,
23
+ "auth_field": "header.headers.X-Auth-Token",
24
+ "auth_field_format": "{token}",
25
+ "auth_logging": false,
26
+ "client_id": "",
27
+ "client_secret": "",
28
+ "grant_type": "",
29
+ "os_user_domain_name": "Default",
30
+ "os_project_name": "admin",
31
+ "os_project_domain_name": "Default"
32
+ },
33
+ "healthcheck": {
34
+ "type": "intermittent",
35
+ "frequency": 600000,
36
+ "query_object": {}
37
+ },
38
+ "throttle": {
39
+ "throttle_enabled": false,
40
+ "number_pronghorns": 1,
41
+ "sync_async": "sync",
42
+ "max_in_queue": 1000,
43
+ "concurrent_max": 1,
44
+ "expire_timeout": 0,
45
+ "avg_runtime": 200,
46
+ "priorities": [
47
+ {
48
+ "value": 0,
49
+ "percent": 100
50
+ }
51
+ ]
52
+ },
53
+ "request": {
54
+ "number_redirects": 0,
55
+ "number_retries": 3,
56
+ "limit_retry_error": [
57
+ 0
58
+ ],
59
+ "failover_codes": [],
60
+ "attempt_timeout": 5000,
61
+ "global_request": {
62
+ "payload": {},
63
+ "uriOptions": {},
64
+ "addlHeaders": {},
65
+ "authData": {}
66
+ },
67
+ "healthcheck_on_timeout": true,
68
+ "return_raw": false,
69
+ "archiving": false,
70
+ "return_request": false
71
+ },
72
+ "proxy": {
73
+ "enabled": false,
74
+ "host": "",
75
+ "port": 1,
76
+ "protocol": "http",
77
+ "username": "",
78
+ "password": ""
79
+ },
80
+ "ssl": {
81
+ "ecdhCurve": "",
82
+ "enabled": false,
83
+ "accept_invalid_cert": false,
84
+ "ca_file": "",
85
+ "key_file": "",
86
+ "cert_file": "",
87
+ "secure_protocol": "",
88
+ "ciphers": ""
89
+ },
90
+ "mongo": {
91
+ "host": "",
92
+ "port": 0,
93
+ "database": "",
94
+ "username": "",
95
+ "password": "",
96
+ "replSet": "",
97
+ "db_ssl": {
98
+ "enabled": false,
99
+ "accept_invalid_cert": false,
100
+ "ca_file": "",
101
+ "key_file": "",
102
+ "cert_file": ""
103
+ }
104
+ },
105
+ "devicebroker": {
106
+ "getDevice": [
107
+ {
108
+ "path": "/get/devices/{id}",
109
+ "method": "GET",
110
+ "query": {},
111
+ "body": {},
112
+ "headers": {},
113
+ "handleFailure": "ignore",
114
+ "requestFields": {
115
+ "id": "name"
116
+ },
117
+ "responseDatakey": "",
118
+ "responseFields": {
119
+ "name": "host",
120
+ "ostype": "os",
121
+ "ostypePrefix": "system-",
122
+ "ipaddress": "attributes.ipaddr",
123
+ "port": "443"
124
+ }
125
+ }
126
+ ],
127
+ "getDevicesFiltered": [
128
+ {
129
+ "path": "/get/devices",
130
+ "method": "GET",
131
+ "query": {},
132
+ "body": {},
133
+ "headers": {},
134
+ "handleFailure": "ignore",
135
+ "requestFields": {},
136
+ "responseDatakey": "",
137
+ "responseFields": {
138
+ "name": "host",
139
+ "ostype": "os",
140
+ "ostypePrefix": "system-",
141
+ "ipaddress": "attributes.ipaddr",
142
+ "port": "443"
143
+ }
144
+ }
145
+ ],
146
+ "isAlive": [
147
+ {
148
+ "path": "/get/devices/{id}/status",
149
+ "method": "GET",
150
+ "query": {},
151
+ "body": {},
152
+ "headers": {},
153
+ "handleFailure": "ignore",
154
+ "requestFields": {
155
+ "id": "name"
156
+ },
157
+ "responseDatakey": "",
158
+ "responseFields": {
159
+ "status": "status",
160
+ "statusValue": "online"
161
+ }
162
+ }
163
+ ],
164
+ "getConfig": [
165
+ {
166
+ "path": "/get/devices/{id}/configPart1",
167
+ "method": "GET",
168
+ "query": {},
169
+ "body": {},
170
+ "headers": {},
171
+ "handleFailure": "ignore",
172
+ "requestFields": {
173
+ "id": "name"
174
+ },
175
+ "responseDatakey": "",
176
+ "responseFields": {}
177
+ }
178
+ ],
179
+ "getCount": [
180
+ {
181
+ "path": "/get/devices",
182
+ "method": "GET",
183
+ "query": {},
184
+ "body": {},
185
+ "headers": {},
186
+ "handleFailure": "ignore",
187
+ "requestFields": {},
188
+ "responseDatakey": "",
189
+ "responseFields": {}
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ "groups": [],
195
+ "brokers": [],
196
+ "logLevel": "none",
197
+ "timeout": 120000
198
+ }