From add2cce17e3f3b9fcdd98082ed513d396ac980fd Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 15 Dec 2016 15:47:43 +0800 Subject: [PATCH] Add the port check for breaker Change-Id: I7e9c5fc37a3abf2b5077263678b131dd9768b190 --- spec/acceptance/octavia_spec.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/octavia_spec.rb b/spec/acceptance/octavia_spec.rb index ef320e14..db9a833a 100644 --- a/spec/acceptance/octavia_spec.rb +++ b/spec/acceptance/octavia_spec.rb @@ -50,7 +50,7 @@ describe 'basic octavia' do password => 'octavia_pass', } class { '::octavia::api': - sync_db => true, + sync_db => true, } class { '::octavia::worker': amp_flavor_id => '65', @@ -71,6 +71,13 @@ describe 'basic octavia' do apply_manifest(pp, :catch_failures => true) apply_manifest(pp, :catch_changes => true) end + + if os[:family].casecmp('RedHat') == 0 + describe port(9876) do + it { is_expected.to be_listening } + end + end + end end