fanny_pack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -3
- data/lib/fanny_pack/ip.rb +25 -5
- data/lib/fanny_pack/request.rb +27 -73
- data/lib/fanny_pack/version.rb +1 -1
- data/spec/fanny_pack/ip_spec.rb +12 -8
- data/spec/fanny_pack/request_spec.rb +1 -58
- data/spec/spec_helper.rb +15 -12
- data/spec/vcr_cassettes/ip/add.yml +17 -0
- data/spec/vcr_cassettes/ip/deactivate.yml +17 -0
- data/spec/vcr_cassettes/ip/delete.yml +17 -0
- data/spec/vcr_cassettes/ip/details.yml +17 -0
- data/spec/vcr_cassettes/ip/edit.yml +17 -0
- data/spec/vcr_cassettes/ip/list.yml +31 -0
- data/spec/vcr_cassettes/ip/reactivate.yml +17 -0
- data/spec/vcr_patch.rb +13 -0
- metadata +122 -28
- data/spec/fixtures/add.txt +0 -10
- data/spec/fixtures/deactivate.txt +0 -13
- data/spec/fixtures/delete.txt +0 -11
- data/spec/fixtures/details.txt +0 -13
- data/spec/fixtures/edit.txt +0 -11
- data/spec/fixtures/list.txt +0 -11
- data/spec/fixtures/list_details.txt +0 -20
- data/spec/fixtures/reactivate.txt +0 -13
data/README.markdown
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
FannyPack is a Ruby library for working with the [Fantastico API][].
|
4
4
|
|
5
|
-
FannyPack has been tested on
|
6
|
-
|
5
|
+
FannyPack has been tested on MRI 1.8.7, MRI 1.9.2, MRI 1.9.3, Rubinius, and
|
6
|
+
JRuby (in 1.8 and 1.9 mode).
|
7
7
|
|
8
8
|
[Build Status]: http://travis-ci.org/site5/fanny_pack
|
9
9
|
[Build Icon]: https://secure.travis-ci.org/site5/fanny_pack.png?branch=master
|
@@ -76,4 +76,4 @@ Get an IP's details
|
|
76
76
|
|
77
77
|
## Copyright
|
78
78
|
|
79
|
-
Copyright (c)
|
79
|
+
Copyright (c) 2012 Site5.com. See LICENSE for details.
|
data/lib/fanny_pack/ip.rb
CHANGED
@@ -85,7 +85,13 @@ module FannyPack
|
|
85
85
|
unless IP_TYPES.keys.include? list_type
|
86
86
|
raise ArgumentError, "Invalid list type"
|
87
87
|
end
|
88
|
-
Request.new.commit cmd, :listType => IP_TYPES[list_type]
|
88
|
+
response = Request.new.commit cmd, :listType => IP_TYPES[list_type]
|
89
|
+
if details
|
90
|
+
items = response[:item].map{|i| i[:item] }
|
91
|
+
items.map { |item| attr_array_to_hash(item) }
|
92
|
+
else
|
93
|
+
response[:item]
|
94
|
+
end
|
89
95
|
end
|
90
96
|
|
91
97
|
# Delete an IP address from your Fantastico Account
|
@@ -98,7 +104,8 @@ module FannyPack
|
|
98
104
|
# @example
|
99
105
|
# FannyPack::IP.delete '127.0.0.1'
|
100
106
|
def self.delete(ip)
|
101
|
-
Request.new.commit :deleteIp, :ip => ip
|
107
|
+
response = Request.new.commit :deleteIp, :ip => ip
|
108
|
+
attr_array_to_hash(response[:item])
|
102
109
|
end
|
103
110
|
|
104
111
|
# Reactivate a deactivated IP address
|
@@ -111,7 +118,8 @@ module FannyPack
|
|
111
118
|
# @example
|
112
119
|
# FannyPack::IP.reactivate '127.0.0.1'
|
113
120
|
def self.reactivate(ip)
|
114
|
-
Request.new.commit :reactivateIp, :ip => ip
|
121
|
+
response = Request.new.commit :reactivateIp, :ip => ip
|
122
|
+
attr_array_to_hash(response[:item])
|
115
123
|
end
|
116
124
|
|
117
125
|
# Deactivate an IP address
|
@@ -124,7 +132,8 @@ module FannyPack
|
|
124
132
|
# @example
|
125
133
|
# FannyPack::IP.deactivate '127.0.0.1'
|
126
134
|
def self.deactivate(ip)
|
127
|
-
Request.new.commit :deactivateIp, :ip => ip
|
135
|
+
response = Request.new.commit :deactivateIp, :ip => ip
|
136
|
+
attr_array_to_hash(response[:item])
|
128
137
|
end
|
129
138
|
|
130
139
|
# Get details for an IP address
|
@@ -137,7 +146,18 @@ module FannyPack
|
|
137
146
|
# @example
|
138
147
|
# FannyPack::IP.details '127.0.0.1'
|
139
148
|
def self.details(ip)
|
140
|
-
Request.new.commit :getIpDetails, :ip => ip
|
149
|
+
response = Request.new.commit :getIpDetails, :ip => ip
|
150
|
+
attr_array_to_hash(response[:item])
|
151
|
+
end
|
152
|
+
|
153
|
+
private
|
154
|
+
|
155
|
+
def self.attr_array_to_hash(array)
|
156
|
+
array.inject({}) do |result, pair|
|
157
|
+
result[pair[:key]] = pair[:value]
|
158
|
+
result
|
159
|
+
end
|
141
160
|
end
|
161
|
+
|
142
162
|
end
|
143
163
|
end
|
data/lib/fanny_pack/request.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
require 'open-uri'
|
4
|
-
require 'net/https'
|
1
|
+
require 'faraday'
|
2
|
+
require 'malcolm'
|
5
3
|
|
6
4
|
module FannyPack
|
7
5
|
# FannyPack::Request handles forming the XML request to be sent to the
|
@@ -49,36 +47,23 @@ module FannyPack
|
|
49
47
|
end
|
50
48
|
@action = action
|
51
49
|
@params = params
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
parse(res.body)
|
58
|
-
end
|
59
|
-
|
60
|
-
# Parse the XML response from Fantastico
|
61
|
-
#
|
62
|
-
# Returns an Array or Hash depending on the API method called
|
63
|
-
#
|
64
|
-
# @param [String] data
|
65
|
-
# The XML response from Fantastico
|
66
|
-
#
|
67
|
-
# @return [Hash, Array]
|
68
|
-
def parse(data)
|
69
|
-
res = find_key_in_hash(Crack::XML.parse(data), 'item')
|
70
|
-
if @action.to_sym == :getIpListDetailed
|
71
|
-
res.map! do |r|
|
72
|
-
Hash[r['item'].map { |i| [i['key'], i['value']] }]
|
73
|
-
end
|
74
|
-
elsif @action.to_sym == :getIpList
|
75
|
-
res
|
76
|
-
else
|
77
|
-
res = Hash[res.map { |r| [r['key'], r['value']] }] if res.is_a? Array
|
50
|
+
|
51
|
+
conn = Faraday.new(:url => API_URL) do |c|
|
52
|
+
c.request :soap
|
53
|
+
c.response :soap, "item"
|
54
|
+
c.adapter :net_http
|
78
55
|
end
|
79
|
-
|
80
|
-
|
81
|
-
|
56
|
+
|
57
|
+
request = conn.post do |r|
|
58
|
+
r.body = format_params_for_fantastico
|
59
|
+
r.headers = {'Content-Type' => 'text/xml; charset=utf-8'}
|
60
|
+
end
|
61
|
+
|
62
|
+
response = request.body
|
63
|
+
|
64
|
+
@success = !(response.is_a?(Hash) && response.has_key?("faultcode"))
|
65
|
+
|
66
|
+
response
|
82
67
|
end
|
83
68
|
|
84
69
|
# Returns true if a commit was successful
|
@@ -87,48 +72,17 @@ module FannyPack
|
|
87
72
|
def success?
|
88
73
|
@success
|
89
74
|
end
|
90
|
-
|
91
|
-
# Builds the SOAP Envelope to be sent to Fantastico for this request
|
92
|
-
#
|
93
|
-
# @return [String]
|
94
|
-
def to_xml
|
95
|
-
xml = Builder::XmlMarkup.new :indent => 2
|
96
|
-
xml.instruct!
|
97
|
-
xml.tag! 'env:Envelope', 'xmlns:env' => 'http://schemas.xmlsoap.org/soap/envelope/' do
|
98
|
-
xml.tag! 'env:Body' do
|
99
|
-
xml.tag! @action do
|
100
|
-
xml.tag! 'accountHASH', FannyPack.account_hash
|
101
|
-
@params.each do |key, val|
|
102
|
-
xml.tag! key, val
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
xml.target!
|
108
|
-
end
|
109
|
-
|
75
|
+
|
110
76
|
private
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
# @param index
|
118
|
-
# The hash key to look for
|
119
|
-
def find_key_in_hash(hash, index)
|
120
|
-
hash.each do |key, val|
|
121
|
-
if val.respond_to? :has_key?
|
122
|
-
if val.has_key? index
|
123
|
-
return val[index]
|
124
|
-
else
|
125
|
-
return find_key_in_hash val, index
|
126
|
-
end
|
127
|
-
else
|
128
|
-
val
|
129
|
-
end
|
130
|
-
end
|
77
|
+
|
78
|
+
# Wraps each param value in array so XmlSimple interprets them as child elements rather than attributes
|
79
|
+
def format_params_for_fantastico
|
80
|
+
params = @params.inject({}) do |result, (k, v)|
|
81
|
+
result[k] = [v]
|
82
|
+
result
|
131
83
|
end
|
84
|
+
{@action => {'accountHASH' => [FannyPack.account_hash]}.merge(params)}
|
85
|
+
end
|
132
86
|
|
133
87
|
end
|
134
88
|
end
|
data/lib/fanny_pack/version.rb
CHANGED
data/spec/fanny_pack/ip_spec.rb
CHANGED
@@ -20,30 +20,33 @@ describe FannyPack::IP do
|
|
20
20
|
end
|
21
21
|
|
22
22
|
describe "::add" do
|
23
|
+
use_vcr_cassette "ip/add"
|
24
|
+
|
23
25
|
it "raises ArgumentError without IP" do
|
24
26
|
requires_ip { FannyPack::IP.add }
|
25
27
|
end
|
26
28
|
|
27
29
|
it "returns a Hash" do
|
28
|
-
load_fixture :add
|
29
30
|
ip = FannyPack::IP.add '127.0.0.1'
|
30
31
|
ip.should be_a Hash
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
35
|
describe "::edit" do
|
36
|
+
use_vcr_cassette "ip/edit"
|
35
37
|
it "raises ArgumentError without IP" do
|
36
38
|
requires_ip { FannyPack::IP.edit }
|
37
39
|
end
|
38
40
|
|
39
41
|
it "edits the IP" do
|
40
|
-
load_fixture :edit
|
41
42
|
ip = FannyPack::IP.edit '127.0.0.1', '127.0.0.2'
|
42
43
|
ip.should be_a Hash
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
46
47
|
describe "::list" do
|
48
|
+
use_vcr_cassette "ip/list"
|
49
|
+
|
47
50
|
it "raises ArgumentError without type" do
|
48
51
|
requires_ip { FannyPack::IP.list }
|
49
52
|
end
|
@@ -53,16 +56,14 @@ describe FannyPack::IP do
|
|
53
56
|
end
|
54
57
|
|
55
58
|
it "returns an array of IPs" do
|
56
|
-
load_fixture :list
|
57
59
|
ip = FannyPack::IP.list :all
|
58
60
|
ip.should be_a Array
|
59
61
|
ip.should have(2).items
|
60
62
|
ip[0].should == '127.0.0.1'
|
61
63
|
ip[1].should == '127.0.0.2'
|
62
64
|
end
|
63
|
-
|
65
|
+
|
64
66
|
it "returns an array of Hashes if details is true" do
|
65
|
-
load_fixture :list_details
|
66
67
|
ip = FannyPack::IP.list :all, true
|
67
68
|
ip.should be_a Array
|
68
69
|
ip.should have(2).items
|
@@ -73,15 +74,17 @@ describe FannyPack::IP do
|
|
73
74
|
end
|
74
75
|
end
|
75
76
|
end
|
77
|
+
|
76
78
|
end
|
77
79
|
|
78
80
|
describe "::delete" do
|
81
|
+
use_vcr_cassette "ip/delete"
|
82
|
+
|
79
83
|
it "raises ArgumentError without IP" do
|
80
84
|
requires_ip { FannyPack::IP.delete }
|
81
85
|
end
|
82
86
|
|
83
87
|
it "deletes the IP" do
|
84
|
-
load_fixture :delete
|
85
88
|
ip = FannyPack::IP.delete '127.0.0.1'
|
86
89
|
ip.should be_a Hash
|
87
90
|
ip.should have_key 'deleted'
|
@@ -91,12 +94,12 @@ describe FannyPack::IP do
|
|
91
94
|
|
92
95
|
%w[reactivate deactivate].each do |method|
|
93
96
|
describe "::#{method}" do
|
97
|
+
use_vcr_cassette "ip/#{method}"
|
94
98
|
it "raises ArgumentError without IP" do
|
95
99
|
requires_ip { FannyPack::IP.send(method) }
|
96
100
|
end
|
97
101
|
|
98
102
|
it "#{method}s the IP" do
|
99
|
-
load_fixture method
|
100
103
|
ip = FannyPack::IP.send method, '127.0.0.1'
|
101
104
|
ip.should be_a Hash
|
102
105
|
%w[ipAddress addedOn isVPS status].each do |key|
|
@@ -107,12 +110,13 @@ describe FannyPack::IP do
|
|
107
110
|
end
|
108
111
|
|
109
112
|
describe "::details" do
|
113
|
+
use_vcr_cassette "ip/details"
|
114
|
+
|
110
115
|
it "raises ArgumentError without IP" do
|
111
116
|
requires_ip { FannyPack::IP.details }
|
112
117
|
end
|
113
118
|
|
114
119
|
it "returns a hash of IP details" do
|
115
|
-
load_fixture :details
|
116
120
|
ip = FannyPack::IP.details '127.0.0.1'
|
117
121
|
ip.should be_a Hash
|
118
122
|
%w[ipAddress addedOn isVPS status].each do |key|
|
@@ -26,67 +26,10 @@ describe FannyPack::Request do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
describe "#to_xml" do
|
30
|
-
it "builds a SOAP envelope" do
|
31
|
-
xml = @req.to_xml
|
32
|
-
xml.should include
|
33
|
-
%{<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">\n <env:Body>}
|
34
|
-
xml.should include
|
35
|
-
%{</env:Body>\n</env:Envelope>}
|
36
|
-
xml.should match %r{<accountHASH>.*</accountHASH>}
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
29
|
describe "#commit" do
|
41
30
|
it "raises exception unless action is valid" do
|
42
31
|
expect { @req.commit :HammerTime }.to raise_error
|
43
32
|
end
|
44
33
|
end
|
45
34
|
|
46
|
-
|
47
|
-
before :each do
|
48
|
-
@req.instance_variable_set("@action", :addIp)
|
49
|
-
end
|
50
|
-
|
51
|
-
it "returns an Array of Hashes if @action == :getIpListDetailed" do
|
52
|
-
@req.instance_variable_set("@action", :getIpListDetailed)
|
53
|
-
res = @req.parse load_fixture :list_details
|
54
|
-
res.should be_a Array
|
55
|
-
res.should have(2).items
|
56
|
-
%w[ipAddress addedOn isVPS status].each do |key|
|
57
|
-
res.first.should have_key key
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
it "returns a flat Array if @action is :getIpList" do
|
62
|
-
@req.instance_variable_set("@action", :getIpList)
|
63
|
-
res = @req.parse load_fixture :list
|
64
|
-
res.should be_a Array
|
65
|
-
res.should have(2).items
|
66
|
-
res[0].should == '127.0.0.1'
|
67
|
-
res[1].should == '127.0.0.2'
|
68
|
-
end
|
69
|
-
|
70
|
-
it "returns a Hash if @action is not :getIpList or :getIpListDetailed" do
|
71
|
-
@req.instance_variable_set("@action", :addIp)
|
72
|
-
res = @req.parse load_fixture :add
|
73
|
-
res.should be_a Hash
|
74
|
-
end
|
75
|
-
|
76
|
-
it "sets @success" do
|
77
|
-
@req.instance_variable_set("@action", :addIp)
|
78
|
-
res = @req.parse load_fixture :add
|
79
|
-
@req.instance_variable_get("@success").should_not be_nil
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe "#success?" do
|
84
|
-
it "returns true or false based on @success" do
|
85
|
-
@req.instance_variable_set("@action", :addIp)
|
86
|
-
@req.parse load_fixture :add
|
87
|
-
@req.instance_variable_get("@success").should_not be_nil
|
88
|
-
@req.success?.should be_true
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
end
|
35
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,21 +1,24 @@
|
|
1
1
|
require 'rspec'
|
2
|
-
require '
|
2
|
+
require 'vcr'
|
3
|
+
require 'vcr_patch'
|
3
4
|
require 'fanny_pack'
|
5
|
+
require 'xmlsimple'
|
4
6
|
|
5
|
-
|
7
|
+
FannyPack.account_hash = "test"
|
6
8
|
|
7
|
-
def
|
8
|
-
|
9
|
-
register_url(body) if register
|
10
|
-
body
|
9
|
+
def requires_ip(&block)
|
10
|
+
expect { block.call }.to raise_error(ArgumentError)
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
FakeWeb.allow_net_connect = false
|
16
|
-
FakeWeb.register_uri :any, FannyPack::Request::API_URL, :body => body
|
13
|
+
RSpec.configure do |c|
|
14
|
+
c.extend VCR::RSpec::Macros
|
17
15
|
end
|
18
16
|
|
19
|
-
|
20
|
-
|
17
|
+
VCR.configure do |c|
|
18
|
+
c.cassette_library_dir = 'spec/vcr_cassettes'
|
19
|
+
c.hook_into :fakeweb
|
20
|
+
c.default_cassette_options = {:record => :none, :match_requests_on => [:xml_body_without_order]}
|
21
|
+
c.register_request_matcher :xml_body_without_order do |request1, request2|
|
22
|
+
XmlSimple.xml_in(request1.body) == XmlSimple.xml_in(request2.body)
|
23
|
+
end
|
21
24
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><addIp><accountHASH>hash</accountHASH><ip>127.0.0.1</ip><type>1</type></addIp></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:addIpResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">id</key><value xsi:type="xsd:string">123456</value></item></Result></ns1:addIpResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><deactivateIp><accountHASH>hash</accountHASH><ip>127.0.0.1</ip></deactivateIp></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:deactivateIpResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item> <item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item> <item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Inactive</value></item></Result></ns1:deactivateIpResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><deleteIp><accountHASH>hash</accountHASH><ip>127.0.0.1</ip></deleteIp></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:deleteIpResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">deleted</key><value xsi:type="xsd:string">Yes</value></item></Result></ns1:deleteIpResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><getIpDetails><accountHASH>hash</accountHASH><ip>127.0.0.1</ip></getIpDetails></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getIpDetailsResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item> <item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item> <item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item></Result></ns1:getIpDetailsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><editIp><accountHASH>hash</accountHASH><ip>127.0.0.1</ip><new_ip>127.0.0.2</new_ip></editIp></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:editIpResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">new_ip</key><value xsi:type="xsd:string">127.0.0.2</value></item></Result></ns1:editIpResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><getIpList><accountHASH>hash</accountHASH><listType>0</listType></getIpList></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getIpListResponse><Result SOAP-ENC:arrayType="xsd:string[1]" xsi:type="SOAP-ENC:Array"> <item xsi:type="xsd:string">127.0.0.1</item> <item xsi:type="xsd:string">127.0.0.2</item></Result></ns1:getIpListResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
- request:
|
18
|
+
method: post
|
19
|
+
uri: https://netenberg.com/api/server.php
|
20
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><getIpListDetailed><accountHASH>hash</accountHASH><listType>0</listType></getIpListDetailed></env:Body></env:Envelope>
|
21
|
+
headers: {}
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
body:
|
27
|
+
encoding: UTF-8
|
28
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:getIpListDetailedResponse><Result SOAP-ENC:arrayType="ns2:Map[1]" xsi:type="SOAP-ENC:Array"><item xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2011-05-19 14:23:57</value></item> <item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">Yes</value></item> <item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item></item><item xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.2</value></item> <item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2011-05-19 14:23:57</value></item> <item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item> <item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item></item></Result></ns1:getIpListDetailedResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
29
|
+
http_version: "1.1"
|
30
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
31
|
+
recorded_with: VCR 2.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://netenberg.com/api/server.php
|
6
|
+
body: <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><reactivateIp><accountHASH>hash</accountHASH><ip>127.0.0.1</ip></reactivateIp></env:Body></env:Envelope>
|
7
|
+
headers: {}
|
8
|
+
response:
|
9
|
+
status:
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
body:
|
13
|
+
encoding: UTF-8
|
14
|
+
string: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:reactivateIpResponse><Result xsi:type="ns2:Map"> <item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item> <item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item> <item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item> <item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item></Result></ns1:reactivateIpResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
15
|
+
http_version: "1.1"
|
16
|
+
recorded_at: Tue, 01 Nov 2011 04:58:44 GMT
|
17
|
+
recorded_with: VCR 2.0.0
|
data/spec/vcr_patch.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanny_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,79 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.8.1
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.8.1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: malcolm
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.0.2
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.0.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: nori
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.1.0
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.0
|
25
78
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement:
|
79
|
+
name: xml-simple
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
28
81
|
none: false
|
29
82
|
requirements:
|
30
83
|
- - ~>
|
31
84
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
85
|
+
version: 1.1.1
|
33
86
|
type: :runtime
|
34
87
|
prerelease: false
|
35
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.1.1
|
36
94
|
- !ruby/object:Gem::Dependency
|
37
95
|
name: rake
|
38
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
39
97
|
none: false
|
40
98
|
requirements:
|
41
99
|
- - ~>
|
@@ -43,21 +101,31 @@ dependencies:
|
|
43
101
|
version: 0.9.2.2
|
44
102
|
type: :development
|
45
103
|
prerelease: false
|
46
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.9.2.2
|
47
110
|
- !ruby/object:Gem::Dependency
|
48
111
|
name: rspec
|
49
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
50
113
|
none: false
|
51
114
|
requirements:
|
52
115
|
- - ~>
|
53
116
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
117
|
+
version: 2.10.0
|
55
118
|
type: :development
|
56
119
|
prerelease: false
|
57
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.10.0
|
58
126
|
- !ruby/object:Gem::Dependency
|
59
127
|
name: fakeweb
|
60
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
61
129
|
none: false
|
62
130
|
requirements:
|
63
131
|
- - ~>
|
@@ -65,18 +133,44 @@ dependencies:
|
|
65
133
|
version: 1.3.0
|
66
134
|
type: :development
|
67
135
|
prerelease: false
|
68
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.3.0
|
69
142
|
- !ruby/object:Gem::Dependency
|
70
143
|
name: awesome_print
|
71
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 1.0.2
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
153
|
none: false
|
73
154
|
requirements:
|
74
155
|
- - ~>
|
75
156
|
- !ruby/object:Gem::Version
|
76
157
|
version: 1.0.2
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: vcr
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ~>
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 2.2.0
|
77
166
|
type: :development
|
78
167
|
prerelease: false
|
79
|
-
version_requirements:
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 2.2.0
|
80
174
|
description: ! ' Ruby bindings for the Fantastico API
|
81
175
|
|
82
176
|
'
|
@@ -93,18 +187,18 @@ files:
|
|
93
187
|
- lib/fanny_pack/errors.rb
|
94
188
|
- lib/fanny_pack/request.rb
|
95
189
|
- lib/fanny_pack/version.rb
|
96
|
-
- spec/
|
97
|
-
- spec/fixtures/list_details.txt
|
98
|
-
- spec/fixtures/details.txt
|
99
|
-
- spec/fixtures/edit.txt
|
100
|
-
- spec/fixtures/list.txt
|
101
|
-
- spec/fixtures/add.txt
|
102
|
-
- spec/fixtures/delete.txt
|
103
|
-
- spec/fixtures/reactivate.txt
|
190
|
+
- spec/vcr_patch.rb
|
104
191
|
- spec/fanny_pack_spec.rb
|
105
192
|
- spec/fanny_pack/request_spec.rb
|
106
193
|
- spec/fanny_pack/ip_spec.rb
|
107
194
|
- spec/spec_helper.rb
|
195
|
+
- spec/vcr_cassettes/ip/reactivate.yml
|
196
|
+
- spec/vcr_cassettes/ip/list.yml
|
197
|
+
- spec/vcr_cassettes/ip/add.yml
|
198
|
+
- spec/vcr_cassettes/ip/delete.yml
|
199
|
+
- spec/vcr_cassettes/ip/details.yml
|
200
|
+
- spec/vcr_cassettes/ip/edit.yml
|
201
|
+
- spec/vcr_cassettes/ip/deactivate.yml
|
108
202
|
homepage: https://github.com/site5/fanny_pack
|
109
203
|
licenses: []
|
110
204
|
post_install_message:
|
@@ -120,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
214
|
version: '0'
|
121
215
|
segments:
|
122
216
|
- 0
|
123
|
-
hash:
|
217
|
+
hash: 1306354685918257802
|
124
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
219
|
none: false
|
126
220
|
requirements:
|
@@ -129,10 +223,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
223
|
version: '0'
|
130
224
|
segments:
|
131
225
|
- 0
|
132
|
-
hash:
|
226
|
+
hash: 1306354685918257802
|
133
227
|
requirements: []
|
134
228
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.8.
|
229
|
+
rubygems_version: 1.8.23
|
136
230
|
signing_key:
|
137
231
|
specification_version: 3
|
138
232
|
summary: Ruby bindings for the Fantastico API
|
data/spec/fixtures/add.txt
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body><ns1:addIpResponse>
|
4
|
-
<Result xsi:type="ns2:Map">
|
5
|
-
<item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
6
|
-
<item><key xsi:type="xsd:string">id</key><value xsi:type="xsd:string">123456</value></item>
|
7
|
-
</Result>
|
8
|
-
</ns1:addIpResponse>
|
9
|
-
</SOAP-ENV:Body>
|
10
|
-
</SOAP-ENV:Envelope>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:deactivateIpResponse>
|
5
|
-
<Result xsi:type="ns2:Map">
|
6
|
-
<item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
7
|
-
<item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item>
|
8
|
-
<item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item>
|
9
|
-
<item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Inactive</value></item>
|
10
|
-
</Result>
|
11
|
-
</ns1:deactivateIpResponse>
|
12
|
-
</SOAP-ENV:Body>
|
13
|
-
</SOAP-ENV:Envelope>
|
data/spec/fixtures/delete.txt
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:deleteIpResponse>
|
5
|
-
<Result xsi:type="ns2:Map">
|
6
|
-
<item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
7
|
-
<item><key xsi:type="xsd:string">deleted</key><value xsi:type="xsd:string">Yes</value></item>
|
8
|
-
</Result>
|
9
|
-
</ns1:deleteIpResponse>
|
10
|
-
</SOAP-ENV:Body>
|
11
|
-
</SOAP-ENV:Envelope>
|
data/spec/fixtures/details.txt
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:getIpDetailsResponse>
|
5
|
-
<Result xsi:type="ns2:Map">
|
6
|
-
<item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
7
|
-
<item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item>
|
8
|
-
<item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item>
|
9
|
-
<item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item>
|
10
|
-
</Result>
|
11
|
-
</ns1:getIpDetailsResponse>
|
12
|
-
</SOAP-ENV:Body>
|
13
|
-
</SOAP-ENV:Envelope>
|
data/spec/fixtures/edit.txt
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:editIpResponse>
|
5
|
-
<Result xsi:type="ns2:Map">
|
6
|
-
<item><key xsi:type="xsd:string">ip</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
7
|
-
<item><key xsi:type="xsd:string">new_ip</key><value xsi:type="xsd:string">127.0.0.2</value></item>
|
8
|
-
</Result>
|
9
|
-
</ns1:editIpResponse>
|
10
|
-
</SOAP-ENV:Body>
|
11
|
-
</SOAP-ENV:Envelope>
|
data/spec/fixtures/list.txt
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:getIpListResponse>
|
5
|
-
<Result SOAP-ENC:arrayType="xsd:string[1]" xsi:type="SOAP-ENC:Array">
|
6
|
-
<item xsi:type="xsd:string">127.0.0.1</item>
|
7
|
-
<item xsi:type="xsd:string">127.0.0.2</item>
|
8
|
-
</Result>
|
9
|
-
</ns1:getIpListResponse>
|
10
|
-
</SOAP-ENV:Body>
|
11
|
-
</SOAP-ENV:Envelope>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:getIpListDetailedResponse>
|
5
|
-
<Result SOAP-ENC:arrayType="ns2:Map[1]" xsi:type="SOAP-ENC:Array">
|
6
|
-
<item xsi:type="ns2:Map">
|
7
|
-
<item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
8
|
-
<item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2011-05-19 14:23:57</value></item>
|
9
|
-
<item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">Yes</value></item>
|
10
|
-
<item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item>
|
11
|
-
</item>
|
12
|
-
<item xsi:type="ns2:Map">
|
13
|
-
<item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.2</value></item>
|
14
|
-
<item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2011-05-19 14:23:57</value></item>
|
15
|
-
<item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item>
|
16
|
-
<item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item>
|
17
|
-
</item>
|
18
|
-
</Result>
|
19
|
-
</ns1:getIpListDetailedResponse>
|
20
|
-
</SOAP-ENV:Body></SOAP-ENV:Envelope>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:xmethods-delayed-quotes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
3
|
-
<SOAP-ENV:Body>
|
4
|
-
<ns1:reactivateIpResponse>
|
5
|
-
<Result xsi:type="ns2:Map">
|
6
|
-
<item><key xsi:type="xsd:string">ipAddress</key><value xsi:type="xsd:string">127.0.0.1</value></item>
|
7
|
-
<item><key xsi:type="xsd:string">addedOn</key><value xsi:type="xsd:string">2010-06-10 17:05:31</value></item>
|
8
|
-
<item><key xsi:type="xsd:string">isVPS</key><value xsi:type="xsd:string">No</value></item>
|
9
|
-
<item><key xsi:type="xsd:string">status</key><value xsi:type="xsd:string">Active</value></item>
|
10
|
-
</Result>
|
11
|
-
</ns1:reactivateIpResponse>
|
12
|
-
</SOAP-ENV:Body>
|
13
|
-
</SOAP-ENV:Envelope>
|