abiquo-installer-tests 0.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +4 -1
  2. data/tests/1.8.0/abiquo_platform.rb +8 -4
  3. metadata +52 -6
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake'
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
8
- gem.version = '0.2'
8
+ gem.version = '0.2.1'
9
9
  gem.name = "abiquo-installer-tests"
10
10
  gem.homepage = "http://github.com/abiquo/abiquo-installer-tests"
11
11
  gem.license = "MIT"
@@ -16,6 +16,9 @@ Jeweler::Tasks.new do |gem|
16
16
  # Include your dependencies below. Runtime dependencies are required when using your gem,
17
17
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
18
18
  gem.add_runtime_dependency 'term-ansicolor', '>= 1.0'
19
+ gem.add_runtime_dependency 'net-ssh', '>= 2.0'
20
+ gem.add_runtime_dependency 'net-scp', '>= 1.0'
21
+ gem.add_runtime_dependency 'net-sftp', '>= 2.0'
19
22
  gem.add_runtime_dependency 'iniparse', '>= 1.0'
20
23
  gem.add_runtime_dependency 'mixlib-cli', '>= 1.2'
21
24
  # gem.add_development_dependency 'rspec', '> 1.2.3'
@@ -1,19 +1,23 @@
1
1
  class AbiquoPlatformTest < Test::Unit::TestCase
2
2
 
3
3
  def test_tomcat_running
4
- assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?
4
+ assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?,
5
+ "Abiquo Tomcat is not Running"
5
6
  end
6
7
 
7
8
  def test_tomcat_enabled
8
- assert ::TestUtils.service_on?('abiquo-tomcat')
9
+ assert ::TestUtils.service_on?('abiquo-tomcat'),
10
+ "abiquo-tomcat service is not enabled"
9
11
  end
10
12
 
11
13
  def test_abiquo_dir
12
- assert File.directory? '/opt/abiquo/tomcat'
14
+ assert File.directory?('/opt/abiquo/tomcat'),
15
+ "/opt/abiquo/tomcat directory does not exist"
13
16
  end
14
17
 
15
18
  def test_firewall_service_enabled
16
- assert !::TestUtils.service_on?('iptables')
19
+ assert !::TestUtils.service_on?('iptables'),
20
+ "iptables service is enabled. This might be ok but double check if you are having network issues"
17
21
  end
18
22
 
19
23
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-installer-tests
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- version: "0.2"
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Sergio Rubio
@@ -32,9 +33,24 @@ dependencies:
32
33
  type: :runtime
33
34
  version_requirements: *id001
34
35
  - !ruby/object:Gem::Dependency
35
- name: iniparse
36
+ name: net-ssh
36
37
  prerelease: false
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 2
46
+ - 0
47
+ version: "2.0"
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: net-scp
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
38
54
  none: false
39
55
  requirements:
40
56
  - - ">="
@@ -45,11 +61,41 @@ dependencies:
45
61
  - 0
46
62
  version: "1.0"
47
63
  type: :runtime
48
- version_requirements: *id002
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: net-sftp
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 2
76
+ - 0
77
+ version: "2.0"
78
+ type: :runtime
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: iniparse
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 15
89
+ segments:
90
+ - 1
91
+ - 0
92
+ version: "1.0"
93
+ type: :runtime
94
+ version_requirements: *id005
49
95
  - !ruby/object:Gem::Dependency
50
96
  name: mixlib-cli
51
97
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
98
+ requirement: &id006 !ruby/object:Gem::Requirement
53
99
  none: false
54
100
  requirements:
55
101
  - - ">="
@@ -60,7 +106,7 @@ dependencies:
60
106
  - 2
61
107
  version: "1.2"
62
108
  type: :runtime
63
- version_requirements: *id003
109
+ version_requirements: *id006
64
110
  description: Tests and troubleshoot Abiquo installations
65
111
  email: srubio@abiquo.com
66
112
  executables: