occi-api 4.3.4 → 4.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/occi/api/client/http/authn_plugins/base.rb +2 -2
- data/lib/occi/api/client/http/authn_plugins/keystone.rb +1 -1
- data/lib/occi/api/client/http/helpers.rb +1 -1
- data/lib/occi/api/version.rb +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_all_available_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_compute_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_network_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_os_tpl_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_resource_tpl_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_storage_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/establishes_connection.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_all_available_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_compute_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_network_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_os_tpl_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_resource_tpl_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_storage_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/refreshes_its_model.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_all_available_mixins.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_compute_resources.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_network_resources.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_storage_resources.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/establishes_connection.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/fails_to_list_mixins_with_only_self_no_related_without_include_self_true.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/finds_and_describes_scoped_os_tpl_mixin.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/finds_and_describes_scoped_resource_tpl_mixin.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/finds_and_describes_unscoped_mixin.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_compute_resource_using_type_identifier.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_compute_resource_using_type_name.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_network_resource_using_type_identifier.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_network_resource_using_type_name.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_storage_resource_using_type_identifier.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_storage_resource_using_type_name.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_entity_type_identifiers.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_entity_types.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_link_type_identifiers.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_link_types.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixin_type_identifiers.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixin_types.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_resource_type_identifiers.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_resource_types.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_compute_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_mixins_including_self.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_mixins_with_only_self_no_related_.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_network_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_os_tpl_mixins.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_resource_tpl_mixins.yml +3 -3
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_storage_resources.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/looks_up_a_mixin_type_identifier_for_os_tpl.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/looks_up_a_mixin_type_identifier_for_resource_tpl.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/raises_an_error_when_looking_for_a_non-existent_mixin_type.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/refreshes_its_model.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/returns_nil_when_looking_for_a_non-existent_mixin.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/returns_nil_when_looking_for_a_non-existent_mixin_of_a_specific_type.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_compute_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_network_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_storage_resource.yml +1 -1
- data/spec/cassettes/Occi_Api_Dsl/_connect/accepts_block_options.yml +1 -1
- data/spec/cassettes/Occi_Api_Dsl/_connect/connects_successfully_through_HTTP.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1058d8ebbfc4c35fe0dc5a59725ce4ff6af5578
|
4
|
+
data.tar.gz: 752bd8e01cc6afc49434261bad1c3d3a3be92f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb9d62289f0f17212e65645e7f68ed5df18792ec51f39e82757b9cc47e21ac905ac80e7ea4a06597e5e507d767d1861862dfbdf4e4b6bc9e123275dff9dad94
|
7
|
+
data.tar.gz: 23d10f55966a9457cd02e6e7edc80d2f6c798db37fecb8b27ee3f3f62052ba9cc4827887d7d3f7adf6474efc64f63205c3b73081e23c94c5ab200a2bd75e1ce1
|
@@ -12,11 +12,11 @@ module Occi::Api::Client
|
|
12
12
|
@env_ref = env_ref
|
13
13
|
@fallbacks = []
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def setup(options = {}); end
|
17
17
|
|
18
18
|
def authenticate(options = {})
|
19
|
-
response = @env_ref.class.
|
19
|
+
response = @env_ref.class.get("#{@env_ref.endpoint.to_s}/-/")
|
20
20
|
raise ::Occi::Api::Client::Errors::AuthnError, "Authentication failed with code #{response.code.to_s}!" unless response.success?
|
21
21
|
end
|
22
22
|
|
@@ -34,7 +34,7 @@ module Occi::Api::Client
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def set_keystone_base_url
|
37
|
-
response = @env_ref.class.
|
37
|
+
response = @env_ref.class.get "#{@env_ref.endpoint.to_s}/-/"
|
38
38
|
Occi::Api::Log.debug response.inspect
|
39
39
|
|
40
40
|
return if response.success?
|
@@ -69,7 +69,7 @@ module Occi::Api::Client
|
|
69
69
|
self.class.headers 'Accept' => force_type
|
70
70
|
media_type = force_type
|
71
71
|
else
|
72
|
-
media_types = self.class.
|
72
|
+
media_types = self.class.get(@endpoint.to_s).headers['accept']
|
73
73
|
|
74
74
|
Occi::Api::Log.debug("Available media types: #{media_types.inspect}")
|
75
75
|
media_type = case media_types
|
data/lib/occi/api/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -261,7 +261,7 @@ http_interactions:
|
|
261
261
|
http_version:
|
262
262
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
263
263
|
- request:
|
264
|
-
method:
|
264
|
+
method: get
|
265
265
|
uri: https://rocci-test:edited@localhost:3300/-/
|
266
266
|
body:
|
267
267
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -364,7 +364,7 @@ http_interactions:
|
|
364
364
|
http_version:
|
365
365
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
366
366
|
- request:
|
367
|
-
method:
|
367
|
+
method: get
|
368
368
|
uri: https://rocci-test:edited@localhost:3300/-/
|
369
369
|
body:
|
370
370
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -363,7 +363,7 @@ http_interactions:
|
|
363
363
|
http_version:
|
364
364
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
365
365
|
- request:
|
366
|
-
method:
|
366
|
+
method: get
|
367
367
|
uri: https://rocci-test:edited@localhost:3300/-/
|
368
368
|
body:
|
369
369
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -422,7 +422,7 @@ http_interactions:
|
|
422
422
|
http_version:
|
423
423
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
424
424
|
- request:
|
425
|
-
method:
|
425
|
+
method: get
|
426
426
|
uri: https://rocci-test:edited@localhost:3300/-/
|
427
427
|
body:
|
428
428
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -261,7 +261,7 @@ http_interactions:
|
|
261
261
|
http_version:
|
262
262
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
263
263
|
- request:
|
264
|
-
method:
|
264
|
+
method: get
|
265
265
|
uri: https://rocci-test:edited@localhost:3300/-/
|
266
266
|
body:
|
267
267
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -261,7 +261,7 @@ http_interactions:
|
|
261
261
|
http_version:
|
262
262
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
263
263
|
- request:
|
264
|
-
method:
|
264
|
+
method: get
|
265
265
|
uri: https://rocci-test:edited@localhost:3300/-/
|
266
266
|
body:
|
267
267
|
encoding: US-ASCII
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
4
|
+
method: get
|
5
5
|
uri: https://localhost:3300/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
http_version:
|
45
45
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
46
46
|
- request:
|
47
|
-
method:
|
47
|
+
method: get
|
48
48
|
uri: https://localhost:3300/
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
@@ -261,7 +261,7 @@ http_interactions:
|
|
261
261
|
http_version:
|
262
262
|
recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
|
263
263
|
- request:
|
264
|
-
method:
|
264
|
+
method: get
|
265
265
|
uri: https://rocci-test:edited@localhost:3300/-/
|
266
266
|
body:
|
267
267
|
encoding: US-ASCII
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Feldhaus
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: occi-core
|