occi 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +9 -0
- data/.project +32 -0
- data/.rspec +1 -0
- data/.travis.yml +8 -0
- data/.yardopts +1 -0
- data/AUTHORS +8 -0
- data/Gemfile +35 -14
- data/Gemfile.lock +89 -32
- data/LICENSE +13 -4
- data/README.md +70 -21
- data/Rakefile +25 -21
- data/lib/OpenNebula/Acl.rb +256 -0
- data/lib/OpenNebula/AclPool.rb +53 -0
- data/lib/OpenNebula/Group.rb +147 -0
- data/lib/OpenNebula/GroupPool.rb +54 -0
- data/lib/OpenNebula/Host.rb +143 -0
- data/lib/OpenNebula/HostPool.rb +55 -0
- data/lib/OpenNebula/Image.rb +256 -0
- data/lib/OpenNebula/ImagePool.rb +74 -0
- data/lib/OpenNebula/OpenNebula.rb +137 -0
- data/lib/OpenNebula/Pool.rb +285 -0
- data/lib/OpenNebula/Template.rb +173 -0
- data/lib/OpenNebula/TemplatePool.rb +74 -0
- data/lib/OpenNebula/User.rb +157 -0
- data/lib/OpenNebula/UserPool.rb +53 -0
- data/lib/OpenNebula/VirtualMachine.rb +319 -0
- data/lib/OpenNebula/VirtualMachinePool.rb +120 -0
- data/lib/OpenNebula/VirtualNetwork.rb +229 -0
- data/lib/OpenNebula/VirtualNetworkPool.rb +74 -0
- data/lib/OpenNebula/XMLUtils.rb +337 -0
- data/lib/occi/antlr/.gitignore +18 -0
- data/lib/occi/antlr/OCCI.g +164 -0
- data/lib/occi/antlr/OCCI.tokens +75 -0
- data/lib/occi/antlr/OCCILexer.rb +1532 -0
- data/lib/occi/antlr/OCCIParser.rb +2472 -0
- data/lib/occi/antlr/README.md +2 -0
- data/lib/occi/backend/dummy.rb +232 -0
- data/lib/occi/backend/ec2/Compute.rb +310 -0
- data/lib/occi/backend/ec2/compute.rb +310 -0
- data/lib/occi/backend/ec2/ec2.rb +215 -0
- data/lib/occi/backend/manager.rb +131 -0
- data/lib/occi/backend/opennebula/compute.rb +360 -0
- data/lib/occi/backend/opennebula/network.rb +143 -0
- data/lib/occi/backend/opennebula/opennebula.rb +188 -0
- data/lib/occi/backend/opennebula/storage.rb +175 -0
- data/lib/occi/configuration.rb +118 -0
- data/lib/occi/core/action.rb +29 -0
- data/lib/occi/core/attribute_properties.rb +54 -0
- data/lib/occi/core/attributes.rb +40 -0
- data/lib/occi/core/category.rb +62 -0
- data/lib/occi/core/collection.rb +27 -0
- data/lib/occi/core/entity.rb +135 -0
- data/lib/occi/core/kind.rb +55 -0
- data/lib/occi/core/link.rb +88 -0
- data/lib/occi/core/mixin.rb +43 -0
- data/lib/occi/core/resource.rb +73 -0
- data/lib/occi/exceptions.rb +59 -0
- data/lib/occi/extensions/monitoring/cpu.rb +51 -0
- data/lib/occi/extensions/monitoring/memory.rb +49 -0
- data/lib/occi/extensions/monitoring/metric.rb +54 -0
- data/lib/occi/extensions/monitoring/netrx.rb +49 -0
- data/lib/occi/extensions/monitoring/nettx.rb +55 -0
- data/lib/occi/extensions/one/VNC.rb +58 -0
- data/lib/occi/extensions/one/vnc.rb +58 -0
- data/lib/occi/log.rb +47 -0
- data/lib/occi/parse.rb +164 -0
- data/lib/occi/registry.rb +87 -0
- data/lib/occi/server.rb +594 -0
- data/lib/occi/version.rb +3 -0
- data/occi.gemspec +18 -96
- data/spec/occi/antlr/parser_spec.rb +82 -0
- data/spec/spec_helper.rb +6 -0
- metadata +100 -208
- data/.autotest +0 -21
- data/.rvmrc +0 -1
- data/VERSION +0 -1
- data/lib/occi.rb +0 -1
- data/lib/occi/client.rb +0 -36
- data/lib/occi/compute.rb +0 -4
- data/lib/occi/network.rb +0 -4
- data/lib/occi/resource.rb +0 -59
- data/lib/occi/storage.rb +0 -7
- data/test/fixtures/cassettes/compute_all.yml +0 -28
- data/test/fixtures/cassettes/compute_create.yml +0 -45
- data/test/fixtures/cassettes/compute_destroy.yml +0 -22
- data/test/fixtures/cassettes/compute_find.yml +0 -28
- data/test/fixtures/cassettes/compute_update.yml +0 -35
- data/test/fixtures/cassettes/network_all.yml +0 -28
- data/test/fixtures/cassettes/network_create.yml +0 -37
- data/test/fixtures/cassettes/network_destroy.yml +0 -22
- data/test/fixtures/cassettes/network_find.yml +0 -28
- data/test/fixtures/cassettes/storage_all.yml +0 -28
- data/test/fixtures/cassettes/storage_create.yml +0 -50
- data/test/fixtures/cassettes/storage_destroy.yml +0 -22
- data/test/fixtures/cassettes/storage_find.yml +0 -28
- data/test/lib/occi/compute_test.rb +0 -91
- data/test/lib/occi/network_test.rb +0 -57
- data/test/lib/occi/storage_test.rb +0 -67
- data/test/test_helper.rb +0 -48
data/.autotest
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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/.rvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rvm ruby-1.9.2-p0@occi
|
data/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.1
|
data/lib/occi.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require "occi/client"
|
data/lib/occi/client.rb
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
%w(hugs digest/sha1 occi/resource occi/network occi/storage occi/compute).each { |r| require r }
|
|
2
|
-
|
|
3
|
-
module Occi
|
|
4
|
-
class Client
|
|
5
|
-
##
|
|
6
|
-
# Required:
|
|
7
|
-
# +user+: A String containing the username for use in HTTP Basic auth.
|
|
8
|
-
# +password+: A String containing the password for use in HTTP Basic auth.
|
|
9
|
-
# +host+: A String with the host to connect.
|
|
10
|
-
|
|
11
|
-
def initialize options
|
|
12
|
-
@connection = Hugs::Client.new(
|
|
13
|
-
:user => options[:user],
|
|
14
|
-
:password => Digest::SHA1.hexdigest(options[:password]),
|
|
15
|
-
:host => options[:host],
|
|
16
|
-
:scheme => options[:scheme] || "http",
|
|
17
|
-
:port => options[:port] || 4567,
|
|
18
|
-
:type => options[:type] || :xml,
|
|
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
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def compute
|
|
33
|
-
@compute ||= Occi::Compute.new @connection
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
data/lib/occi/compute.rb
DELETED
data/lib/occi/network.rb
DELETED
data/lib/occi/resource.rb
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
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 destroy id
|
|
56
|
-
@connection.delete entity(id)
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
data/lib/occi/storage.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
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
|
-
- "799"
|
|
23
|
-
connection:
|
|
24
|
-
- keep-alive
|
|
25
|
-
server:
|
|
26
|
-
- thin 1.2.7 codename No Hup
|
|
27
|
-
body: "<COMPUTE_COLLECTION><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/150\" name=\"Centos-5-4_x86_64\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/164\" name=\"Centos-5-4_x86_64\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/170\" name=\"Centos-5-4_x86_64\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/171\" name=\"Centos-5-4_x86_64\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/172\" name=\"Centos-5-4_x86_64\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/174\" name=\"Test Framework\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/175\" name=\"Test Framework\"/><COMPUTE href=\"http://cm-01.cloud.int.ev1.atti.com:4567/compute/176\" name=\"Test Framework\"/></COMPUTE_COLLECTION> "
|
|
28
|
-
http_version: "1.1"
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :post
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0"?>
|
|
8
|
-
<COMPUTE>
|
|
9
|
-
<NAME>Test Framework</NAME>
|
|
10
|
-
<INSTANCE_TYPE>small</INSTANCE_TYPE>
|
|
11
|
-
<DISK>
|
|
12
|
-
<STORAGE href="http://www.opennebula.org/storage/11"/>
|
|
13
|
-
</DISK>
|
|
14
|
-
<NIC>
|
|
15
|
-
<NETWORK href="http://www.opennebula.org/network/25"/>
|
|
16
|
-
</NIC>
|
|
17
|
-
<CONTEXT>
|
|
18
|
-
<NETWORK_NAME>10.3.172.0</NETWORK_NAME>
|
|
19
|
-
</CONTEXT>
|
|
20
|
-
</COMPUTE>
|
|
21
|
-
|
|
22
|
-
headers:
|
|
23
|
-
accept:
|
|
24
|
-
- application/xml
|
|
25
|
-
content-type:
|
|
26
|
-
- application/xml
|
|
27
|
-
connection:
|
|
28
|
-
- keep-alive
|
|
29
|
-
keep-alive:
|
|
30
|
-
- 30
|
|
31
|
-
response: !ruby/struct:VCR::Response
|
|
32
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
33
|
-
code: 201
|
|
34
|
-
message: Created
|
|
35
|
-
headers:
|
|
36
|
-
content-type:
|
|
37
|
-
- text/html;charset=utf-8
|
|
38
|
-
content-length:
|
|
39
|
-
- "715"
|
|
40
|
-
connection:
|
|
41
|
-
- keep-alive
|
|
42
|
-
server:
|
|
43
|
-
- thin 1.2.7 codename No Hup
|
|
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
|
-
http_version: "1.1"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :delete
|
|
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: 204
|
|
17
|
-
message: No Content
|
|
18
|
-
headers:
|
|
19
|
-
server:
|
|
20
|
-
- thin 1.2.7 codename No Hup
|
|
21
|
-
body:
|
|
22
|
-
http_version: "1.1"
|
|
@@ -1,28 +0,0 @@
|
|
|
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"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :put
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/compute/167
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0"?>
|
|
8
|
-
<COMPUTE>
|
|
9
|
-
<STATE>shutdown</STATE>
|
|
10
|
-
</COMPUTE>
|
|
11
|
-
|
|
12
|
-
headers:
|
|
13
|
-
accept:
|
|
14
|
-
- application/xml
|
|
15
|
-
content-type:
|
|
16
|
-
- application/xml
|
|
17
|
-
connection:
|
|
18
|
-
- keep-alive
|
|
19
|
-
keep-alive:
|
|
20
|
-
- 30
|
|
21
|
-
response: !ruby/struct:VCR::Response
|
|
22
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
23
|
-
code: 202
|
|
24
|
-
message: Accepted
|
|
25
|
-
headers:
|
|
26
|
-
content-type:
|
|
27
|
-
- text/html;charset=utf-8
|
|
28
|
-
content-length:
|
|
29
|
-
- "714"
|
|
30
|
-
connection:
|
|
31
|
-
- keep-alive
|
|
32
|
-
server:
|
|
33
|
-
- thin 1.2.7 codename No Hup
|
|
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
|
-
http_version: "1.1"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :get
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network
|
|
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
|
-
- "313"
|
|
23
|
-
connection:
|
|
24
|
-
- keep-alive
|
|
25
|
-
server:
|
|
26
|
-
- thin 1.2.7 codename No Hup
|
|
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
|
-
http_version: "1.1"
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :post
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network
|
|
6
|
-
body: |
|
|
7
|
-
<?xml version="1.0"?>
|
|
8
|
-
<NETWORK>
|
|
9
|
-
<NAME>Test Framework</NAME>
|
|
10
|
-
<ADDRESS>192.168.1.1</ADDRESS>
|
|
11
|
-
<SIZE>200</SIZE>
|
|
12
|
-
</NETWORK>
|
|
13
|
-
|
|
14
|
-
headers:
|
|
15
|
-
accept:
|
|
16
|
-
- application/xml
|
|
17
|
-
content-type:
|
|
18
|
-
- application/xml
|
|
19
|
-
connection:
|
|
20
|
-
- keep-alive
|
|
21
|
-
keep-alive:
|
|
22
|
-
- 30
|
|
23
|
-
response: !ruby/struct:VCR::Response
|
|
24
|
-
status: !ruby/struct:VCR::ResponseStatus
|
|
25
|
-
code: 201
|
|
26
|
-
message: Created
|
|
27
|
-
headers:
|
|
28
|
-
content-type:
|
|
29
|
-
- text/html;charset=utf-8
|
|
30
|
-
content-length:
|
|
31
|
-
- "162"
|
|
32
|
-
connection:
|
|
33
|
-
- keep-alive
|
|
34
|
-
server:
|
|
35
|
-
- thin 1.2.7 codename No Hup
|
|
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
|
-
http_version: "1.1"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :delete
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/27
|
|
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"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :get
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network/27
|
|
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/27"><ID>27</ID><NAME>Test Framework</NAME><ADDRESS>192.168.1.1</ADDRESS><SIZE>200</SIZE></NETWORK>
|
|
28
|
-
http_version: "1.1"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
|
3
|
-
request: !ruby/struct:VCR::Request
|
|
4
|
-
method: :get
|
|
5
|
-
uri: http://oneadmin:a9464e3228ae563be6207bbf50437a219550f48b@one.example.com:4567/network
|
|
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
|
-
- "313"
|
|
23
|
-
connection:
|
|
24
|
-
- keep-alive
|
|
25
|
-
server:
|
|
26
|
-
- thin 1.2.7 codename No Hup
|
|
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/26\" name=\"Test Framework\"/></NETWORK_COLLECTION> "
|
|
28
|
-
http_version: "1.1"
|