From 8663888d38b52d3cb80219717a15238d494a245c Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Wed, 19 Sep 2018 00:24:17 +0200 Subject: [PATCH] Test Magnum API with WSGI Changes the acceptance testing to run the Magnum API under WSGI with Apache. Change-Id: I09826f6fbc68dc55f9274d7ad1ba54f069d42143 --- spec/acceptance/basic_magnum_spec.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spec/acceptance/basic_magnum_spec.rb b/spec/acceptance/basic_magnum_spec.rb index eabc50d..51d4a90 100755 --- a/spec/acceptance/basic_magnum_spec.rb +++ b/spec/acceptance/basic_magnum_spec.rb @@ -64,12 +64,13 @@ describe 'basic magnum' do notification_driver => 'messagingv2', } - class { '::magnum::api': - host => '127.0.0.1', + class { '::magnum::api': + service_name => 'httpd', } + include ::apache + include ::magnum::wsgi::apache class { '::magnum::conductor': } - class { '::magnum::client': } class { '::magnum::certificates': @@ -84,7 +85,7 @@ describe 'basic magnum' do end describe port(9511) do - it { is_expected.to be_listening.with('tcp') } + it { is_expected.to be_listening.with('tcp6') } end end