occi-api 4.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/.gitignore +15 -0
  2. data/.rspec +1 -0
  3. data/.travis.yml +43 -0
  4. data/.yardopts +1 -0
  5. data/AUTHORS +9 -0
  6. data/Gemfile +16 -0
  7. data/LICENSE +13 -0
  8. data/README.md +344 -0
  9. data/Rakefile +37 -0
  10. data/examples/dsl_example.rb +167 -0
  11. data/examples/x509auth_example.rb +161 -0
  12. data/ext/mkrf_conf.rb +34 -0
  13. data/features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +288 -0
  14. data/features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +288 -0
  15. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__application_json_200_.yml +333 -0
  16. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_.yml +529 -0
  17. 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 +288 -0
  18. data/features/cassettes/Miscellaneous_operation_on_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +288 -0
  19. data/features/cassettes/Read_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +288 -0
  20. data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +288 -0
  21. data/features/common/step_definitions/common_steps.rb +32 -0
  22. data/features/occi/core/create/create.feature +18 -0
  23. data/features/occi/core/create/step_definitions/create_steps.rb +0 -0
  24. data/features/occi/core/delete/delete.feature +18 -0
  25. data/features/occi/core/delete/step_definitions/delete_steps.rb +0 -0
  26. data/features/occi/core/discovery_interface/discovery_interface.feature +37 -0
  27. data/features/occi/core/discovery_interface/step_definitions/discovery_interface_steps.rb +19 -0
  28. data/features/occi/core/miscellaneous/miscellaneous.feature +18 -0
  29. data/features/occi/core/miscellaneous/step_definitions/miscellaneous_steps.rb +0 -0
  30. data/features/occi/core/read/read.feature +18 -0
  31. data/features/occi/core/read/step_definitions/read_steps.rb +0 -0
  32. data/features/occi/core/update/step_definitions/update_steps.rb +0 -0
  33. data/features/occi/core/update/update.feature +18 -0
  34. data/features/occi/infrastructure/create/create.feature +18 -0
  35. data/features/occi/infrastructure/create/step_definitions/create_steps.rb +0 -0
  36. data/features/support/env.rb +16 -0
  37. data/lib/occi/api/client/client_amqp.rb +766 -0
  38. data/lib/occi/api/client/client_base.rb +689 -0
  39. data/lib/occi/api/client/client_http.rb +541 -0
  40. data/lib/occi/api/client/errors/authn_error.rb +7 -0
  41. data/lib/occi/api/client/errors.rb +1 -0
  42. data/lib/occi/api/client/http/authn_plugins/base.rb +27 -0
  43. data/lib/occi/api/client/http/authn_plugins/basic.rb +22 -0
  44. data/lib/occi/api/client/http/authn_plugins/digest.rb +22 -0
  45. data/lib/occi/api/client/http/authn_plugins/dummy.rb +13 -0
  46. data/lib/occi/api/client/http/authn_plugins/keystone.rb +61 -0
  47. data/lib/occi/api/client/http/authn_plugins/x509.rb +46 -0
  48. data/lib/occi/api/client/http/authn_plugins.rb +6 -0
  49. data/lib/occi/api/client/http/authn_utils.rb +87 -0
  50. data/lib/occi/api/client/http/httparty_fix.rb +53 -0
  51. data/lib/occi/api/client/http/net_http_fix.rb +21 -0
  52. data/lib/occi/api/dsl.rb +146 -0
  53. data/lib/occi/api/version.rb +5 -0
  54. data/lib/occi-api.rb +14 -0
  55. data/occi-api.gemspec +38 -0
  56. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_compute_resource.yml +266 -0
  57. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_network_resource.yml +266 -0
  58. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_storage_resource.yml +266 -0
  59. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_compute_resource.yml +266 -0
  60. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_network_resource.yml +266 -0
  61. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_storage_resource.yml +266 -0
  62. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deploys_an_instance_based_on_OVF_OVA_file.yml +266 -0
  63. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_compute_resources.yml +368 -0
  64. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_network_resources.yml +370 -0
  65. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_storage_resources.yml +430 -0
  66. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/establishes_connection.yml +266 -0
  67. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/finds_and_describes_scoped_os_tpl_mixin.yml +266 -0
  68. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/finds_and_describes_scoped_resource_tpl_mixin.yml +266 -0
  69. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/finds_and_describes_unscoped_mixin.yml +266 -0
  70. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_identifier.yml +266 -0
  71. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_name.yml +266 -0
  72. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_identifier.yml +266 -0
  73. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_name.yml +266 -0
  74. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_identifier.yml +266 -0
  75. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_name.yml +266 -0
  76. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_type_identifiers.yml +266 -0
  77. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_types.yml +266 -0
  78. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_type_identifiers.yml +266 -0
  79. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_types.yml +266 -0
  80. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_type_identifiers.yml +266 -0
  81. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_types.yml +266 -0
  82. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixins.yml +266 -0
  83. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_type_identifiers.yml +266 -0
  84. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_types.yml +266 -0
  85. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_compute_resources.yml +308 -0
  86. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_network_resources.yml +308 -0
  87. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_os_tpl_mixins.yml +266 -0
  88. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_resource_tpl_mixins.yml +266 -0
  89. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_storage_resources.yml +310 -0
  90. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/refreshes_its_model.yml +485 -0
  91. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_compute_resource.yml +266 -0
  92. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_network_resource.yml +266 -0
  93. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_storage_resource.yml +266 -0
  94. data/spec/occi/api/client/client_amqp_spec.rb +158 -0
  95. data/spec/occi/api/client/client_http_spec.rb +292 -0
  96. data/spec/occi/api/client/http/authn_utils_spec.rb +55 -0
  97. data/spec/occi/api/client/http/httparty_fix_spec.rb +0 -0
  98. data/spec/occi/api/client/http/net_http_fix_spec.rb +0 -0
  99. data/spec/occi/api/client/http/rocci-cred-cert.pem +3 -0
  100. data/spec/occi/api/client/http/rocci-cred-key-jruby.pem +3 -0
  101. data/spec/occi/api/client/http/rocci-cred-key.pem +3 -0
  102. data/spec/occi/api/client/http/rocci-cred.p12 +0 -0
  103. data/spec/occi/api/dsl_spec.rb +21 -0
  104. data/spec/spec_helper.rb +38 -0
  105. metadata +379 -0
@@ -0,0 +1,529 @@
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
+ - application/json
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Jan 2013 13:52:02 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=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMmE0ZGY3ZmNiOGUyZGU3NGE2MjZm%0ANTljMDExNmY1ZmE5YTk3MDI0MWVkYjE5ODQyMjE0NTQyMzk3NWE4Y2YxYUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--6e34cfa704fe7d1dedcc3add897a7081860c1e93;
31
+ path=/; HttpOnly
32
+ Content-Length:
33
+ - '3444'
34
+ Status:
35
+ - '200'
36
+ Content-Type:
37
+ - application/json;charset=utf-8
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ''
41
+ http_version:
42
+ recorded_at: Thu, 10 Jan 2013 13:52:42 GMT
43
+ - request:
44
+ method: get
45
+ uri: http://141.5.99.69/-/
46
+ body:
47
+ encoding: US-ASCII
48
+ string: ''
49
+ headers:
50
+ Accept:
51
+ - text/plain
52
+ response:
53
+ status:
54
+ code: 200
55
+ message: OK
56
+ headers:
57
+ Date:
58
+ - Thu, 10 Jan 2013 13:52:02 GMT
59
+ Server:
60
+ - Apache/2.2.22 (Ubuntu)
61
+ X-Powered-By:
62
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
63
+ X-Frame-Options:
64
+ - sameorigin
65
+ X-Xss-Protection:
66
+ - 1; mode=block
67
+ Accept:
68
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
69
+ Set-Cookie:
70
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFNzQ2OWIwNTE3MjIzMWUwODkyYjcw%0AYzZkMjNhOTJjMmI0NDhjY2Y0ZWZhODUyMDdiN2U4NTBiZTkwOGQ0NjA1M0ki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--d91b46ce052e8e78755a0aefd22b6a3813d14fa9;
71
+ path=/; HttpOnly
72
+ Content-Length:
73
+ - '6397'
74
+ Status:
75
+ - '200'
76
+ Vary:
77
+ - Accept-Encoding
78
+ Content-Type:
79
+ - text/plain;charset=utf-8
80
+ body:
81
+ encoding: US-ASCII
82
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
83
+ occi.core.title"
84
+
85
+ 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"
86
+
87
+ 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
88
+ occi.core.source"
89
+
90
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
91
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
92
+ occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
93
+ occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
94
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
95
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
96
+
97
+ 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
98
+ occi.networkinterface.mac occi.networkinterface.state"
99
+
100
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
101
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
102
+ occi.storage.state";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
103
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
104
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
105
+
106
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
107
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
108
+ occi.network.label occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
109
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
110
+
111
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
112
+ Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
113
+ occi.storagelink.mountpoint occi.storagelink.state"
114
+
115
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
116
+ Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
117
+ occi.network.gateway occi.network.allocation occi.network.state"
118
+
119
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
120
+ Template";location="/mixins/resource_tpl/"
121
+
122
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
123
+ System Template";location="/mixins/os_tpl/"
124
+
125
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
126
+ Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
127
+ occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
128
+
129
+ Category: my_os;scheme="http://my.occi.service/occi/infrastructure/os_tpl#";class="mixin";title="My
130
+ OS Template";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/my_os/"
131
+
132
+ Category: large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Large
133
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
134
+ occi.compute.cores occi.compute.speed occi.compute.memory"
135
+
136
+ Category: small;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Small
137
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
138
+ occi.compute.cores occi.compute.speed occi.compute.memory"
139
+
140
+ Category: medium;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
141
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
142
+ occi.compute.cores occi.compute.speed occi.compute.memory"
143
+
144
+ Category: extra_large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
145
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
146
+ occi.compute.cores occi.compute.speed occi.compute.memory"
147
+
148
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
149
+ Compute instance"
150
+
151
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
152
+ Compute instance";attributes="method"
153
+
154
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
155
+ Compute instance";attributes="method"
156
+
157
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
158
+ Compute instance";attributes="method"
159
+
160
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
161
+ Storage"
162
+
163
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
164
+ Storage"
165
+
166
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
167
+ Storage"
168
+
169
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
170
+ Storage"
171
+
172
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
173
+ Storage";attributes="size"
174
+
175
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
176
+ network"
177
+
178
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
179
+ network"
180
+
181
+ '
182
+ http_version:
183
+ recorded_at: Thu, 10 Jan 2013 13:52:42 GMT
184
+ - request:
185
+ method: get
186
+ uri: http://141.5.99.69/-/
187
+ body:
188
+ encoding: US-ASCII
189
+ string: ''
190
+ headers:
191
+ Accept:
192
+ - text/plain
193
+ response:
194
+ status:
195
+ code: 200
196
+ message: OK
197
+ headers:
198
+ Date:
199
+ - Thu, 10 Jan 2013 13:52:03 GMT
200
+ Server:
201
+ - Apache/2.2.22 (Ubuntu)
202
+ X-Powered-By:
203
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
204
+ X-Frame-Options:
205
+ - sameorigin
206
+ X-Xss-Protection:
207
+ - 1; mode=block
208
+ Accept:
209
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
210
+ Set-Cookie:
211
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZDE0N2Q2M2ZiODE3ZjJkZGQwNjIw%0AMjRhYmJhMTQ4YTQxZDllMjYyNDRhY2FmZmM1MDNmMTE2YWYxYmIxM2UzY0ki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--bd0c6671c631552cc4d1780b11596739118cc30e;
212
+ path=/; HttpOnly
213
+ Content-Length:
214
+ - '6397'
215
+ Status:
216
+ - '200'
217
+ Vary:
218
+ - Accept-Encoding
219
+ Content-Type:
220
+ - text/plain;charset=utf-8
221
+ body:
222
+ encoding: US-ASCII
223
+ string: ! 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind";title="Entity";location="/entity/";attributes="occi.core.id
224
+ occi.core.title"
225
+
226
+ 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"
227
+
228
+ 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
229
+ occi.core.source"
230
+
231
+ Category: compute;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Compute
232
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/compute/";attributes="occi.compute.architecture
233
+ occi.compute.cores occi.compute.hostname occi.compute.speed occi.compute.memory
234
+ occi.compute.state";actions="http://schemas.ogf.org/occi/infrastructure/compute/action#start
235
+ http://schemas.ogf.org/occi/infrastructure/compute/action#stop http://schemas.ogf.org/occi/infrastructure/compute/action#restart
236
+ http://schemas.ogf.org/occi/infrastructure/compute/action#suspend"
237
+
238
+ 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
239
+ occi.networkinterface.mac occi.networkinterface.state"
240
+
241
+ Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
242
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/storage/";attributes="occi.storage.size
243
+ occi.storage.state";actions="http://schemas.ogf.org/occi/infrastructure/storage/action#online
244
+ http://schemas.ogf.org/occi/infrastructure/storage/action#offline http://schemas.ogf.org/occi/infrastructure/storage/action#backup
245
+ http://schemas.ogf.org/occi/infrastructure/storage/action#snapshot http://schemas.ogf.org/occi/infrastructure/storage/action#resize"
246
+
247
+ Category: network;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Network
248
+ Resource";rel="http://schemas.ogf.org/occi/core#resource";location="/network/";attributes="occi.network.vlan
249
+ occi.network.label occi.network.state";actions="http://schemas.ogf.org/occi/infrastructure/network/action#up
250
+ http://schemas.ogf.org/occi/infrastructure/network/action#down"
251
+
252
+ Category: storagelink;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind";title="Storage
253
+ Link";rel="http://schemas.ogf.org/occi/core#link";location="/storagelink/";attributes="occi.storagelink.deviceid
254
+ occi.storagelink.mountpoint occi.storagelink.state"
255
+
256
+ Category: ipnetwork;scheme="http://schemas.ogf.org/occi/infrastructure/network#";class="mixin";title="IP
257
+ Network Mixin";location="/mixins/ipnetwork/";attributes="occi.network.address
258
+ occi.network.gateway occi.network.allocation occi.network.state"
259
+
260
+ Category: resource_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Resource
261
+ Template";location="/mixins/resource_tpl/"
262
+
263
+ Category: os_tpl;scheme="http://schemas.ogf.org/occi/infrastructure#";class="mixin";title="Operating
264
+ System Template";location="/mixins/os_tpl/"
265
+
266
+ Category: ipnetworkinterface;scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#";class="mixin";title="IP
267
+ Networkinterface Mixin";location="/mixins/ipnetworkinterface/";attributes="occi.networkinterface.address
268
+ occi.networkinterface.gateway occi.networkinterface.allocation occi.networkinterface.state"
269
+
270
+ Category: my_os;scheme="http://my.occi.service/occi/infrastructure/os_tpl#";class="mixin";title="My
271
+ OS Template";rel="http://schemas.ogf.org/occi/infrastructure#os_tpl";location="/mixins/my_os/"
272
+
273
+ Category: large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Large
274
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/large/";attributes="occi.compute.architecture
275
+ occi.compute.cores occi.compute.speed occi.compute.memory"
276
+
277
+ Category: small;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Small
278
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/small/";attributes="occi.compute.architecture
279
+ occi.compute.cores occi.compute.speed occi.compute.memory"
280
+
281
+ Category: medium;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Medium
282
+ Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/medium/";attributes="occi.compute.architecture
283
+ occi.compute.cores occi.compute.speed occi.compute.memory"
284
+
285
+ Category: extra_large;scheme="http://my.occi.service/occi/infrastructure/resource_tpl#";class="mixin";title="Extra
286
+ Large Instance";rel="http://schemas.ogf.org/occi/infrastructure#resource_tpl";location="/mixins/extra_large/";attributes="occi.compute.architecture
287
+ occi.compute.cores occi.compute.speed occi.compute.memory"
288
+
289
+ Category: start;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Start
290
+ Compute instance"
291
+
292
+ Category: stop;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Stop
293
+ Compute instance";attributes="method"
294
+
295
+ Category: restart;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Restart
296
+ Compute instance";attributes="method"
297
+
298
+ Category: suspend;scheme="http://schemas.ogf.org/occi/infrastructure/compute/action#";class="action";title="Suspend
299
+ Compute instance";attributes="method"
300
+
301
+ Category: online;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Activate
302
+ Storage"
303
+
304
+ Category: offline;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Deactivate
305
+ Storage"
306
+
307
+ Category: backup;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Backup
308
+ Storage"
309
+
310
+ Category: snapshot;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Snapshot
311
+ Storage"
312
+
313
+ Category: resize;scheme="http://schemas.ogf.org/occi/infrastructure/storage/action#";class="action";title="Resize
314
+ Storage";attributes="size"
315
+
316
+ Category: up;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
317
+ network"
318
+
319
+ Category: down;scheme="http://schemas.ogf.org/occi/infrastructure/network/action#";class="action";title="Activate
320
+ network"
321
+
322
+ '
323
+ http_version:
324
+ recorded_at: Thu, 10 Jan 2013 13:52:42 GMT
325
+ - request:
326
+ method: get
327
+ uri: http://141.5.99.69/
328
+ body:
329
+ encoding: US-ASCII
330
+ string: ''
331
+ headers:
332
+ Accept:
333
+ - text/plain
334
+ response:
335
+ status:
336
+ code: 200
337
+ message: OK
338
+ headers:
339
+ Date:
340
+ - Tue, 12 Mar 2013 13:29:43 GMT
341
+ Server:
342
+ - Apache/2.2.22 (Ubuntu)
343
+ X-Powered-By:
344
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
345
+ X-Frame-Options:
346
+ - sameorigin
347
+ X-Xss-Protection:
348
+ - 1; mode=block
349
+ Accept:
350
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
351
+ Set-Cookie:
352
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFY2Y2ZDQxNTBkNmY3YmUwNDQ3YzI5%0AZmJmYjNjZGJiMTM1NmMwMDkzNjUzN2UxNGQ5ODMxYTBhMTVkMWI2NDU3ZUki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--28b0beea7802c8083337ceb6e63b1ade57e418db;
353
+ path=/; HttpOnly
354
+ Content-Length:
355
+ - '738'
356
+ Status:
357
+ - '200'
358
+ Vary:
359
+ - Accept-Encoding
360
+ Content-Type:
361
+ - text/plain;charset=utf-8
362
+ body:
363
+ encoding: US-ASCII
364
+ string: ! 'X-OCCI-Location: http://141.5.99.69/compute/48e7c51c-5a7d-11e2-a300-fa163e16d22f
365
+
366
+ X-OCCI-Location: http://141.5.99.69/compute/6c706278-5a7d-11e2-a300-fa163e16d22f
367
+
368
+ X-OCCI-Location: http://141.5.99.69/compute/7582ffc4-5a7d-11e2-a300-fa163e16d22f
369
+
370
+ X-OCCI-Location: http://141.5.99.69/compute/8eb0deb2-5a7d-11e2-a300-fa163e16d22f
371
+
372
+ X-OCCI-Location: http://141.5.99.69/compute/8efa93e0-5a7d-11e2-a300-fa163e16d22f
373
+
374
+ X-OCCI-Location: http://141.5.99.69/compute/49cbeaee-5b1d-11e2-a300-fa163e16d22f
375
+
376
+ X-OCCI-Location: http://141.5.99.69/compute/c87fa76c-5b1e-11e2-a300-fa163e16d22f
377
+
378
+ X-OCCI-Location: http://141.5.99.69/compute/1cc544b2-5b1f-11e2-a300-fa163e16d22f
379
+
380
+ X-OCCI-Location: http://141.5.99.69/compute/38e2a6b2-5b1f-11e2-a300-fa163e16d22f
381
+
382
+ '
383
+ http_version:
384
+ recorded_at: Tue, 12 Mar 2013 13:29:35 GMT
385
+ - request:
386
+ method: get
387
+ uri: http://141.5.99.69/
388
+ body:
389
+ encoding: US-ASCII
390
+ string: ''
391
+ headers:
392
+ Accept:
393
+ - text/plain
394
+ response:
395
+ status:
396
+ code: 200
397
+ message: OK
398
+ headers:
399
+ Date:
400
+ - Tue, 12 Mar 2013 13:29:43 GMT
401
+ Server:
402
+ - Apache/2.2.22 (Ubuntu)
403
+ X-Powered-By:
404
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
405
+ X-Frame-Options:
406
+ - sameorigin
407
+ X-Xss-Protection:
408
+ - 1; mode=block
409
+ Accept:
410
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
411
+ Set-Cookie:
412
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFMGUwMmJhMzkwNzllNmY3MjI4Zjkz%0AN2VkMDAzY2E0ZDIwNGE4NDk3YzhkZjc2NDU3YTFhZDllNjQ3MTQ5YjU5Nkki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--0662384d0128610634d8cdc9bc75698b26d7aa66;
413
+ path=/; HttpOnly
414
+ Content-Length:
415
+ - '738'
416
+ Status:
417
+ - '200'
418
+ Vary:
419
+ - Accept-Encoding
420
+ Content-Type:
421
+ - text/plain;charset=utf-8
422
+ body:
423
+ encoding: US-ASCII
424
+ string: ! 'X-OCCI-Location: http://141.5.99.69/compute/48e7c51c-5a7d-11e2-a300-fa163e16d22f
425
+
426
+ X-OCCI-Location: http://141.5.99.69/compute/6c706278-5a7d-11e2-a300-fa163e16d22f
427
+
428
+ X-OCCI-Location: http://141.5.99.69/compute/7582ffc4-5a7d-11e2-a300-fa163e16d22f
429
+
430
+ X-OCCI-Location: http://141.5.99.69/compute/8eb0deb2-5a7d-11e2-a300-fa163e16d22f
431
+
432
+ X-OCCI-Location: http://141.5.99.69/compute/8efa93e0-5a7d-11e2-a300-fa163e16d22f
433
+
434
+ X-OCCI-Location: http://141.5.99.69/compute/49cbeaee-5b1d-11e2-a300-fa163e16d22f
435
+
436
+ X-OCCI-Location: http://141.5.99.69/compute/c87fa76c-5b1e-11e2-a300-fa163e16d22f
437
+
438
+ X-OCCI-Location: http://141.5.99.69/compute/1cc544b2-5b1f-11e2-a300-fa163e16d22f
439
+
440
+ X-OCCI-Location: http://141.5.99.69/compute/38e2a6b2-5b1f-11e2-a300-fa163e16d22f
441
+
442
+ '
443
+ http_version:
444
+ recorded_at: Tue, 12 Mar 2013 13:29:36 GMT
445
+ - request:
446
+ method: head
447
+ uri: http://141.5.99.69/
448
+ body:
449
+ encoding: US-ASCII
450
+ string: ''
451
+ headers:
452
+ Accept:
453
+ - text/plain
454
+ response:
455
+ status:
456
+ code: 200
457
+ message: OK
458
+ headers:
459
+ Date:
460
+ - Tue, 12 Mar 2013 15:27:54 GMT
461
+ Server:
462
+ - Apache/2.2.22 (Ubuntu)
463
+ X-Powered-By:
464
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
465
+ X-Frame-Options:
466
+ - sameorigin
467
+ X-Xss-Protection:
468
+ - 1; mode=block
469
+ Accept:
470
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
471
+ Set-Cookie:
472
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYzFmM2UxZTlmYzBhM2U4OWYzNDM3%0AZjZhOWVkNTkxNjdkMDBmMGQyMTlhNjg0Njc0ZmUyZTEwYzJjYjhkYjhkOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--e4f3ebb5a4f67c116d365f9d2d48507f6140ab98;
473
+ path=/; HttpOnly
474
+ Content-Length:
475
+ - '738'
476
+ Status:
477
+ - '200'
478
+ Vary:
479
+ - Accept-Encoding
480
+ Content-Type:
481
+ - text/plain;charset=utf-8
482
+ body:
483
+ encoding: US-ASCII
484
+ string: ''
485
+ http_version:
486
+ recorded_at: Tue, 12 Mar 2013 15:27:47 GMT
487
+ - request:
488
+ method: head
489
+ uri: http://141.5.99.69/
490
+ body:
491
+ encoding: US-ASCII
492
+ string: ''
493
+ headers:
494
+ Accept:
495
+ - text/plain
496
+ response:
497
+ status:
498
+ code: 200
499
+ message: OK
500
+ headers:
501
+ Date:
502
+ - Tue, 12 Mar 2013 15:27:54 GMT
503
+ Server:
504
+ - Apache/2.2.22 (Ubuntu)
505
+ X-Powered-By:
506
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.18
507
+ X-Frame-Options:
508
+ - sameorigin
509
+ X-Xss-Protection:
510
+ - 1; mode=block
511
+ Accept:
512
+ - application/occi+json,application/json,text/plain,text/uri-list,application/xml,text/xml,application/occi+xml,text/occi
513
+ Set-Cookie:
514
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYWE4ZGQ1ODg3MmY4YmY0MWU5Njk1%0ANDViM2I1N2M0MTM5ZjQzMTcyZWQzNjNhYzg3MzJjNTE1NTkzNWM3Y2QyOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--0fdb677cfa381297340297b5f143116fb5171ff5;
515
+ path=/; HttpOnly
516
+ Content-Length:
517
+ - '738'
518
+ Status:
519
+ - '200'
520
+ Vary:
521
+ - Accept-Encoding
522
+ Content-Type:
523
+ - text/plain;charset=utf-8
524
+ body:
525
+ encoding: US-ASCII
526
+ string: ''
527
+ http_version:
528
+ recorded_at: Tue, 12 Mar 2013 15:27:47 GMT
529
+ recorded_with: VCR 2.4.0