redhat-cip / openstack-serverspec

The serverspec tests for the puppet-openstack-cloud module
Apache License 2.0
12 stars 13 forks source link

Unable to have dedicated mongodb hosts #72

Closed dsavineau closed 9 years ago

dsavineau commented 9 years ago

Currently we are checking mongodb process in two tests :

When using mongodb on dedicated hosts serverspec fails on telemetryserver_spec.rb because we don't have mongodb on controller nodes.

controller1:
/usr/bin/ruby -S rspec spec/base/base_spec.rb spec/controller/controller_spec.rb spec/dashboard/dashboard_spec.rb spec/identity/identity_spec.rb spec/lb/lb_spec.rb -t ~host:controller1.osll.lab.eng.rdu.redhat.com
Run options: exclude {:host=>"controller1.domain.org"}
................F...............................................................

Failures:

  1) Port "27017" should be listening
     Failure/Error: it { should be_listening.with('tcp') }
       sudo netstat -tunl | grep -- \^tcp\ .\*:27017\ 
       expected Port "27017" to be listening
     # ./spec/tests/telemetryserver/telemetryserver_spec.rb:12:in `block (2 levels) in <top (required)>'