abiquo-installer-tests 0.2.2 → 0.2.3

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/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.2'
8
+ gem.version = '0.2.3'
9
9
  gem.name = "abiquo-installer-tests"
10
10
  gem.homepage = "http://github.com/abiquo/abiquo-installer-tests"
11
11
  gem.license = "MIT"
@@ -78,10 +78,12 @@ end
78
78
  begin
79
79
  Net::SSH.start(cli.config[:host], 'root', :password => cli.config[:password], :paranoid => false) do |ssh|
80
80
  output = ssh.exec!("cd /tmp/tests/ && ruby abiquo_postinst_test.rb")
81
+ puts output
81
82
  if output =~ /Failure/m
82
- puts "\n>>>>>> TEST FAILED! <<<<<<".bold.red
83
+ puts "\n>>>>>> TEST FAILED! <<<<<<\n\n".bold.red
84
+ else
85
+ puts "\n>>>>>> TEST OK <<<<<<\n\n".bold.green
83
86
  end
84
- puts output
85
87
  end
86
88
  rescue Exception => e
87
89
  $stderr.puts "Error running tests in remote host #{cli.config[:host]}: #{e.message}"
@@ -1,5 +1,21 @@
1
1
  class AbiquoPlatformTest < Test::Unit::TestCase
2
2
 
3
+ def test_version_string
4
+ assert File.read('/etc/abiquo-release') =~ /1\.8\.0 Pilaf/
5
+ end
6
+
7
+ def test_tomcat_core_version
8
+ assert `rpm -q abiquo-core` =~ /abiquo-core-1\.8-5\.el5/
9
+ end
10
+
11
+ def test_abiquo_etk_version
12
+ assert `rpm -q rubygem-abiquo-etk` =~ /0\.5\.7/
13
+ end
14
+
15
+ def test_motd_version
16
+ assert(File.read('/etc/motd') =~ /(Abiquo Enterprise Edition 1\.8 Pilaf)/m)
17
+ end
18
+
3
19
  def test_tomcat_running
4
20
  assert !`ps aux|grep java|grep '/opt/abiquo/tomcat'`.strip.chomp.empty?,
5
21
  "Abiquo Tomcat is not Running"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-installer-tests
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-08 00:00:00 Z
18
+ date: 2011-07-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: term-ansicolor