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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 022c759b33b8821e08a7d4fea01ea166d770b2d3
4
- data.tar.gz: 632ab9c8d7bac63b1231dbcffa082b4781fae524
3
+ metadata.gz: a3aa3edfca56f83323d22cb6a84a53175b339a13
4
+ data.tar.gz: 70d013605ddc21dd0dcd55359b2403bc6ae37cf6
5
5
  SHA512:
6
- metadata.gz: 9e35139e7064bb059e86401773adf1c3f673045ab5c0626a0f78d31105220a74e20c6edc920d995e8c3a46b540bbfb08ab38d6b26d6003be6d8d4770c74c1236
7
- data.tar.gz: 59ac8599255fc691fea51eef235c639dbc573b40f763a08c2409ac73c498108c7043140ae485d695b9548a921ef279115ea3d8135431ba11440727753e544f7f
6
+ metadata.gz: a675bc64deaef9d3374769d4a1a214bd0975bce83f3c426c22f08e1fb173698ffa527f74b715c1b3e0b89bc4665dbca1fff75aaa0033d32fb3caf8c38691178f
7
+ data.tar.gz: 5e6878b594fd65252d8e446ef9e4360887989429829967b7e5ecd3bbe2ce0d04e56f77b17041352ff41d0f8426c7dbc7129de5fc80528425812f62d475011212
@@ -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.2, 1.9.3, 2.0.0 and 1.9-compatible
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.
@@ -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}" }
@@ -1,3 +1,3 @@
1
1
  module SolusVM
2
- VERSION = "2.0.0.beta5"
2
+ VERSION = "2.0.0.beta6"
3
3
  end
@@ -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.beta5
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: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor