Enable bionic/stein and disco/stein functional tests

Drop service check for ``glance-registry``.  The service is
removed as of Stein, and it really is not this charm functional
tests job of checking this anyway.  Any such detail should
be deferred to the ``charm-glance`` functional tests.

Update templates/usr.bin.nova-compute as nova-compute requires
read access to /etc/mime.types.

Change-Id: I9a894ef2a3395ead2509edd4a6b8885a1739e974
This commit is contained in:
Frode Nordahl 2019-04-08 13:52:23 +02:00 committed by Corey Bryant
parent a5a0449558
commit 87940caf39
4 changed files with 50 additions and 2 deletions

View File

@ -39,6 +39,7 @@
/etc/environment r,
/etc/iscsi/** rw,
/etc/machine-id r,
/etc/mime.types r,
/etc/modprobe.d/ r,
/etc/modprobe.d/** r,
/etc/mtab rw,

View File

@ -285,8 +285,7 @@ class NovaBasicDeployment(OpenStackAmuletDeployment):
'nova-api'],
self.nova_cc_sentry: ['nova-conductor'],
self.keystone_sentry: ['keystone'],
self.glance_sentry: ['glance-registry',
'glance-api']
self.glance_sentry: ['glance-api']
}
if self._get_openstack_release() >= self.trusty_liberty:

23
tests/dev-basic-disco-stein Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Amulet tests on a basic nova compute deployment on disco-stein."""
from basic_deployment import NovaBasicDeployment
if __name__ == '__main__':
deployment = NovaBasicDeployment(series='disco')
deployment.run_tests()

25
tests/gate-basic-bionic-stein Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env python
#
# Copyright 2016 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Amulet tests on a basic nova compute deployment on bionic-stein."""
from basic_deployment import NovaBasicDeployment
if __name__ == '__main__':
deployment = NovaBasicDeployment(series='bionic',
openstack='cloud:bionic-stein',
source='cloud:bionic-stein')
deployment.run_tests()