Merge lp:~gnuoy/charms/trusty/mysql/1567971 into lp:charms/trusty/mysql

Proposed by Liam Young
Status: Merged
Merged at revision: 158
Proposed branch: lp:~gnuoy/charms/trusty/mysql/1567971
Merge into: lp:charms/trusty/mysql
Diff against target: 31 lines (+11/-3)
1 file modified
tests/basic_deployment.py (+11/-3)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/mysql/1567971
Reviewer Review Type Date Requested Status
Ryan Beisner (community) Approve
Review via email: mp+291388@code.launchpad.net
To post a comment you must log in.
159. By Liam Young

tests/021-basic-xenial-mitaka was enabled in error

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2202 mysql for gnuoy mp291388
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/2202/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1774 mysql for gnuoy mp291388
    UNIT OK: passed

Build: http://10.245.162.36:8080/job/charm_unit_test/1774/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2203 mysql for gnuoy mp291388
    LINT OK: passed

Build: http://10.245.162.36:8080/job/charm_lint_check/2203/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1775 mysql for gnuoy mp291388
    UNIT OK: passed

Build: http://10.245.162.36:8080/job/charm_unit_test/1775/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #691 mysql for gnuoy mp291388
    AMULET OK: passed

Build: http://10.245.162.36:8080/job/charm_amulet_test/691/

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Thanks for the test update.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/basic_deployment.py'
2--- tests/basic_deployment.py 2016-01-13 18:29:37 +0000
3+++ tests/basic_deployment.py 2016-04-08 16:02:51 +0000
4@@ -86,6 +86,9 @@
5 self.mysql_sentry: ['mysql'],
6 self.keystone_sentry: ['keystone']
7 }
8+ if self._get_openstack_release() >= self.trusty_liberty:
9+ services[self.keystone_sentry] = ['apache2']
10+
11 ret = u.validate_services_by_name(services)
12 if ret:
13 amulet.raise_status(amulet.FAIL, msg=ret)
14@@ -94,9 +97,14 @@
15 """Verify that the user table in the keystone mysql database
16 contains an admin user with a specific email address."""
17
18- cmd = ("export FOO=$(sudo cat /var/lib/mysql/mysql.passwd);"
19- "mysql -u root -p$FOO -e "
20- "\"SELECT extra FROM keystone.user WHERE name='admin';\"")
21+ if self._get_openstack_release() >= self.trusty_mitaka:
22+ query = ("SELECT extra FROM local_user, user WHERE "
23+ "local_user.user_id = user.id;")
24+ else:
25+ query = ("SELECT extra FROM user WHERE name='admin'")
26+
27+ cmd = ('export FOO=$(sudo cat /var/lib/mysql/mysql.passwd);'
28+ 'mysql -u root -p$FOO -D keystone -e "{}"').format(query)
29
30 output, retcode = self.mysql_sentry.run(cmd)
31 u.log.debug('command: `{}` returned {}'.format(cmd, retcode))

Subscribers

People subscribed via source and target branches

to all changes: