diff --git a/src/lib/charm/openstack/keystone_ldap.py b/src/lib/charm/openstack/keystone_ldap.py index 89a24ba..f501909 100644 --- a/src/lib/charm/openstack/keystone_ldap.py +++ b/src/lib/charm/openstack/keystone_ldap.py @@ -53,7 +53,7 @@ class KeystoneLDAPCharm(charms_openstack.charm.OpenStackCharm): release = 'mitaka' # List of packages to install for this charm - packages = ['python-ldap', 'python-ldappool'] + packages = ['python-ldappool'] configuration_class = KeystoneLDAPConfigurationAdapter diff --git a/src/metadata.yaml b/src/metadata.yaml index a9731f6..eea0e8e 100644 --- a/src/metadata.yaml +++ b/src/metadata.yaml @@ -15,6 +15,7 @@ tags: - identity series: - xenial + - zesty - trusty - yakkety provides: diff --git a/src/tests/basic_deployment.py b/src/tests/basic_deployment.py index ffaae5b..9c5466b 100644 --- a/src/tests/basic_deployment.py +++ b/src/tests/basic_deployment.py @@ -50,10 +50,13 @@ class KeystoneLDAPCharmDeployment(amulet_deployment.OpenStackAmuletDeployment): this_service = {'name': 'keystone-ldap'} other_services = [ {'name': 'keystone'}, - {'name': 'percona-cluster', 'constraints': {'mem': '3072M'}}, + {'name': 'percona-cluster'}, ] - super(KeystoneLDAPCharmDeployment, self)._add_services(this_service, - other_services) + super(KeystoneLDAPCharmDeployment, self)._add_services( + this_service, + other_services, + no_origin=['keystone-ldap'] + ) def _add_relations(self): """Add all of the relations for the services.""" @@ -72,10 +75,7 @@ class KeystoneLDAPCharmDeployment(amulet_deployment.OpenStackAmuletDeployment): } keystone_ldap_config = self._get_ldap_config() pxc_config = { - 'dataset-size': '25%', 'max-connections': 1000, - 'root-password': 'ChangeMe123', - 'sst-password': 'ChangeMe123', } configs = {'keystone': keystone_config, 'keystone-ldap': keystone_ldap_config, diff --git a/src/tests/gate-basic-zesty-ocata b/src/tests/gate-basic-zesty-ocata new file mode 100644 index 0000000..db3feaa --- /dev/null +++ b/src/tests/gate-basic-zesty-ocata @@ -0,0 +1,23 @@ +#!/usr/bin/env python +# +# Copyright 2017 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 Keystone LDAP Charm deployment on zesty-ocata.""" + +from basic_deployment import KeystoneLDAPCharmDeployment + +if __name__ == '__main__': + deployment = KeystoneLDAPCharmDeployment(series='zesty') + deployment.run_tests() diff --git a/src/tox.ini b/src/tox.ini index 479d7bb..3bc4d0b 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir} PYTHONHASHSEED=0 AMULET_SETUP_TIMEOUT=2700 whitelist_externals = juju -passenv = HOME TERM AMULET_* +passenv = HOME TERM AMULET_* CS_API_URL deps = -r{toxinidir}/test-requirements.txt install_command = pip install --allow-unverified python-apt {opts} {packages}