occi 3.1.0.beta.1 → 3.1.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +3 -2
  3. data/README.md +25 -18
  4. data/Rakefile +1 -1
  5. data/features/cassettes/Create_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +102 -0
  6. data/features/cassettes/Delete_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +102 -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 +160 -0
  8. data/features/cassettes/Discovery_Interface/Retrieving_all_OCCI_Categories_supported_by_the_OCCI_Server/_http_http___141_5_99_69__text_plain_200_.yml +204 -0
  9. 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 +102 -0
  10. data/features/cassettes/Miscellaneous_operation_on_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +102 -0
  11. data/features/cassettes/Read_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +102 -0
  12. data/features/cassettes/Update_an_OCCI_Resource/_http_http___141_5_99_69__text_plain_201_.yml +102 -0
  13. data/lib/occi/api/client/client_http.rb +70 -3
  14. data/lib/occi/bin/resource_output_factory.rb +8 -1
  15. data/lib/occi/bin/templates/compute.erb +18 -22
  16. data/lib/occi/bin/templates/network.erb +9 -11
  17. data/lib/occi/bin/templates/os_tpl.erb +7 -9
  18. data/lib/occi/bin/templates/resource_tpl.erb +7 -9
  19. data/lib/occi/bin/templates/storage.erb +8 -10
  20. data/lib/occi/version.rb +1 -1
  21. data/occi.gemspec +1 -2
  22. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_compute_resource.yml +44 -0
  23. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_network_resource.yml +44 -0
  24. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_storage_resource.yml +44 -0
  25. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_compute_resource.yml +44 -0
  26. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_network_resource.yml +44 -0
  27. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deletes_a_storage_resource.yml +44 -0
  28. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/deploys_an_instance_based_on_OVF_OVA_file.yml +44 -0
  29. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_all_available_mixins.yml +44 -0
  30. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_compute_resources.yml +44 -0
  31. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_network_resources.yml +44 -0
  32. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_os_tpl_mixins.yml +44 -0
  33. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_resource_tpl_mixins.yml +44 -0
  34. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/describes_storage_resources.yml +44 -0
  35. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/establishes_connection.yml +44 -0
  36. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_identifier.yml +44 -0
  37. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_compute_resource_using_type_name.yml +44 -0
  38. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_identifier.yml +44 -0
  39. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_network_resource_using_type_name.yml +44 -0
  40. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_identifier.yml +44 -0
  41. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/instantiates_a_storage_resource_using_type_name.yml +44 -0
  42. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_type_identifiers.yml +44 -0
  43. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_entity_types.yml +44 -0
  44. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_type_identifiers.yml +44 -0
  45. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_link_types.yml +44 -0
  46. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_type_identifiers.yml +44 -0
  47. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixin_types.yml +44 -0
  48. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_mixins.yml +44 -0
  49. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_type_identifiers.yml +44 -0
  50. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_all_available_resource_types.yml +44 -0
  51. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_compute_resources.yml +44 -0
  52. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_network_resources.yml +44 -0
  53. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_os_tpl_mixins.yml +44 -0
  54. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_resource_tpl_mixins.yml +44 -0
  55. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/lists_storage_resources.yml +44 -0
  56. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/refreshes_its_model.yml +88 -0
  57. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_compute_resource.yml +44 -0
  58. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_network_resource.yml +44 -0
  59. data/spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/triggers_an_action_on_a_storage_resource.yml +44 -0
  60. data/spec/occi/api/client/client_http_spec.rb +1 -1
  61. metadata +7 -24
  62. data/Gemfile.lock +0 -126
@@ -1,5 +1,49 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: head
5
+ uri: https://localhost:3300/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/plain,text/occi;q=0.2
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Thu, 10 Jan 2013 17:44:39 GMT
19
+ Server:
20
+ - Apache/2.2.20 (Ubuntu)
21
+ X-Powered-By:
22
+ - Phusion Passenger (mod_rails/mod_rack) 3.0.12
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
+ - GRIDHTTP_PASSCODE=ec9b4b21351052e5aPTUJs; domain=localhost; path=/;
31
+ secure
32
+ - rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFZTIyZmM5ZmI2OTliY2JiZWQyMjYz%0AN2IyNTQ3NjMyMDkxYTFkNWVhOGIwYjVkYTNhYTllMTYyYjdkZTZiMzhkY0ki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZGEzOWEz%0AZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOUkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGEz%0AOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2MDE4OTBhZmQ4MDcwOQ%3D%3D%0A--24c9906d0e0c02c6976b065151f161a7e299022a;
33
+ path=/; HttpOnly
34
+ Content-Length:
35
+ - '294'
36
+ Status:
37
+ - '200'
38
+ Vary:
39
+ - Accept-Encoding
40
+ Content-Type:
41
+ - text/plain;charset=utf-8
42
+ body:
43
+ encoding: US-ASCII
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Thu, 10 Jan 2013 17:44:39 GMT
3
47
  - request:
4
48
  method: head
5
49
  uri: https://localhost:3300/
@@ -22,7 +22,7 @@ module Occi
22
22
  end
23
23
 
24
24
  after(:each) do
25
- @client.logger.close
25
+ @client.logger.close if @client && @client.logger
26
26
  end
27
27
 
28
28
  it "establishes connection" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.beta.1
4
+ version: 3.1.0.beta.3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-03-01 00:00:00.000000000 Z
14
+ date: 2013-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
@@ -317,38 +317,22 @@ dependencies:
317
317
  - - ! '>='
318
318
  - !ruby/object:Gem::Version
319
319
  version: '0'
320
- - !ruby/object:Gem::Dependency
321
- name: rubygems-tasks
322
- requirement: !ruby/object:Gem::Requirement
323
- none: false
324
- requirements:
325
- - - ! '>='
326
- - !ruby/object:Gem::Version
327
- version: '0'
328
- type: :development
329
- prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- none: false
332
- requirements:
333
- - - ! '>='
334
- - !ruby/object:Gem::Version
335
- version: '0'
336
320
  - !ruby/object:Gem::Dependency
337
321
  name: webmock
338
322
  requirement: !ruby/object:Gem::Requirement
339
323
  none: false
340
324
  requirements:
341
- - - ! '>='
325
+ - - ~>
342
326
  - !ruby/object:Gem::Version
343
- version: '0'
327
+ version: 1.9.3
344
328
  type: :development
345
329
  prerelease: false
346
330
  version_requirements: !ruby/object:Gem::Requirement
347
331
  none: false
348
332
  requirements:
349
- - - ! '>='
333
+ - - ~>
350
334
  - !ruby/object:Gem::Version
351
- version: '0'
335
+ version: 1.9.3
352
336
  description: OCCI is a collection of classes to simplify the implementation of the
353
337
  Open Cloud Computing API in Ruby
354
338
  email:
@@ -367,7 +351,6 @@ files:
367
351
  - .yardopts
368
352
  - AUTHORS
369
353
  - Gemfile
370
- - Gemfile.lock
371
354
  - LICENSE
372
355
  - README.md
373
356
  - Rakefile
@@ -542,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
542
525
  version: 1.3.1
543
526
  requirements: []
544
527
  rubyforge_project:
545
- rubygems_version: 1.8.24
528
+ rubygems_version: 1.8.25
546
529
  signing_key:
547
530
  specification_version: 3
548
531
  summary: OCCI toolkit
@@ -1,126 +0,0 @@
1
- GIT
2
- remote: git://github.com/arax/vcr.git
3
- revision: e82e843ceddd8822acea59846b015bcabf1906df
4
- branch: test_framework_patches
5
- specs:
6
- vcr (2.4.0)
7
-
8
- GIT
9
- remote: git://github.com/jruby/warbler.git
10
- revision: ce3ce4df137504822e4cbb9399dee7e7dd767c44
11
- specs:
12
- warbler (1.3.7.dev)
13
- jruby-jars (>= 1.5.6)
14
- jruby-rack (>= 1.0.0)
15
- rake (>= 0.9.6)
16
- rubyzip (>= 0.9.8)
17
-
18
- PATH
19
- remote: .
20
- specs:
21
- occi (3.1.0.beta.1)
22
- activesupport
23
- amqp
24
- antlr3
25
- hashie
26
- highline
27
- httparty
28
- i18n
29
- json
30
- nokogiri
31
- uuidtools (>= 2.1.3)
32
-
33
- GEM
34
- remote: https://rubygems.org/
35
- specs:
36
- activesupport (3.2.12)
37
- i18n (~> 0.6)
38
- multi_json (~> 1.0)
39
- addressable (2.3.3)
40
- amq-client (0.9.12)
41
- amq-protocol (>= 1.2.0)
42
- eventmachine
43
- amq-protocol (1.2.0)
44
- amqp (0.9.9)
45
- amq-client (~> 0.9.12)
46
- amq-protocol (~> 1.2.0)
47
- eventmachine
48
- antlr3 (1.8.12)
49
- builder (3.1.4)
50
- crack (0.3.2)
51
- cucumber (1.2.1)
52
- builder (>= 2.1.2)
53
- diff-lcs (>= 1.1.3)
54
- gherkin (~> 2.11.0)
55
- json (>= 1.4.6)
56
- diff-lcs (1.1.3)
57
- eventmachine (1.0.0)
58
- eventmachine (1.0.0-java)
59
- gherkin (2.11.6)
60
- json (>= 1.7.6)
61
- gherkin (2.11.6-java)
62
- json (>= 1.7.6)
63
- hashie (2.0.2)
64
- highline (1.6.15)
65
- httparty (0.10.2)
66
- multi_json (~> 1.0)
67
- multi_xml (>= 0.5.2)
68
- i18n (0.6.1)
69
- jruby-jars (1.7.3)
70
- jruby-rack (1.1.13.1)
71
- json (1.7.7)
72
- json (1.7.7-java)
73
- multi_json (1.6.1)
74
- multi_xml (0.5.3)
75
- nokogiri (1.5.6)
76
- nokogiri (1.5.6-java)
77
- rake (10.0.3)
78
- rspec (2.12.0)
79
- rspec-core (~> 2.12.0)
80
- rspec-expectations (~> 2.12.0)
81
- rspec-mocks (~> 2.12.0)
82
- rspec-core (2.12.2)
83
- rspec-expectations (2.12.1)
84
- diff-lcs (~> 1.1.3)
85
- rspec-http (0.10.0)
86
- rspec (~> 2.0)
87
- rspec-mocks (2.12.2)
88
- rubygems-tasks (0.2.3)
89
- rubyzip (0.9.9)
90
- simplecov (0.7.1)
91
- multi_json (~> 1.0)
92
- simplecov-html (~> 0.7.1)
93
- simplecov-html (0.7.1)
94
- uuidtools (2.1.3)
95
- webmock (1.9.3)
96
- addressable (>= 2.2.7)
97
- crack (>= 0.3.2)
98
- yard (0.8.4.1)
99
- yard-cucumber (2.2.3)
100
- cucumber (>= 0.7.5)
101
- gherkin (>= 2.2.9)
102
- yard (>= 0.8.1)
103
- yard-rspec (0.1)
104
- yard
105
- yard-sinatra (1.0.0)
106
- yard (~> 0.7)
107
-
108
- PLATFORMS
109
- java
110
- ruby
111
-
112
- DEPENDENCIES
113
- builder
114
- occi!
115
- rake
116
- rspec
117
- rspec-http
118
- rubygems-tasks
119
- simplecov
120
- vcr!
121
- warbler!
122
- webmock
123
- yard
124
- yard-cucumber
125
- yard-rspec
126
- yard-sinatra