Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 474f475

Browse files
author
Vic Iglesias
committed
Fix tests and bump version
1 parent 8389615 commit 474f475

3 files changed

Lines changed: 7 additions & 25 deletions

File tree

.kitchen.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ platforms:
1111
box: chef/centos-6.5
1212
network:
1313
- ["forwarded_port", {guest: 8080, host: 8080}]
14-
- ["forwarded_port", {guest: 80, host: 8888}]
1514
customize:
1615
cpus: 2
1716
memory: 3024
@@ -23,10 +22,5 @@ suites:
2322
- recipe[midokura]
2423
attributes:
2524
midokura:
26-
repo-username: 'eucalyptus'
27-
repo-password: '8yU8Pj6h'
2825
midolman-host-mapping:
2926
'default-centos-65.vagrantup.com': '10.0.2.15'
30-
tomcat-url: "<param-value>http://default-centos-65.vagrantup.com:8080/midonet-api</param-value>"
31-
32-

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'BSD'
55
description 'Installs/Configures midokura'
66
long_description 'Installs/Configures midokura'
7-
version '0.1.0'
7+
version '0.2.0'
88
depends 'java'
99
depends 'yum-epel'
1010
depends 'cassandra'
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
require 'serverspec'
22

3-
include Serverspec::Helper::Exec
4-
include Serverspec::Helper::DetectOS
5-
6-
RSpec.configure do |c|
7-
c.before :all do
8-
c.path = '/sbin:/usr/sbin'
9-
end
10-
end
3+
set :backend, :exec
114

125
describe "Midokura Default" do
136
### Ensure packages are installed
14-
%w{zookeeper dsc20 tomcat6 httpd midolman midonet-cp}.each do |package_name|
7+
%w{zookeeper dsc20 tomcat6 midolman}.each do |package_name|
158
describe package(package_name) do
169
it { should be_installed }
1710
end
1811
end
1912

2013
### Ensure services are enabled (midolman does not allow itself to be enabled)
21-
%w{zookeeper cassandra httpd tomcat6}.each do |service_name|
14+
%w{zookeeper cassandra tomcat6}.each do |service_name|
2215
describe service(service_name) do
2316
it { should be_enabled }
2417
it { should be_running }
@@ -30,22 +23,17 @@
3023

3124
### Ensure ports are open for:
3225
### midonet-api midonet-cp zookeeper cassandra
33-
%w{8080 80 2181 9160 7199 9042 7000}.each do |port_number|
26+
%w{8080 2181 9160 7199 9042 7000}.each do |port_number|
3427
describe port(port_number) do
3528
it { should be_listening }
3629
end
3730
end
3831

3932
### Check midonet-api
4033
describe command('curl http://localhost:8080/') do
41-
it { should return_exit_status 0 }
34+
its(:exit_status) { should eq 0 }
4235
end
4336
describe command('curl http://localhost:8080/midonet-api/') do
44-
it { should return_exit_status 0 }
45-
end
46-
47-
### Check midonet-cp
48-
describe command('curl http://localhost/midonet-cp/') do
49-
it { should return_exit_status 0 }
37+
its(:exit_status) { should eq 0 }
5038
end
5139
end

0 commit comments

Comments
 (0)