occi 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "hugs", "~> 2.1.0"
3
+ gem "hugs", "~> 2.2.0"
4
4
  #gem "hugs", :path => "~/git/hugs"
5
5
  gem "multipart-post", "~> 1.0.1"
6
6
  gem "nokogiri", "~> 1.4.4"
@@ -4,7 +4,7 @@ GEM
4
4
  addressable (2.2.2)
5
5
  crack (0.1.8)
6
6
  git (1.2.5)
7
- hugs (2.1.0)
7
+ hugs (2.2.0)
8
8
  multipart-post (~> 1.0.1)
9
9
  net-http-persistent (~> 1.4.1)
10
10
  nokogiri (~> 1.4.4)
@@ -28,7 +28,7 @@ PLATFORMS
28
28
  ruby
29
29
 
30
30
  DEPENDENCIES
31
- hugs (~> 2.1.0)
31
+ hugs (~> 2.2.0)
32
32
  jeweler (~> 1.5.1)
33
33
  minitest (~> 2.0.0)
34
34
  multipart-post (~> 1.0.1)
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # OCCI
2
2
 
3
- [Ruby](http://www.ruby-lang.org/) bindings to [OpenNebula's](http://opennebula.org) [Open Cloud Computing Interface (OCCI)](http://www.opennebula.org/documentation:rel2.0:occidd).
3
+ [Ruby](http://www.ruby-lang.org/) bindings to [Open Cloud Computing Interface (OCCI)](http://www.opennebula.org/documentation:rel2.0:occidd).
4
+
5
+ Integrated against [OpenNebula](http://opennebula.org) 2.0.1.
4
6
 
5
7
  ## Usage
6
8
 
@@ -12,12 +14,22 @@
12
14
 
13
15
  See the examples section in the [wiki](http://github.com/retr0h/occi/wiki).
14
16
 
17
+ ## Compatability
18
+
19
+ ruby 1.9.2p0
20
+
21
+ OCCI API|OCCI Rubygem|OpenNebula
22
+ --------|------------|----------
23
+ 5 |1.0.1 |2.0.1
24
+
15
25
  ## Testing
16
26
 
17
27
  MiniTest will run the tests in a random order. When rebuilding the fixtures, the entity
18
28
  tests depend on the pool tests having already been run. Since the fixtures change infrequently,
19
29
  this should be acceptable.
20
30
 
31
+ Tests can run offline thanks to [VCR](https://github.com/myronmarston/vcr).
32
+
21
33
  $ export ONE_USER=$user
22
34
  $ export ONE_PASSWORD=$password
23
35
 
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ end
18
18
  require "rake/testtask"
19
19
  Rake::TestTask.new(:test) do |test|
20
20
  test.libs << "lib" << "test"
21
- test.pattern = "test/**/test_*.rb"
21
+ test.pattern = "test/**/*_test.rb"
22
22
  test.verbose = true
23
23
  end
24
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -18,7 +18,7 @@ module Occi
18
18
  # +host+: A String with the host to connect.
19
19
 
20
20
  def initialize options
21
- @connection = Hugs.new(
21
+ @connection = Hugs::Client.new(
22
22
  :user => options[:user],
23
23
  :password => Digest::SHA1.hexdigest(options[:password]),
24
24
  :host => options[:host],
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{occi}
8
- s.version = "1.0.1"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["retr0h"]
12
- s.date = %q{2010-12-23}
12
+ s.date = %q{2011-01-04}
13
13
  s.email = %q{john@dewey.ws}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -41,18 +41,18 @@ Gem::Specification.new do |s|
41
41
  "test/fixtures/cassettes/storage_get.yml",
42
42
  "test/fixtures/cassettes/storages_get.yml",
43
43
  "test/fixtures/cassettes/storages_post.yml",
44
- "test/lib/occi/test_entity.rb",
45
- "test/lib/occi/test_pool.rb",
46
- "test/support.rb"
44
+ "test/lib/occi/entity_test.rb",
45
+ "test/lib/occi/pool_test.rb",
46
+ "test/test_helper.rb"
47
47
  ]
48
48
  s.homepage = %q{http://github.com/retr0h/occi}
49
49
  s.require_paths = ["lib"]
50
50
  s.rubygems_version = %q{1.3.7}
51
51
  s.summary = %q{Ruby bindings to Open Cloud Computing Interface (OCCI).}
52
52
  s.test_files = [
53
- "test/lib/occi/test_entity.rb",
54
- "test/lib/occi/test_pool.rb",
55
- "test/support.rb"
53
+ "test/lib/occi/entity_test.rb",
54
+ "test/lib/occi/pool_test.rb",
55
+ "test/test_helper.rb"
56
56
  ]
57
57
 
58
58
  if s.respond_to? :specification_version then
@@ -60,7 +60,7 @@ Gem::Specification.new do |s|
60
60
  s.specification_version = 3
61
61
 
62
62
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
- s.add_runtime_dependency(%q<hugs>, ["~> 2.1.0"])
63
+ s.add_runtime_dependency(%q<hugs>, ["~> 2.2.0"])
64
64
  s.add_runtime_dependency(%q<multipart-post>, ["~> 1.0.1"])
65
65
  s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.4"])
66
66
  s.add_development_dependency(%q<rake>, [">= 0"])
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  s.add_development_dependency(%q<vcr>, ["~> 1.4.0"])
70
70
  s.add_development_dependency(%q<minitest>, ["~> 2.0.0"])
71
71
  else
72
- s.add_dependency(%q<hugs>, ["~> 2.1.0"])
72
+ s.add_dependency(%q<hugs>, ["~> 2.2.0"])
73
73
  s.add_dependency(%q<multipart-post>, ["~> 1.0.1"])
74
74
  s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
75
75
  s.add_dependency(%q<rake>, [">= 0"])
@@ -79,7 +79,7 @@ Gem::Specification.new do |s|
79
79
  s.add_dependency(%q<minitest>, ["~> 2.0.0"])
80
80
  end
81
81
  else
82
- s.add_dependency(%q<hugs>, ["~> 2.1.0"])
82
+ s.add_dependency(%q<hugs>, ["~> 2.2.0"])
83
83
  s.add_dependency(%q<multipart-post>, ["~> 1.0.1"])
84
84
  s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
85
85
  s.add_dependency(%q<rake>, [">= 0"])
@@ -20,3 +20,24 @@
20
20
  - thin 1.2.7 codename No Hup
21
21
  body:
22
22
  http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :delete
26
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/143
27
+ body:
28
+ headers:
29
+ accept:
30
+ - application/xml
31
+ connection:
32
+ - keep-alive
33
+ keep-alive:
34
+ - 30
35
+ response: !ruby/struct:VCR::Response
36
+ status: !ruby/struct:VCR::ResponseStatus
37
+ code: 204
38
+ message: No Content
39
+ headers:
40
+ server:
41
+ - thin 1.2.7 codename No Hup
42
+ body:
43
+ http_version: "1.1"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/130
5
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/135
6
6
  body:
7
7
  headers:
8
8
  accept:
@@ -19,17 +19,17 @@
19
19
  content-type:
20
20
  - text/html;charset=utf-8
21
21
  content-length:
22
- - "714"
22
+ - "712"
23
23
  connection:
24
24
  - keep-alive
25
25
  server:
26
26
  - thin 1.2.7 codename No Hup
27
- body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/130"><ID>130</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>ACTIVE</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.23</IP><MAC>02:00:0a:03:ac:17</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:17</HOSTNAME><IP_PUBLIC>10.3.172.23</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
27
+ body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/135"><ID>135</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>DONE</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.25</IP><MAC>02:00:0a:03:ac:19</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:19</HOSTNAME><IP_PUBLIC>10.3.172.25</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
28
28
  http_version: "1.1"
29
29
  - !ruby/struct:VCR::HTTPInteraction
30
30
  request: !ruby/struct:VCR::Request
31
31
  method: :get
32
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/131
32
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/143
33
33
  body:
34
34
  headers:
35
35
  accept:
@@ -51,59 +51,5 @@
51
51
  - keep-alive
52
52
  server:
53
53
  - thin 1.2.7 codename No Hup
54
- body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/131"><ID>131</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>PENDING</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.24</IP><MAC>02:00:0a:03:ac:18</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:18</HOSTNAME><IP_PUBLIC>10.3.172.24</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
55
- http_version: "1.1"
56
- - !ruby/struct:VCR::HTTPInteraction
57
- request: !ruby/struct:VCR::Request
58
- method: :get
59
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/1
60
- body:
61
- headers:
62
- accept:
63
- - application/xml
64
- connection:
65
- - keep-alive
66
- keep-alive:
67
- - 30
68
- response: !ruby/struct:VCR::Response
69
- status: !ruby/struct:VCR::ResponseStatus
70
- code: 200
71
- message: OK
72
- headers:
73
- content-type:
74
- - text/html;charset=utf-8
75
- content-length:
76
- - "136"
77
- connection:
78
- - keep-alive
79
- server:
80
- - thin 1.2.7 codename No Hup
81
- body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/1"><ID>1</ID><NAME>Centos 5.4 x86_64</NAME><STATE>DONE</STATE></COMPUTE>
82
- http_version: "1.1"
83
- - !ruby/struct:VCR::HTTPInteraction
84
- request: !ruby/struct:VCR::Request
85
- method: :get
86
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/135
87
- body:
88
- headers:
89
- accept:
90
- - application/xml
91
- connection:
92
- - keep-alive
93
- keep-alive:
94
- - 30
95
- response: !ruby/struct:VCR::Response
96
- status: !ruby/struct:VCR::ResponseStatus
97
- code: 200
98
- message: OK
99
- headers:
100
- content-type:
101
- - text/html;charset=utf-8
102
- content-length:
103
- - "714"
104
- connection:
105
- - keep-alive
106
- server:
107
- - thin 1.2.7 codename No Hup
108
- body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/135"><ID>135</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>ACTIVE</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.25</IP><MAC>02:00:0a:03:ac:19</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:19</HOSTNAME><IP_PUBLIC>10.3.172.25</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
54
+ body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/143"><ID>143</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>PENDING</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.33</IP><MAC>02:00:0a:03:ac:21</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:21</HOSTNAME><IP_PUBLIC>10.3.172.33</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
109
55
  http_version: "1.1"
@@ -41,5 +41,5 @@
41
41
  - keep-alive
42
42
  server:
43
43
  - thin 1.2.7 codename No Hup
44
- body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/135"><ID>135</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>PENDING</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.25</IP><MAC>02:00:0a:03:ac:19</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:19</HOSTNAME><IP_PUBLIC>10.3.172.25</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
44
+ body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/143"><ID>143</ID><NAME>Test Framework</NAME><INSTANCE_TYPE>small</INSTANCE_TYPE><STATE>PENDING</STATE><DISK><STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/11" name="Centos 5.4 x86_64"/><TYPE>DISK</TYPE><TARGET>hda</TARGET></DISK><NIC><NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/14" name="10.3.172.0"/><IP>10.3.172.33</IP><MAC>02:00:0a:03:ac:21</MAC></NIC><CONTEXT><FILES>/opt/tpkg/opennebula-2.0/../var/opennebula-2.0/templates/context/init.sh</FILES><GATEWAY>10.3.172.1</GATEWAY><HOSTNAME>02:00:0a:03:ac:21</HOSTNAME><IP_PUBLIC>10.3.172.33</IP_PUBLIC><NETMASK>/23</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
45
45
  http_version: "1.1"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :delete
5
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/19
5
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/21
6
6
  body:
7
7
  headers:
8
8
  accept:
@@ -2,61 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/17
6
- body:
7
- headers:
8
- accept:
9
- - application/xml
10
- connection:
11
- - keep-alive
12
- keep-alive:
13
- - 30
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - text/html;charset=utf-8
21
- content-length:
22
- - "162"
23
- connection:
24
- - keep-alive
25
- server:
26
- - thin 1.2.7 codename No Hup
27
- body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/17"><ID>17</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
28
- http_version: "1.1"
29
- - !ruby/struct:VCR::HTTPInteraction
30
- request: !ruby/struct:VCR::Request
31
- method: :get
32
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/18
33
- body:
34
- headers:
35
- accept:
36
- - application/xml
37
- connection:
38
- - keep-alive
39
- keep-alive:
40
- - 30
41
- response: !ruby/struct:VCR::Response
42
- status: !ruby/struct:VCR::ResponseStatus
43
- code: 200
44
- message: OK
45
- headers:
46
- content-type:
47
- - text/html;charset=utf-8
48
- content-length:
49
- - "162"
50
- connection:
51
- - keep-alive
52
- server:
53
- - thin 1.2.7 codename No Hup
54
- body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/18"><ID>18</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
55
- http_version: "1.1"
56
- - !ruby/struct:VCR::HTTPInteraction
57
- request: !ruby/struct:VCR::Request
58
- method: :get
59
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/3
5
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/19
60
6
  body:
61
7
  headers:
62
8
  accept:
@@ -73,17 +19,17 @@
73
19
  content-type:
74
20
  - text/html;charset=utf-8
75
21
  content-length:
76
- - "43"
22
+ - "44"
77
23
  connection:
78
24
  - keep-alive
79
25
  server:
80
26
  - thin 1.2.7 codename No Hup
81
- body: "[VirtualNetworkInfo] Error getting NET [3]."
27
+ body: "[VirtualNetworkInfo] Error getting NET [19]."
82
28
  http_version: "1.1"
83
29
  - !ruby/struct:VCR::HTTPInteraction
84
30
  request: !ruby/struct:VCR::Request
85
31
  method: :get
86
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/19
32
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/21
87
33
  body:
88
34
  headers:
89
35
  accept:
@@ -105,5 +51,5 @@
105
51
  - keep-alive
106
52
  server:
107
53
  - thin 1.2.7 codename No Hup
108
- body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/19"><ID>19</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
54
+ body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/21"><ID>21</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
109
55
  http_version: "1.1"
@@ -33,5 +33,5 @@
33
33
  - keep-alive
34
34
  server:
35
35
  - thin 1.2.7 codename No Hup
36
- body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/19"><ID>19</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
36
+ body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/21"><ID>21</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
37
37
  http_version: "1.1"
@@ -20,3 +20,24 @@
20
20
  - thin 1.2.7 codename No Hup
21
21
  body:
22
22
  http_version: "1.1"
23
+ - !ruby/struct:VCR::HTTPInteraction
24
+ request: !ruby/struct:VCR::Request
25
+ method: :delete
26
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/30
27
+ body:
28
+ headers:
29
+ accept:
30
+ - application/xml
31
+ connection:
32
+ - keep-alive
33
+ keep-alive:
34
+ - 30
35
+ response: !ruby/struct:VCR::Response
36
+ status: !ruby/struct:VCR::ResponseStatus
37
+ code: 204
38
+ message: No Content
39
+ headers:
40
+ server:
41
+ - thin 1.2.7 codename No Hup
42
+ body:
43
+ http_version: "1.1"
@@ -2,61 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/19
6
- body:
7
- headers:
8
- accept:
9
- - application/xml
10
- connection:
11
- - keep-alive
12
- keep-alive:
13
- - 30
14
- response: !ruby/struct:VCR::Response
15
- status: !ruby/struct:VCR::ResponseStatus
16
- code: 200
17
- message: OK
18
- headers:
19
- content-type:
20
- - text/html;charset=utf-8
21
- content-length:
22
- - "193"
23
- connection:
24
- - keep-alive
25
- server:
26
- - thin 1.2.7 codename No Hup
27
- body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/19"><ID>19</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
28
- http_version: "1.1"
29
- - !ruby/struct:VCR::HTTPInteraction
30
- request: !ruby/struct:VCR::Request
31
- method: :get
32
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/20
33
- body:
34
- headers:
35
- accept:
36
- - application/xml
37
- connection:
38
- - keep-alive
39
- keep-alive:
40
- - 30
41
- response: !ruby/struct:VCR::Response
42
- status: !ruby/struct:VCR::ResponseStatus
43
- code: 200
44
- message: OK
45
- headers:
46
- content-type:
47
- - text/html;charset=utf-8
48
- content-length:
49
- - "193"
50
- connection:
51
- - keep-alive
52
- server:
53
- - thin 1.2.7 codename No Hup
54
- body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/20"><ID>20</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
55
- http_version: "1.1"
56
- - !ruby/struct:VCR::HTTPInteraction
57
- request: !ruby/struct:VCR::Request
58
- method: :get
59
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/4
5
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/23
60
6
  body:
61
7
  headers:
62
8
  accept:
@@ -73,17 +19,17 @@
73
19
  content-type:
74
20
  - text/html;charset=utf-8
75
21
  content-length:
76
- - "36"
22
+ - "37"
77
23
  connection:
78
24
  - keep-alive
79
25
  server:
80
26
  - thin 1.2.7 codename No Hup
81
- body: "[ImageInfo] Error getting IMAGE [4]."
27
+ body: "[ImageInfo] Error getting IMAGE [23]."
82
28
  http_version: "1.1"
83
29
  - !ruby/struct:VCR::HTTPInteraction
84
30
  request: !ruby/struct:VCR::Request
85
31
  method: :get
86
- uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/23
32
+ uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/storage/30
87
33
  body:
88
34
  headers:
89
35
  accept:
@@ -105,5 +51,5 @@
105
51
  - keep-alive
106
52
  server:
107
53
  - thin 1.2.7 codename No Hup
108
- body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/23"><ID>23</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
54
+ body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/30"><ID>30</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
109
55
  http_version: "1.1"
@@ -46,5 +46,5 @@
46
46
  - keep-alive
47
47
  server:
48
48
  - thin 1.2.7 codename No Hup
49
- body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/23"><ID>23</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
49
+ body: <STORAGE href="http://cm-01.cloud.int.ev1.atti.com:4567/storage/30"><ID>30</ID><NAME>Test Framework</NAME><TYPE>OS</TYPE><DESCRIPTION>Test Framework Image.</DESCRIPTION><SIZE>0</SIZE></STORAGE>
50
50
  http_version: "1.1"
@@ -1,4 +1,4 @@
1
- require "support"
1
+ require "test_helper"
2
2
 
3
3
  describe Occi::Entity do
4
4
  Magic_Ids = [
@@ -1,4 +1,4 @@
1
- require "support"
1
+ require "test_helper"
2
2
 
3
3
  describe Occi::Pool do
4
4
  Occi::Pool::Gets.each do |method|
File without changes
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 0
8
7
  - 1
9
- version: 1.0.1
8
+ - 0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - retr0h
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-23 00:00:00 -08:00
17
+ date: 2011-01-04 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -26,9 +26,9 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  segments:
28
28
  - 2
29
- - 1
29
+ - 2
30
30
  - 0
31
- version: 2.1.0
31
+ version: 2.2.0
32
32
  type: :runtime
33
33
  prerelease: false
34
34
  version_requirements: *id001
@@ -170,9 +170,9 @@ files:
170
170
  - test/fixtures/cassettes/storage_get.yml
171
171
  - test/fixtures/cassettes/storages_get.yml
172
172
  - test/fixtures/cassettes/storages_post.yml
173
- - test/lib/occi/test_entity.rb
174
- - test/lib/occi/test_pool.rb
175
- - test/support.rb
173
+ - test/lib/occi/entity_test.rb
174
+ - test/lib/occi/pool_test.rb
175
+ - test/test_helper.rb
176
176
  has_rdoc: true
177
177
  homepage: http://github.com/retr0h/occi
178
178
  licenses: []
@@ -206,6 +206,6 @@ signing_key:
206
206
  specification_version: 3
207
207
  summary: Ruby bindings to Open Cloud Computing Interface (OCCI).
208
208
  test_files:
209
- - test/lib/occi/test_entity.rb
210
- - test/lib/occi/test_pool.rb
211
- - test/support.rb
209
+ - test/lib/occi/entity_test.rb
210
+ - test/lib/occi/pool_test.rb
211
+ - test/test_helper.rb