occi 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +21 -0
- data/Gemfile +2 -1
- data/Gemfile.lock +4 -2
- data/README.md +1 -5
- data/VERSION +1 -1
- data/lib/occi/client.rb +13 -12
- data/lib/occi/compute.rb +4 -0
- data/lib/occi/network.rb +4 -0
- data/lib/occi/resource.rb +59 -0
- data/lib/occi/storage.rb +7 -0
- data/occi.gemspec +25 -18
- data/test/fixtures/cassettes/{computes_post.yml → compute_create.yml} +2 -2
- data/test/fixtures/cassettes/compute_delete.yml +1 -22
- data/test/fixtures/cassettes/compute_find.yml +28 -0
- data/test/fixtures/cassettes/{compute_put.yml → compute_update.yml} +3 -3
- data/test/fixtures/cassettes/{networks_get.yml → network_all.yml} +2 -2
- data/test/fixtures/cassettes/{networks_post.yml → network_create.yml} +1 -1
- data/test/fixtures/cassettes/network_delete.yml +1 -1
- data/test/fixtures/cassettes/{computes_get.yml → network_find.yml} +3 -3
- data/test/fixtures/cassettes/{storages_get.yml → storage_all.yml} +3 -3
- data/test/fixtures/cassettes/{storages_post.yml → storage_create.yml} +1 -1
- data/test/fixtures/cassettes/storage_delete.yml +1 -22
- data/test/fixtures/cassettes/storage_find.yml +28 -0
- data/test/lib/occi/compute_test.rb +91 -0
- data/test/lib/occi/network_test.rb +57 -0
- data/test/lib/occi/storage_test.rb +67 -0
- data/test/test_helper.rb +3 -2
- metadata +38 -19
- data/lib/occi/entity.rb +0 -63
- data/lib/occi/pool.rb +0 -52
- data/test/fixtures/cassettes/compute_get.yml +0 -55
- data/test/fixtures/cassettes/network_get.yml +0 -55
- data/test/fixtures/cassettes/storage_get.yml +0 -55
- data/test/lib/occi/entity_test.rb +0 -54
- data/test/lib/occi/pool_test.rb +0 -99
data/.autotest
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Autotest.add_hook(:initialize) do |at|
|
2
|
+
at.testlib = 'minitest/spec'
|
3
|
+
%w{.git .svn .hg .swp .DS_Store ._* tmp}.each do |exception|
|
4
|
+
at.add_exception(exception)
|
5
|
+
end
|
6
|
+
|
7
|
+
at.clear_mappings
|
8
|
+
tests = %r%^test/lib/.*_test\.rb$%
|
9
|
+
|
10
|
+
at.add_mapping(%r%^lib/(.*)\.rb$%) do |_, m|
|
11
|
+
["test/lib/#{m[1]}_test.rb"]
|
12
|
+
end
|
13
|
+
|
14
|
+
at.add_mapping(tests) do |filename, _|
|
15
|
+
filename
|
16
|
+
end
|
17
|
+
|
18
|
+
at.add_mapping(%r%^test/.*\.rb$%) do
|
19
|
+
at.files_matching tests
|
20
|
+
end
|
21
|
+
end
|
data/Gemfile
CHANGED
@@ -5,10 +5,11 @@ gem "hugs", "~> 2.2.0"
|
|
5
5
|
gem "multipart-post", "~> 1.0.1"
|
6
6
|
gem "nokogiri", "~> 1.4.4"
|
7
7
|
|
8
|
-
group :development do
|
8
|
+
group :development, :test do
|
9
9
|
gem "rake"
|
10
10
|
gem "jeweler", "~> 1.5.1"
|
11
11
|
gem "webmock", "~> 1.6.1"
|
12
12
|
gem "vcr", "~> 1.4.0"
|
13
13
|
gem "minitest", "~> 2.0.0"
|
14
|
+
gem "ZenTest", "~> 4.4.2"
|
14
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
+
ZenTest (4.4.2)
|
4
5
|
addressable (2.2.2)
|
5
6
|
crack (0.1.8)
|
6
7
|
git (1.2.5)
|
@@ -9,11 +10,11 @@ GEM
|
|
9
10
|
net-http-persistent (~> 1.4.1)
|
10
11
|
nokogiri (~> 1.4.4)
|
11
12
|
yajl-ruby (~> 0.7.8)
|
12
|
-
jeweler (1.5.
|
13
|
+
jeweler (1.5.2)
|
13
14
|
bundler (~> 1.0.0)
|
14
15
|
git (>= 1.2.5)
|
15
16
|
rake
|
16
|
-
minitest (2.0.
|
17
|
+
minitest (2.0.2)
|
17
18
|
multipart-post (1.0.1)
|
18
19
|
net-http-persistent (1.4.1)
|
19
20
|
nokogiri (1.4.4)
|
@@ -28,6 +29,7 @@ PLATFORMS
|
|
28
29
|
ruby
|
29
30
|
|
30
31
|
DEPENDENCIES
|
32
|
+
ZenTest (~> 4.4.2)
|
31
33
|
hugs (~> 2.2.0)
|
32
34
|
jeweler (~> 1.5.1)
|
33
35
|
minitest (~> 2.0.0)
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/lib/occi/client.rb
CHANGED
@@ -1,16 +1,7 @@
|
|
1
|
-
require
|
2
|
-
require "digest/sha1"
|
1
|
+
%w(hugs digest/sha1 occi/resource occi/network occi/storage occi/compute).each { |r| require r }
|
3
2
|
|
4
3
|
module Occi
|
5
4
|
class Client
|
6
|
-
##
|
7
|
-
# Include endpoints.
|
8
|
-
|
9
|
-
%w(pool entity).each do |mixin|
|
10
|
-
require "occi/#{mixin}"
|
11
|
-
include eval "Occi::#{mixin.capitalize}"
|
12
|
-
end
|
13
|
-
|
14
5
|
##
|
15
6
|
# Required:
|
16
7
|
# +user+: A String containing the username for use in HTTP Basic auth.
|
@@ -26,10 +17,20 @@ module Occi
|
|
26
17
|
:port => options[:port] || 4567,
|
27
18
|
:type => options[:type] || :xml,
|
28
19
|
)
|
20
|
+
@connection.raise_4xx = true
|
21
|
+
@connection.raise_5xx = true
|
22
|
+
end
|
23
|
+
|
24
|
+
def network
|
25
|
+
@network ||= Occi::Network.new @connection
|
26
|
+
end
|
27
|
+
|
28
|
+
def storage
|
29
|
+
@storage ||= Occi::Storage.new @connection
|
29
30
|
end
|
30
31
|
|
31
|
-
def
|
32
|
-
@connection
|
32
|
+
def compute
|
33
|
+
@compute ||= Occi::Compute.new @connection
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
data/lib/occi/compute.rb
ADDED
data/lib/occi/network.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
module Occi
|
2
|
+
class Resource
|
3
|
+
def initialize connection
|
4
|
+
@connection = connection
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.inherited base
|
8
|
+
path = base.to_s.split('::').last.downcase
|
9
|
+
base.send(:define_method, :endpoint) do
|
10
|
+
"/#{path}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def entity id
|
15
|
+
"#{endpoint}/#{id}"
|
16
|
+
end
|
17
|
+
|
18
|
+
##
|
19
|
+
# Returns the contents of the pool.
|
20
|
+
# 200 OK: An XML representation of the pool in the http body.
|
21
|
+
|
22
|
+
def all
|
23
|
+
@connection.get endpoint
|
24
|
+
end
|
25
|
+
|
26
|
+
##
|
27
|
+
# Request for the creation of an ER. An XML representation of a
|
28
|
+
# VM without the ID element should be passed in the http body.
|
29
|
+
# 201 Created: An XML representation of a ER of type COMPUTE with the ID.
|
30
|
+
|
31
|
+
def create body
|
32
|
+
@connection.post endpoint, :body => body
|
33
|
+
end
|
34
|
+
|
35
|
+
##
|
36
|
+
# Update request for a Compute identified by +compute_id+.
|
37
|
+
# 202 Accepted : The update request is being process, polling required to confirm update.
|
38
|
+
|
39
|
+
def update id, body
|
40
|
+
@connection.put entity(id), :body => body
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Returns the representation of the Compute resource identified by +compute_id+.
|
45
|
+
# 200 OK: An XML representation of the pool in the http body.
|
46
|
+
|
47
|
+
def find id
|
48
|
+
@connection.get entity(id)
|
49
|
+
end
|
50
|
+
|
51
|
+
##
|
52
|
+
# Deletes the Compute resource identified by +compute_id+.
|
53
|
+
# 204 No Content : The Compute has been successfully deleted.
|
54
|
+
|
55
|
+
def delete id
|
56
|
+
@connection.delete entity(id)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/occi/storage.rb
ADDED
data/occi.gemspec
CHANGED
@@ -5,17 +5,18 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{occi}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.2.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{2011-01-
|
12
|
+
s.date = %q{2011-01-06}
|
13
13
|
s.email = %q{john@dewey.ws}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
16
16
|
"README.md"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
+
".autotest",
|
19
20
|
".rvmrc",
|
20
21
|
"Gemfile",
|
21
22
|
"Gemfile.lock",
|
@@ -25,24 +26,26 @@ Gem::Specification.new do |s|
|
|
25
26
|
"VERSION",
|
26
27
|
"lib/occi.rb",
|
27
28
|
"lib/occi/client.rb",
|
28
|
-
"lib/occi/
|
29
|
-
"lib/occi/
|
29
|
+
"lib/occi/compute.rb",
|
30
|
+
"lib/occi/network.rb",
|
31
|
+
"lib/occi/resource.rb",
|
32
|
+
"lib/occi/storage.rb",
|
30
33
|
"occi.gemspec",
|
34
|
+
"test/fixtures/cassettes/compute_create.yml",
|
31
35
|
"test/fixtures/cassettes/compute_delete.yml",
|
32
|
-
"test/fixtures/cassettes/
|
33
|
-
"test/fixtures/cassettes/
|
34
|
-
"test/fixtures/cassettes/
|
35
|
-
"test/fixtures/cassettes/
|
36
|
+
"test/fixtures/cassettes/compute_find.yml",
|
37
|
+
"test/fixtures/cassettes/compute_update.yml",
|
38
|
+
"test/fixtures/cassettes/network_all.yml",
|
39
|
+
"test/fixtures/cassettes/network_create.yml",
|
36
40
|
"test/fixtures/cassettes/network_delete.yml",
|
37
|
-
"test/fixtures/cassettes/
|
38
|
-
"test/fixtures/cassettes/
|
39
|
-
"test/fixtures/cassettes/
|
41
|
+
"test/fixtures/cassettes/network_find.yml",
|
42
|
+
"test/fixtures/cassettes/storage_all.yml",
|
43
|
+
"test/fixtures/cassettes/storage_create.yml",
|
40
44
|
"test/fixtures/cassettes/storage_delete.yml",
|
41
|
-
"test/fixtures/cassettes/
|
42
|
-
"test/
|
43
|
-
"test/
|
44
|
-
"test/lib/occi/
|
45
|
-
"test/lib/occi/pool_test.rb",
|
45
|
+
"test/fixtures/cassettes/storage_find.yml",
|
46
|
+
"test/lib/occi/compute_test.rb",
|
47
|
+
"test/lib/occi/network_test.rb",
|
48
|
+
"test/lib/occi/storage_test.rb",
|
46
49
|
"test/test_helper.rb"
|
47
50
|
]
|
48
51
|
s.homepage = %q{http://github.com/retr0h/occi}
|
@@ -50,8 +53,9 @@ Gem::Specification.new do |s|
|
|
50
53
|
s.rubygems_version = %q{1.3.7}
|
51
54
|
s.summary = %q{Ruby bindings to Open Cloud Computing Interface (OCCI).}
|
52
55
|
s.test_files = [
|
53
|
-
"test/lib/occi/
|
54
|
-
"test/lib/occi/
|
56
|
+
"test/lib/occi/compute_test.rb",
|
57
|
+
"test/lib/occi/network_test.rb",
|
58
|
+
"test/lib/occi/storage_test.rb",
|
55
59
|
"test/test_helper.rb"
|
56
60
|
]
|
57
61
|
|
@@ -68,6 +72,7 @@ Gem::Specification.new do |s|
|
|
68
72
|
s.add_development_dependency(%q<webmock>, ["~> 1.6.1"])
|
69
73
|
s.add_development_dependency(%q<vcr>, ["~> 1.4.0"])
|
70
74
|
s.add_development_dependency(%q<minitest>, ["~> 2.0.0"])
|
75
|
+
s.add_development_dependency(%q<ZenTest>, ["~> 4.4.2"])
|
71
76
|
else
|
72
77
|
s.add_dependency(%q<hugs>, ["~> 2.2.0"])
|
73
78
|
s.add_dependency(%q<multipart-post>, ["~> 1.0.1"])
|
@@ -77,6 +82,7 @@ Gem::Specification.new do |s|
|
|
77
82
|
s.add_dependency(%q<webmock>, ["~> 1.6.1"])
|
78
83
|
s.add_dependency(%q<vcr>, ["~> 1.4.0"])
|
79
84
|
s.add_dependency(%q<minitest>, ["~> 2.0.0"])
|
85
|
+
s.add_dependency(%q<ZenTest>, ["~> 4.4.2"])
|
80
86
|
end
|
81
87
|
else
|
82
88
|
s.add_dependency(%q<hugs>, ["~> 2.2.0"])
|
@@ -87,6 +93,7 @@ Gem::Specification.new do |s|
|
|
87
93
|
s.add_dependency(%q<webmock>, ["~> 1.6.1"])
|
88
94
|
s.add_dependency(%q<vcr>, ["~> 1.4.0"])
|
89
95
|
s.add_dependency(%q<minitest>, ["~> 2.0.0"])
|
96
|
+
s.add_dependency(%q<ZenTest>, ["~> 4.4.2"])
|
90
97
|
end
|
91
98
|
end
|
92
99
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<STORAGE href="http://www.opennebula.org/storage/11"/>
|
13
13
|
</DISK>
|
14
14
|
<NIC>
|
15
|
-
<NETWORK href="http://www.opennebula.org/network/
|
15
|
+
<NETWORK href="http://www.opennebula.org/network/25"/>
|
16
16
|
</NIC>
|
17
17
|
<CONTEXT>
|
18
18
|
<NETWORK_NAME>10.3.172.0</NETWORK_NAME>
|
@@ -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/
|
44
|
+
body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/167"><ID>167</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/25" name="10.3.172.0"/><IP>10.3.172.26</IP><MAC>02:00:0a:03:ac:1a</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:1a</HOSTNAME><IP_PUBLIC>10.3.172.26</IP_PUBLIC><NETMASK>/24</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
|
45
45
|
http_version: "1.1"
|
@@ -2,28 +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/compute/
|
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: 204
|
17
|
-
message: No Content
|
18
|
-
headers:
|
19
|
-
server:
|
20
|
-
- thin 1.2.7 codename No Hup
|
21
|
-
body:
|
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
|
5
|
+
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/167
|
27
6
|
body:
|
28
7
|
headers:
|
29
8
|
accept:
|
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/167
|
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
|
+
- "714"
|
23
|
+
connection:
|
24
|
+
- keep-alive
|
25
|
+
server:
|
26
|
+
- thin 1.2.7 codename No Hup
|
27
|
+
body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/167"><ID>167</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/25" name="10.3.172.0"/><IP>10.3.172.26</IP><MAC>02:00:0a:03:ac:1a</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:1a</HOSTNAME><IP_PUBLIC>10.3.172.26</IP_PUBLIC><NETMASK>/24</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
|
28
|
+
http_version: "1.1"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :put
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/
|
5
|
+
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/167
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0"?>
|
8
8
|
<COMPUTE>
|
@@ -26,10 +26,10 @@
|
|
26
26
|
content-type:
|
27
27
|
- text/html;charset=utf-8
|
28
28
|
content-length:
|
29
|
-
- "
|
29
|
+
- "714"
|
30
30
|
connection:
|
31
31
|
- keep-alive
|
32
32
|
server:
|
33
33
|
- thin 1.2.7 codename No Hup
|
34
|
-
body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/
|
34
|
+
body: <COMPUTE href="http://cm-01.cloud.int.ev1.atti.com:4567/compute/167"><ID>167</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/25" name="10.3.172.0"/><IP>10.3.172.26</IP><MAC>02:00:0a:03:ac:1a</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:1a</HOSTNAME><IP_PUBLIC>10.3.172.26</IP_PUBLIC><NETMASK>/24</NETMASK><TARGET>hdc</TARGET></CONTEXT></COMPUTE>
|
35
35
|
http_version: "1.1"
|
@@ -19,10 +19,10 @@
|
|
19
19
|
content-type:
|
20
20
|
- text/html;charset=utf-8
|
21
21
|
content-length:
|
22
|
-
- "
|
22
|
+
- "313"
|
23
23
|
connection:
|
24
24
|
- keep-alive
|
25
25
|
server:
|
26
26
|
- thin 1.2.7 codename No Hup
|
27
|
-
body: "<NETWORK_COLLECTION><NETWORK href=\"http://cm-01.cloud.int.ev1.atti.com:4567/network/
|
27
|
+
body: "<NETWORK_COLLECTION><NETWORK href=\"http://cm-01.cloud.int.ev1.atti.com:4567/network/23\" name=\"10.3.174.0\"/><NETWORK href=\"http://cm-01.cloud.int.ev1.atti.com:4567/network/25\" name=\"10.3.172.0\"/><NETWORK href=\"http://cm-01.cloud.int.ev1.atti.com:4567/network/27\" name=\"Test Framework\"/></NETWORK_COLLECTION> "
|
28
28
|
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/
|
36
|
+
body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/27"><ID>27</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
|
37
37
|
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/
|
5
|
+
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/27
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -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/
|
5
|
+
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/27
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -19,10 +19,10 @@
|
|
19
19
|
content-type:
|
20
20
|
- text/html;charset=utf-8
|
21
21
|
content-length:
|
22
|
-
- "
|
22
|
+
- "162"
|
23
23
|
connection:
|
24
24
|
- keep-alive
|
25
25
|
server:
|
26
26
|
- thin 1.2.7 codename No Hup
|
27
|
-
body:
|
27
|
+
body: <NETWORK href="http://cm-01.cloud.int.ev1.atti.com:4567/network/27"><ID>27</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
|
28
28
|
http_version: "1.1"
|