Test Magnum API with WSGI

Changes the acceptance testing to run the
Magnum API under WSGI with Apache.

Change-Id: I09826f6fbc68dc55f9274d7ad1ba54f069d42143
This commit is contained in:
Tobias Urdin 2018-09-19 00:24:17 +02:00
parent e16f87c6ac
commit 8663888d38
1 changed files with 5 additions and 4 deletions

View File

@ -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