occi-api 4.2.0.beta.15 → 4.2.0.beta.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -6
- data/lib/occi/api/client/base/stubs.rb +0 -36
- data/lib/occi/api/client/client_http.rb +0 -47
- data/lib/occi/api/client/http/helpers.rb +0 -2
- data/lib/occi/api/dsl.rb +3 -3
- data/lib/occi/api/version.rb +1 -1
- data/occi-api.gemspec +1 -1
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_compute_resource.yml +840 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_network_resource.yml +848 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/creates_a_new_storage_resource.yml +840 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_compute_resource.yml +836 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_network_resource.yml +844 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/deletes_a_storage_resource.yml +836 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_all_available_mixins.yml +647 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_compute_resources.yml +885 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_network_resources.yml +1038 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_os_tpl_mixins.yml +647 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_resource_tpl_mixins.yml +648 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/describes_storage_resources.yml +1144 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/establishes_connection.yml +789 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_all_available_mixins.yml +647 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_compute_resources.yml +836 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_network_resources.yml +842 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_os_tpl_mixins.yml +647 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_resource_tpl_mixins.yml +647 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/lists_storage_resources.yml +846 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/refreshes_its_model.yml +1524 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_compute_resource.yml +846 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_network_resource.yml +840 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_application/occi_json/triggers_an_action_on_a_storage_resource.yml +846 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_compute_resource.yml +321 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_network_resource.yml +326 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/creates_a_new_storage_resource.yml +321 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_compute_resource.yml +311 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_network_resource.yml +310 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/deletes_a_storage_resource.yml +311 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/{using_media_type_text_plain/refreshes_its_model.yml → using_media_type_text/plain/describes_all_available_mixins.yml} +160 -124
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_compute_resources.yml +752 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_network_resources.yml +977 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/describes_storage_resources.yml +1178 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/establishes_connection.yml +262 -0
- 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 +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/{using_media_type_text_plain/describes_storage_resources.yml → using_media_type_text/plain/finds_and_describes_scoped_os_tpl_mixin.yml} +196 -104
- data/spec/cassettes/Occi_Api_Client_ClientHttp/{using_media_type_text_plain/describes_network_resources.yml → using_media_type_text/plain/finds_and_describes_scoped_resource_tpl_mixin.yml} +203 -51
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/finds_and_describes_unscoped_mixin.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_compute_resource_using_type_identifier.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_compute_resource_using_type_name.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_network_resource_using_type_identifier.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_network_resource_using_type_name.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_storage_resource_using_type_identifier.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/instantiates_a_storage_resource_using_type_name.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_entity_type_identifiers.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_entity_types.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_link_type_identifiers.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_link_types.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixin_type_identifiers.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixin_types.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_mixins.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_resource_type_identifiers.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_all_available_resource_types.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_compute_resources.yml +311 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_mixins_including_self.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_mixins_with_only_self_no_related_.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_network_resources.yml +315 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_os_tpl_mixins.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/{using_media_type_text_plain/describes_compute_resources.yml → using_media_type_text/plain/lists_resource_tpl_mixins.yml} +209 -55
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/lists_storage_resources.yml +321 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/looks_up_a_mixin_type_identifier_for_os_tpl.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/looks_up_a_mixin_type_identifier_for_resource_tpl.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/raises_an_error_when_looking_for_a_non-existent_mixin_type.yml +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/refreshes_its_model.yml +472 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/returns_nil_when_looking_for_a_non-existent_mixin.yml +262 -0
- 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 +262 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_compute_resource.yml +312 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_network_resource.yml +315 -0
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text/plain/triggers_an_action_on_a_storage_resource.yml +312 -0
- data/spec/cassettes/Occi_Api_Dsl/_connect/accepts_block_options.yml +261 -0
- data/spec/cassettes/Occi_Api_Dsl/_connect/connects_successfully_through_HTTP.yml +259 -0
- data/spec/occi/api/client/client_http_spec.rb +253 -99
- data/spec/occi/api/dsl_spec.rb +53 -3
- data/spec/occi/helpers/helpers_spec.rb +11 -0
- data/spec/spec_helper.rb +1 -0
- metadata +76 -15
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/establishes_connection.yml +0 -266
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_compute_resources.yml +0 -308
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_network_resources.yml +0 -308
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_storage_resources.yml +0 -310
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/net_http_example_response.yml +0 -266
- data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/replacements.txt +0 -38
- data/spec/occi/api/client/base/stubs_spec.rb +0 -53
@@ -1,38 +0,0 @@
|
|
1
|
-
instantiates_a_storage_resource_using_type_identifier.yml net_http_example_response.yml
|
2
|
-
instantiates_a_compute_resource_using_type_identifier.yml net_http_example_response.yml
|
3
|
-
creates_a_new_compute_resource.yml net_http_example_response.yml
|
4
|
-
lists_all_available_mixin_types.yml net_http_example_response.yml
|
5
|
-
instantiates_a_network_resource_using_type_name.yml net_http_example_response.yml
|
6
|
-
raises_an_error_when_looking_for_a_non-existent_mixin_type.yml net_http_example_response.yml
|
7
|
-
instantiates_a_network_resource_using_type_identifier.yml net_http_example_response.yml
|
8
|
-
instantiates_a_storage_resource_using_type_name.yml net_http_example_response.yml
|
9
|
-
deletes_a_compute_resource.yml net_http_example_response.yml
|
10
|
-
deletes_a_network_resource.yml net_http_example_response.yml
|
11
|
-
lists_all_available_entity_types.yml net_http_example_response.yml
|
12
|
-
finds_and_describes_scoped_os_tpl_mixin.yml net_http_example_response.yml
|
13
|
-
looks_up_a_mixin_type_identifier_for_os_tpl.yml net_http_example_response.yml
|
14
|
-
lists_all_available_mixin_type_identifiers.yml net_http_example_response.yml
|
15
|
-
creates_a_new_network_resource.yml net_http_example_response.yml
|
16
|
-
lists_all_available_link_type_identifiers.yml net_http_example_response.yml
|
17
|
-
looks_up_a_mixin_type_identifier_for_resource_tpl.yml net_http_example_response.yml
|
18
|
-
triggers_an_action_on_a_storage_resource.yml net_http_example_response.yml
|
19
|
-
lists_all_available_entity_type_identifiers.yml net_http_example_response.yml
|
20
|
-
lists_all_available_resource_types.yml net_http_example_response.yml
|
21
|
-
deploys_an_instance_based_on_OVF_OVA_file.yml net_http_example_response.yml
|
22
|
-
returns_nil_when_looking_for_a_non-existent_mixin_of_a_specific_type.yml net_http_example_response.yml
|
23
|
-
finds_and_describes_unscoped_mixin.yml net_http_example_response.yml
|
24
|
-
finds_and_describes_scoped_resource_tpl_mixin.yml net_http_example_response.yml
|
25
|
-
lists_all_available_resource_type_identifiers.yml net_http_example_response.yml
|
26
|
-
describes_all_available_mixins.yml net_http_example_response.yml
|
27
|
-
lists_resource_tpl_mixins.yml net_http_example_response.yml
|
28
|
-
triggers_an_action_on_a_compute_resource.yml net_http_example_response.yml
|
29
|
-
triggers_an_action_on_a_network_resource.yml net_http_example_response.yml
|
30
|
-
deletes_a_storage_resource.yml net_http_example_response.yml
|
31
|
-
returns_nil_when_looking_for_a_non-existent_mixin.yml net_http_example_response.yml
|
32
|
-
lists_all_available_link_types.yml net_http_example_response.yml
|
33
|
-
net_http_example_response.yml net_http_example_response.yml
|
34
|
-
creates_a_new_storage_resource.yml net_http_example_response.yml
|
35
|
-
lists_os_tpl_mixins.yml net_http_example_response.yml
|
36
|
-
instantiates_a_compute_resource_using_type_name.yml net_http_example_response.yml
|
37
|
-
lists_all_available_mixins.yml net_http_example_response.yml
|
38
|
-
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module Occi
|
2
|
-
module Api
|
3
|
-
module Client
|
4
|
-
module Base
|
5
|
-
module Stubs
|
6
|
-
describe 'Stubs' do
|
7
|
-
|
8
|
-
context 'list' #do
|
9
|
-
# it 'raises NotImplementedError' do
|
10
|
-
# expect{ Occi::Api::Client::Base::Stubs.list(nil) }.to raise_exception Occi::Api::Client::Errors::NotImplementedError
|
11
|
-
# end
|
12
|
-
# end
|
13
|
-
|
14
|
-
context 'describe' #do
|
15
|
-
# describe(resource_type_identifier=nil)
|
16
|
-
# end
|
17
|
-
|
18
|
-
context 'create' #do
|
19
|
-
# create(entity)
|
20
|
-
# end
|
21
|
-
|
22
|
-
context 'deploy' #do
|
23
|
-
# deploy(location)
|
24
|
-
# end
|
25
|
-
|
26
|
-
context 'deploy_ovf' #do
|
27
|
-
# deploy_ovf(descriptor)
|
28
|
-
# end
|
29
|
-
|
30
|
-
context 'deploy_ova' #do
|
31
|
-
# deploy_ova(descriptor)
|
32
|
-
# end
|
33
|
-
|
34
|
-
context 'delete' #do
|
35
|
-
# delete(resource_type_identifier)
|
36
|
-
# end
|
37
|
-
|
38
|
-
context 'trigger' #do
|
39
|
-
# trigger(resource_type_identifier, action_instance)
|
40
|
-
# end
|
41
|
-
|
42
|
-
context 'refresh' #do
|
43
|
-
# refresh
|
44
|
-
# end
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|