solusvm 2.0.0.beta5 → 2.0.0.beta6
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.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/solusvm/base.rb +2 -0
- data/lib/solusvm/version.rb +1 -1
- data/test/solusvm/test_base.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3aa3edfca56f83323d22cb6a84a53175b339a13
|
4
|
+
data.tar.gz: 70d013605ddc21dd0dcd55359b2403bc6ae37cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a675bc64deaef9d3374769d4a1a214bd0975bce83f3c426c22f08e1fb173698ffa527f74b715c1b3e0b89bc4665dbca1fff75aaa0033d32fb3caf8c38691178f
|
7
|
+
data.tar.gz: 5e6878b594fd65252d8e446ef9e4360887989429829967b7e5ecd3bbe2ce0d04e56f77b17041352ff41d0f8426c7dbc7129de5fc80528425812f62d475011212
|
data/README.markdown
CHANGED
@@ -4,7 +4,7 @@ SolusVM [![SolusVM Build Status][Build Icon]][Build Status]
|
|
4
4
|
SolusVM allows for easy interaction with the [SolusVM Admin::API][].
|
5
5
|
This library was first created for internal use at [Site5 LLC][].
|
6
6
|
|
7
|
-
SolusVM has been tested on MRI versions 1.9.
|
7
|
+
SolusVM has been tested on MRI versions 1.9.3, 2.0.0, 2.1.2 and 1.9-compatible
|
8
8
|
JRuby.
|
9
9
|
|
10
10
|
Documentation is available in [TomDoc][] format.
|
data/lib/solusvm/base.rb
CHANGED
@@ -99,6 +99,8 @@ module SolusVM
|
|
99
99
|
raise AuthenticationError, "Invalid ID or key"
|
100
100
|
when /Node not found/i
|
101
101
|
{ "status" => "error", "statusmsg" => "Node does not exist" }
|
102
|
+
when /Virtual server not found/i
|
103
|
+
{ "status" => "error", "statusmsg" => "Virtual server does not exist" }
|
102
104
|
end
|
103
105
|
else
|
104
106
|
{ "status" => "error", "statusmsg" => "Bad HTTP Status: #{status}" }
|
data/lib/solusvm/version.rb
CHANGED
data/test/solusvm/test_base.rb
CHANGED
@@ -75,13 +75,23 @@ class TestBase < Test::Unit::TestCase
|
|
75
75
|
setup_sham_rack { "Node not found" }
|
76
76
|
|
77
77
|
assert !@base.perform_request(action: 'nodeexist')
|
78
|
+
assert !@base.successful?
|
78
79
|
assert_equal "Node does not exist", @base.statusmsg
|
79
80
|
end
|
80
81
|
|
82
|
+
def test_virtual_server_does_not_exist
|
83
|
+
setup_sham_rack { "Virtual server not found" }
|
84
|
+
|
85
|
+
assert !@base.perform_request(action: 'status')
|
86
|
+
assert !@base.successful?
|
87
|
+
assert_equal "Virtual server does not exist", @base.statusmsg
|
88
|
+
end
|
89
|
+
|
81
90
|
def test_invalid_http_status
|
82
91
|
setup_sham_rack { status 404 }
|
83
92
|
|
84
93
|
assert !@base.perform_request(action: 'httperror')
|
94
|
+
assert !@base.successful?
|
85
95
|
assert_equal "Bad HTTP Status: 404", @base.statusmsg
|
86
96
|
end
|
87
97
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solusvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Mazzi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|