Skip to content

Commit

Permalink
[1chb1n, r=thedac] wait for unit status and turn on releases for amul…
Browse files Browse the repository at this point in the history
…et tests
  • Loading branch information
David Ames committed Jan 21, 2016
2 parents 09e1405 + 14c9719 commit 0ae4bc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Empty file modified tests/018-basic-trusty-liberty
100644 → 100755
Empty file.
Empty file modified tests/019-basic-trusty-mitaka
100644 → 100755
Empty file.
Empty file modified tests/020-basic-wily-liberty
100644 → 100755
Empty file.
12 changes: 8 additions & 4 deletions tests/basic_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import amulet
import os
import time
import yaml

from charmhelpers.contrib.openstack.amulet.deployment import (
Expand Down Expand Up @@ -36,6 +35,11 @@ def __init__(self, series=None, openstack=None,
self._add_relations()
self._configure_services()
self._deploy()

u.log.info('Waiting on extended status checks...')
exclude_services = ['mysql']
self._auto_wait_for_status(exclude_services=exclude_services)

self._initialize_tests()

def _assert_services(self, should_run):
Expand All @@ -52,13 +56,16 @@ def _add_services(self):
"""
this_service = {'name': 'keystone'}
other_services = [{'name': 'mysql'},
{'name': 'rabbitmq-server'}, # satisfy wrkload stat
{'name': 'cinder'}]
super(KeystoneBasicDeployment, self)._add_services(this_service,
other_services)

def _add_relations(self):
"""Add all of the relations for the services."""
relations = {'keystone:shared-db': 'mysql:shared-db',
'cinder:shared-db': 'mysql:shared-db',
'cinder:amqp': 'rabbitmq-server:amqp',
'cinder:identity-service': 'keystone:identity-service'}
super(KeystoneBasicDeployment, self)._add_relations(relations)

Expand Down Expand Up @@ -113,9 +120,6 @@ def _initialize_tests(self):
u.log.debug('openstack release str: {}'.format(
self._get_openstack_release_string()))

# Let things settle a bit before moving forward
time.sleep(30)

# Authenticate keystone admin
self.keystone = u.authenticate_keystone_admin(self.keystone_sentry,
user='admin',
Expand Down

0 comments on commit 0ae4bc6

Please sign in to comment.