occi-api 4.1.1 → 4.2.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +9 -0
- data/README.md +37 -11
- data/Rakefile +2 -9
- data/examples/dsl_example.rb +2 -2
- data/examples/x509auth_example.rb +9 -9
- data/lib/occi-api.rb +0 -1
- data/lib/occi/api/client/client_base.rb +102 -92
- data/lib/occi/api/client/client_http.rb +6 -6
- data/lib/occi/api/client/http/authn_plugins/keystone.rb +27 -11
- data/lib/occi/api/dsl.rb +7 -3
- data/lib/occi/api/version.rb +1 -1
- data/occi-api.gemspec +2 -14
- data/{features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml → spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_all_available_mixins.yml} +125 -147
- data/{features/cassettes/Miscellaneous_operation_on_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml → spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/looks_up_a_mixin_type_identifier_for_os_tpl.yml} +126 -148
- data/{features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml → spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/looks_up_a_mixin_type_identifier_for_resource_tpl.yml} +126 -148
- data/spec/occi/api/client/client_http_spec.rb +52 -28
- data/spec/occi/api/dsl_spec.rb +0 -6
- data/spec/spec_helper.rb +4 -1
- metadata +31 -200
- checksums.yaml +0 -7
- data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__application_json_200_.yml +0 -333
- data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_.yml +0 -529
- data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_action_.yml +0 -288
- data/features/cassettes/Read_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +0 -288
- data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +0 -288
- data/features/common/step_definitions/common_steps.rb +0 -32
- data/features/occi/core/create/create.feature +0 -18
- data/features/occi/core/create/step_definitions/create_steps.rb +0 -0
- data/features/occi/core/delete/delete.feature +0 -18
- data/features/occi/core/delete/step_definitions/delete_steps.rb +0 -0
- data/features/occi/core/discovery_interface/discovery_interface.feature +0 -37
- data/features/occi/core/discovery_interface/step_definitions/discovery_interface_steps.rb +0 -19
- data/features/occi/core/miscellaneous/miscellaneous.feature +0 -18
- data/features/occi/core/miscellaneous/step_definitions/miscellaneous_steps.rb +0 -0
- data/features/occi/core/read/read.feature +0 -18
- data/features/occi/core/read/step_definitions/read_steps.rb +0 -0
- data/features/occi/core/update/step_definitions/update_steps.rb +0 -0
- data/features/occi/core/update/update.feature +0 -18
- data/features/occi/infrastructure/create/create.feature +0 -18
- data/features/occi/infrastructure/create/step_definitions/create_steps.rb +0 -0
- data/features/support/env.rb +0 -16
- data/lib/occi/api/client/client_amqp.rb +0 -766
- data/spec/occi/api/client/client_amqp_spec.rb +0 -158
data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml
DELETED
@@ -1,288 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: head
|
5
|
-
uri: http://141.5.99.69/
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- text/plain
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message: OK
|
16
|
-
headers:
|
17
|
-
Date:
|
18
|
-
- Thu, 10 Jan 2013 13:52:04 GMT
|
19
|
-
Server:
|
20
|
-
- Apache/2.2.22 (Ubuntu)
|
21
|
-
X-Powered-By:
|
22
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
23
|
-
X-Frame-Options:
|
24
|
-
- sameorigin
|
25
|
-
X-Xss-Protection:
|
26
|
-
- 1; mode=block
|
27
|
-
Accept:
|
28
|
-
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
29
|
-
Set-Cookie:
|
30
|
-
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZGNmOWYzMzgwM2Q1Nzk4ZGY3NzEy%0AMTQ0ZWVmM2JkNTJlZDM2NTc2MzkwOGE0YzE3MDlmMmNjNTAwMWM4OWU2MEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--998b6a4dd9776a470ff24872de9f54151fdd9e52;
|
31
|
-
path=/; HttpOnly
|
32
|
-
Content-Length:
|
33
|
-
- '738'
|
34
|
-
Status:
|
35
|
-
- '200'
|
36
|
-
Vary:
|
37
|
-
- Accept-Encoding
|
38
|
-
Content-Type:
|
39
|
-
- text/plain;charset=utf-8
|
40
|
-
body:
|
41
|
-
encoding: US-ASCII
|
42
|
-
string: ''
|
43
|
-
http_version:
|
44
|
-
recorded_at: Thu, 10 Jan 2013 13:52:43 GMT
|
45
|
-
- request:
|
46
|
-
method: get
|
47
|
-
uri: http://141.5.99.69/-/
|
48
|
-
body:
|
49
|
-
encoding: US-ASCII
|
50
|
-
string: ''
|
51
|
-
headers:
|
52
|
-
Accept:
|
53
|
-
- text/plain
|
54
|
-
response:
|
55
|
-
status:
|
56
|
-
code: 200
|
57
|
-
message: OK
|
58
|
-
headers:
|
59
|
-
Date:
|
60
|
-
- Thu, 10 Jan 2013 13:52:04 GMT
|
61
|
-
Server:
|
62
|
-
- Apache/2.2.22 (Ubuntu)
|
63
|
-
X-Powered-By:
|
64
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
65
|
-
X-Frame-Options:
|
66
|
-
- sameorigin
|
67
|
-
X-Xss-Protection:
|
68
|
-
- 1; mode=block
|
69
|
-
Accept:
|
70
|
-
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
71
|
-
Set-Cookie:
|
72
|
-
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYjcwYjBiODgwZWVjODkwMTcwN2M5%0ANGNhMmIxMzEyM2RkMGY2NDE5MzlkZTZlYjU0ZDBmYzkxNGZkMTkzYmFhMkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--49f3b859c438d2dcac87782147c82a7ee3b34f65;
|
73
|
-
path=/; HttpOnly
|
74
|
-
Content-Length:
|
75
|
-
- '6397'
|
76
|
-
Status:
|
77
|
-
- '200'
|
78
|
-
Vary:
|
79
|
-
- Accept-Encoding
|
80
|
-
Content-Type:
|
81
|
-
- text/plain;charset=utf-8
|
82
|
-
body:
|
83
|
-
encoding: US-ASCII
|
84
|
-
string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
|
85
|
-
occi.core.title"
|
86
|
-
|
87
|
-
Category: resource;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Resource";rel="http://schemas.ogf.org/occi/core#entity";location="/resource/";attributes="occi.core.summary"
|
88
|
-
|
89
|
-
Category: link;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Link";rel="http://schemas.ogf.org/occi/core#entity";location="/link/";attributes="occi.core.target
|
90
|
-
occi.core.source"
|
91
|
-
|
92
|
-
Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
|
93
|
-
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
|
94
|
-
occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
|
95
|
-
occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
|
96
|
-
http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
|
97
|
-
http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
|
98
|
-
|
99
|
-
Category: networkinterface;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Networkinterface";rel="http://schemas.ogf.org/occi/core#link";location="/networkinterface/";attributes="occi.networkinterface.interface
|
100
|
-
occi.networkinterface.mac occi.networkinterface.state"
|
101
|
-
|
102
|
-
Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
103
|
-
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
|
104
|
-
occi.storage.state";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
|
105
|
-
http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
|
106
|
-
http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
|
107
|
-
|
108
|
-
Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
|
109
|
-
Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
|
110
|
-
occi.network.label occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
|
111
|
-
http://schemas.ogf.org/occi/infrastructure/network/action#down"
|
112
|
-
|
113
|
-
Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
|
114
|
-
Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
|
115
|
-
occi.storagelink.mountpoint occi.storagelink.state"
|
116
|
-
|
117
|
-
Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
|
118
|
-
Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
|
119
|
-
occi.network.gateway occi.network.allocation occi.network.state"
|
120
|
-
|
121
|
-
Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
|
122
|
-
Template";location="/mixins/resource_tpl/"
|
123
|
-
|
124
|
-
Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
|
125
|
-
System Template";location="/mixins/os_tpl/"
|
126
|
-
|
127
|
-
Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
|
128
|
-
Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
|
129
|
-
occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
|
130
|
-
|
131
|
-
Category: my_os;scheme="http://my.occi.service/occi/infrastructure/os_tpl#";class="mixin";title="My
|
132
|
-
OS Template";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/my_os/"
|
133
|
-
|
134
|
-
Category: large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Large
|
135
|
-
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
|
136
|
-
occi.compute.cores occi.compute.speed occi.compute.memory"
|
137
|
-
|
138
|
-
Category: small;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Small
|
139
|
-
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
|
140
|
-
occi.compute.cores occi.compute.speed occi.compute.memory"
|
141
|
-
|
142
|
-
Category: medium;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
|
143
|
-
Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
|
144
|
-
occi.compute.cores occi.compute.speed occi.compute.memory"
|
145
|
-
|
146
|
-
Category: extra_large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
|
147
|
-
Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
|
148
|
-
occi.compute.cores occi.compute.speed occi.compute.memory"
|
149
|
-
|
150
|
-
Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
|
151
|
-
Compute instance"
|
152
|
-
|
153
|
-
Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
|
154
|
-
Compute instance";attributes="method"
|
155
|
-
|
156
|
-
Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
|
157
|
-
Compute instance";attributes="method"
|
158
|
-
|
159
|
-
Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
|
160
|
-
Compute instance";attributes="method"
|
161
|
-
|
162
|
-
Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
|
163
|
-
Storage"
|
164
|
-
|
165
|
-
Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
|
166
|
-
Storage"
|
167
|
-
|
168
|
-
Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
|
169
|
-
Storage"
|
170
|
-
|
171
|
-
Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
|
172
|
-
Storage"
|
173
|
-
|
174
|
-
Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
|
175
|
-
Storage";attributes="size"
|
176
|
-
|
177
|
-
Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
|
178
|
-
network"
|
179
|
-
|
180
|
-
Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
|
181
|
-
network"
|
182
|
-
|
183
|
-
'
|
184
|
-
http_version:
|
185
|
-
recorded_at: Thu, 10 Jan 2013 13:52:44 GMT
|
186
|
-
- request:
|
187
|
-
method: get
|
188
|
-
uri: http://141.5.99.69/
|
189
|
-
body:
|
190
|
-
encoding: US-ASCII
|
191
|
-
string: ''
|
192
|
-
headers:
|
193
|
-
Accept:
|
194
|
-
- text/plain
|
195
|
-
response:
|
196
|
-
status:
|
197
|
-
code: 200
|
198
|
-
message: OK
|
199
|
-
headers:
|
200
|
-
Date:
|
201
|
-
- Tue, 12 Mar 2013 13:29:44 GMT
|
202
|
-
Server:
|
203
|
-
- Apache/2.2.22 (Ubuntu)
|
204
|
-
X-Powered-By:
|
205
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
206
|
-
X-Frame-Options:
|
207
|
-
- sameorigin
|
208
|
-
X-Xss-Protection:
|
209
|
-
- 1; mode=block
|
210
|
-
Accept:
|
211
|
-
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
212
|
-
Set-Cookie:
|
213
|
-
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZjhhYWFiY2M4NzI1YmM5ZDAxOTM4%0AOTlkMmY1YzQwMzIwNzU4NGZkMGI2MGQ4NTdjNTE3NjhjNzVmYTAzZGY0NEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--ed98c412bd15e6cbf4678ae0539ff96b547ab216;
|
214
|
-
path=/; HttpOnly
|
215
|
-
Content-Length:
|
216
|
-
- '738'
|
217
|
-
Status:
|
218
|
-
- '200'
|
219
|
-
Vary:
|
220
|
-
- Accept-Encoding
|
221
|
-
Content-Type:
|
222
|
-
- text/plain;charset=utf-8
|
223
|
-
body:
|
224
|
-
encoding: US-ASCII
|
225
|
-
string: ! 'X-OCCI-Location: http://141.5.99.69/compute/48e7c51c-5a7d-11e2-a300-fa163e16d22f
|
226
|
-
|
227
|
-
X-OCCI-Location: http://141.5.99.69/compute/6c706278-5a7d-11e2-a300-fa163e16d22f
|
228
|
-
|
229
|
-
X-OCCI-Location: http://141.5.99.69/compute/7582ffc4-5a7d-11e2-a300-fa163e16d22f
|
230
|
-
|
231
|
-
X-OCCI-Location: http://141.5.99.69/compute/8eb0deb2-5a7d-11e2-a300-fa163e16d22f
|
232
|
-
|
233
|
-
X-OCCI-Location: http://141.5.99.69/compute/8efa93e0-5a7d-11e2-a300-fa163e16d22f
|
234
|
-
|
235
|
-
X-OCCI-Location: http://141.5.99.69/compute/49cbeaee-5b1d-11e2-a300-fa163e16d22f
|
236
|
-
|
237
|
-
X-OCCI-Location: http://141.5.99.69/compute/c87fa76c-5b1e-11e2-a300-fa163e16d22f
|
238
|
-
|
239
|
-
X-OCCI-Location: http://141.5.99.69/compute/1cc544b2-5b1f-11e2-a300-fa163e16d22f
|
240
|
-
|
241
|
-
X-OCCI-Location: http://141.5.99.69/compute/38e2a6b2-5b1f-11e2-a300-fa163e16d22f
|
242
|
-
|
243
|
-
'
|
244
|
-
http_version:
|
245
|
-
recorded_at: Tue, 12 Mar 2013 13:29:36 GMT
|
246
|
-
- request:
|
247
|
-
method: head
|
248
|
-
uri: http://141.5.99.69/
|
249
|
-
body:
|
250
|
-
encoding: US-ASCII
|
251
|
-
string: ''
|
252
|
-
headers:
|
253
|
-
Accept:
|
254
|
-
- text/plain
|
255
|
-
response:
|
256
|
-
status:
|
257
|
-
code: 200
|
258
|
-
message: OK
|
259
|
-
headers:
|
260
|
-
Date:
|
261
|
-
- Tue, 12 Mar 2013 15:27:55 GMT
|
262
|
-
Server:
|
263
|
-
- Apache/2.2.22 (Ubuntu)
|
264
|
-
X-Powered-By:
|
265
|
-
- Phusion Passenger (mod_rails/mod_rack) 3.0.18
|
266
|
-
X-Frame-Options:
|
267
|
-
- sameorigin
|
268
|
-
X-Xss-Protection:
|
269
|
-
- 1; mode=block
|
270
|
-
Accept:
|
271
|
-
- application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
|
272
|
-
Set-Cookie:
|
273
|
-
- rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFOWIxY2FkNmM0ODZkY2U5MzllYTZk%0ANDY3ZjgwNzRjNmI1NjA5NGRhNjBkNWZlYzg2MTA4NTk1OTIwZmIxNmRkMEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--b576238584753a3c874e52e73b6bb06a34881845;
|
274
|
-
path=/; HttpOnly
|
275
|
-
Content-Length:
|
276
|
-
- '738'
|
277
|
-
Status:
|
278
|
-
- '200'
|
279
|
-
Vary:
|
280
|
-
- Accept-Encoding
|
281
|
-
Content-Type:
|
282
|
-
- text/plain;charset=utf-8
|
283
|
-
body:
|
284
|
-
encoding: US-ASCII
|
285
|
-
string: ''
|
286
|
-
http_version:
|
287
|
-
recorded_at: Tue, 12 Mar 2013 15:27:48 GMT
|
288
|
-
recorded_with: VCR 2.4.0
|
@@ -1,32 +0,0 @@
|
|
1
|
-
Given /^endpoint : (.*)$/ do |endpoint|
|
2
|
-
@endpoint = endpoint
|
3
|
-
@endpoint =~ URI::ABS_URI
|
4
|
-
@endpoint.should_not be_nil
|
5
|
-
end
|
6
|
-
|
7
|
-
Given /^transfer_protocol : (http|amqp)$/ do |protocol|
|
8
|
-
@transfer_protocol = protocol
|
9
|
-
end
|
10
|
-
|
11
|
-
Given /^accept type : (text\/occi|text\/plain|application\/json)$/ do |accept_type|
|
12
|
-
@accept_type = accept_type
|
13
|
-
end
|
14
|
-
|
15
|
-
Given /^category filter : (.*)$/ do |category_filter|
|
16
|
-
@category_filter = category_filter
|
17
|
-
end
|
18
|
-
|
19
|
-
Given /^have an initialize Client$/ do
|
20
|
-
@client = Occi::Api::Client::ClientHttp.new({
|
21
|
-
:endpoint => @endpoint, #141.5.99.69 #11.5.99.82
|
22
|
-
:auth => { :type => "none" },
|
23
|
-
:log => { :out => "/dev/null",
|
24
|
-
:level => Occi::Log::DEBUG },
|
25
|
-
:auto_connect => true,
|
26
|
-
:media_type => @accept_type#"text/plain,text/occi"
|
27
|
-
})
|
28
|
-
end
|
29
|
-
|
30
|
-
Then /^the Client should have the response code (.*)$/ do |response_code|
|
31
|
-
@client.last_response.code.should == response_code.to_i
|
32
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature:
|
2
|
-
In order to create an OCCI Resource on the OCCI Server
|
3
|
-
As an OCCI Client
|
4
|
-
I want to get an success report of the create operation and receive the URI of the new Resource by the OCCI Server
|
5
|
-
|
6
|
-
@vcr_record
|
7
|
-
Scenario Outline: Create an OCCI Resource
|
8
|
-
Given endpoint : <endpoint>
|
9
|
-
And transfer_protocol : <protocol>
|
10
|
-
And accept type : <accept_type>
|
11
|
-
And have an initialize Client
|
12
|
-
When the Client makes a create request
|
13
|
-
Then the Client should have the response code <response_code>
|
14
|
-
|
15
|
-
@vcr_record
|
16
|
-
Scenarios:
|
17
|
-
| protocol | endpoint | accept_type | response_code |
|
18
|
-
| http | http://141.5.99.69/ | text/plain | 201 |
|
File without changes
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature:
|
2
|
-
In order to delete an OCCI Resource on the OCCI Server
|
3
|
-
As an OCCI Client
|
4
|
-
I want to get an success report of the delete operation
|
5
|
-
|
6
|
-
@vcr_record
|
7
|
-
Scenario Outline: Delete an OCCI Resource
|
8
|
-
Given endpoint : <endpoint>
|
9
|
-
And transfer_protocol : <protocol>
|
10
|
-
And accept type : <accept_type>
|
11
|
-
And have an initialize Client
|
12
|
-
When the Client makes a delete request
|
13
|
-
Then the Client should have the response code <response_code>
|
14
|
-
|
15
|
-
@vcr_record
|
16
|
-
Scenarios:
|
17
|
-
| protocol | endpoint | accept_type | response_code |
|
18
|
-
| http | http://141.5.99.69/ | text/plain | 201 |
|
File without changes
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# language: en
|
2
|
-
|
3
|
-
Feature: Discovery Interface
|
4
|
-
In order to discover the capabilities of an OCCI Server
|
5
|
-
As an OCCI Client
|
6
|
-
I want to receive all OCCI Categories supported by the OCCI Server
|
7
|
-
|
8
|
-
@vcr_record
|
9
|
-
Scenario Outline: Retrieving all OCCI Categories supported by the OCCI Server
|
10
|
-
Given endpoint : <endpoint>
|
11
|
-
And transfer_protocol : <protocol>
|
12
|
-
And accept type : <accept_type>
|
13
|
-
And category filter : <category_filter>
|
14
|
-
And have an initialize Client
|
15
|
-
When OCCI Client request all OCCI Categories supported by the OCCI Server
|
16
|
-
Then the Client should have the response code <response_code>
|
17
|
-
And OCCI Client should display the OCCI Categories received from the OCCI Server
|
18
|
-
|
19
|
-
@vcr_record
|
20
|
-
Scenarios:
|
21
|
-
| protocol | endpoint | accept_type | response_code | category_filter |
|
22
|
-
| http | http://141.5.99.69/ | application/json | 200 | |
|
23
|
-
#| http | http://141.5.99.69/ | text/occi | 200 | |
|
24
|
-
| http | http://141.5.99.69/ | text/plain | 200 | |
|
25
|
-
#| http | http://46.231.128.85:8086/| text/occi | 200 | |
|
26
|
-
| http | http://141.5.99.69/ | text/plain | 200 | action |
|
27
|
-
|
28
|
-
#Scenario: Retrieving the OCCI Categories with an OCCI Category filter from the OCCI Server
|
29
|
-
# Given an "http" OCCI Server with endpoint "http://141.5.99.69/"
|
30
|
-
# And the client accept "text/plain"
|
31
|
-
# And OCCI Client requests all OCCI Categories supported by the OCCI Server
|
32
|
-
# And select "action" Category from the OCCI Server
|
33
|
-
# When OCCI Client requests from the OCCI Server the OCCI Categories related to the selected OCCI Category
|
34
|
-
# Then OCCI Client should display the OCCI Categories received from the OCCI Server
|
35
|
-
# And displayed Categories should related to the selected OCCI Category
|
36
|
-
# And should be some
|
37
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
When /^OCCI Client request all OCCI Categories supported by the OCCI Server$/ do
|
2
|
-
if @category_filter.length > 0
|
3
|
-
@category_filter = @category_filter.pluralize
|
4
|
-
@selected_category = @client.model.send @category_filter.to_sym
|
5
|
-
@selected_category.should have_at_least(1).bla
|
6
|
-
pending
|
7
|
-
else
|
8
|
-
@client.refresh
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
Then /^OCCI Client should display the OCCI Categories received from the OCCI Server$/ do
|
13
|
-
@client.model.should_not be_empty
|
14
|
-
|
15
|
-
# @client.model.actions .should have_at_least(1).actions
|
16
|
-
@client.model.kinds .should have_at_least(4).kinds
|
17
|
-
@client.model.links .should be_empty
|
18
|
-
@client.model.resources.should be_empty
|
19
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature:
|
2
|
-
In order to manipulate an OCCI Resource on the OCCI Server
|
3
|
-
As an OCCI Client
|
4
|
-
I want to get an success report of the miscellaneous operation
|
5
|
-
|
6
|
-
@vcr_record
|
7
|
-
Scenario Outline: Miscellaneous operation on an OCCI Resource
|
8
|
-
Given endpoint : <endpoint>
|
9
|
-
And transfer_protocol : <protocol>
|
10
|
-
And accept type : <accept_type>
|
11
|
-
And have an initialize Client
|
12
|
-
When the Client makes a miscellaneous request
|
13
|
-
Then the Client should have the response code <response_code>
|
14
|
-
|
15
|
-
@vcr_record
|
16
|
-
Scenarios:
|
17
|
-
| protocol | endpoint | accept_type | response_code |
|
18
|
-
| http | http://141.5.99.69/ | text/plain | 201 |
|
File without changes
|
@@ -1,18 +0,0 @@
|
|
1
|
-
Feature:
|
2
|
-
In order to read an OCCI Resource on the OCCI Server
|
3
|
-
As an OCCI Client
|
4
|
-
I want to get an success report of the read operation and receive Resource data from the OCCI Server
|
5
|
-
|
6
|
-
@vcr_record
|
7
|
-
Scenario Outline: Read an OCCI Resource
|
8
|
-
Given endpoint : <endpoint>
|
9
|
-
And transfer_protocol : <protocol>
|
10
|
-
And accept type : <accept_type>
|
11
|
-
And have an initialize Client
|
12
|
-
When the Client makes a read request
|
13
|
-
Then the Client should have the response code <response_code>
|
14
|
-
|
15
|
-
@vcr_record
|
16
|
-
Scenarios:
|
17
|
-
| protocol | endpoint | accept_type | response_code |
|
18
|
-
| http | http://141.5.99.69/ | text/plain | 201 |
|