Commit Graph

627 Commits

Author SHA1 Message Date
Alex Kavanagh 89980f1cc5 Fix using bools with libjuju 2019-09-25 14:43:10 +01:00
Alex Kavanagh 8aa4102855 Fix config setting code 2019-09-25 14:43:10 +01:00
Alex Kavanagh 99db1e3eab Fix test with None path 2019-09-25 14:43:10 +01:00
Alex Kavanagh 677de69b9a More fixes to super calls 2019-09-25 14:43:10 +01:00
Alex Kavanagh 5e2fbf9639 Fix class super calls 2019-09-25 14:43:10 +01:00
Alex Kavanagh 028956dd29 Add initial policyd initial test
Add the initial, general, 'success' test for policyd support in charms.
2019-09-25 14:43:10 +01:00
Liam Young 258b2283d0 Merge pull request #59 from ed1000/add-ceilometer
Porting Ceilometer tests to Zaza
2019-09-25 13:39:40 +01:00
Eduardo Sousa 730cd788c8 Fixing skip test message 2019-09-25 13:31:40 +01:00
Eduardo Sousa c94fbceac1 Refactoring variables and properties 2019-09-24 16:20:03 +01:00
Frode Nordahl 68258ac183 Merge pull request #61 from gnuoy/wait-longer-for-boot
Increase wait time for guest to boot.
2019-09-24 12:11:49 +02:00
Liam Young af856138ee Increase wait time for guest to boot.
Zaza seems to currently wait for 64+32+16+8+4+2+1 seconds (127) for
a guest to boot. This is not quite enough sometimes, so increase
this to 511 seconds.
2019-09-23 15:15:11 +01:00
Eduardo Sousa 6cab1f8b85 Porting Ceilometer tests to Zaza
Porting the Amulet tests from Ceilometer to the Zaza framework.

The Amulet tests can be found here:
https://opendev.org/openstack/charm-ceilometer/src/branch/master/tests/basic_deployment.py
2019-09-18 17:48:09 +01:00
David Ames 60f9bafb0a Merge pull request #55 from guoqiao/migrate-gss
migrate glance-simplestreams-sync from Amulet to Zaza
2019-09-12 10:56:15 -07:00
Chris MacNaughton fd4e5b7f04 Merge pull request #56 from openstack-charmers/fix-cert-tz
Use UTC when calculating certificate validity
2019-09-10 13:38:58 +02:00
Joe Guo 63e9b4cf1b Migrate glance-simplestreams-sync tests from Amulet to Zaza
Migrate tests from Amulet to Zaza in:

    charm-glance-simplestreams-sync/tests/basic_deployment.py

Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-10 22:38:00 +12:00
Frode Nordahl caed1ceeb3 Use UTC when calculating certificate validity
The current usage of ``datetime.today()`` is at the grace of the
locale settings of the test executor and the instances spun up.

The ``cryptography.x509.CertificateBuilder`` ``not_valud_before``
and ``not_valid_after`` attributes do expect [0] a UTC datetime.

0: https://cryptography.io/en/latest/x509/reference/#cryptography.x509.CertificateBuilder
2019-09-10 12:14:52 +02:00
David Ames 4a5f72ad05 Merge pull request #50 from guoqiao/migrate-glance
charm_tests/glance: migrate Amulet tests to Zaza
2019-09-09 15:33:27 -07:00
Joe Guo fd83175f54 charm_tests/glance: migrate Amulet tests to Zaza
This patch is the peer change for:

    https://review.opendev.org/#/c/679599/

charm-glance currently has following Amulet tests:

    https://github.com/openstack/charm-glance/blob/master/tests/basic_deployment.py

The 1xx, 2xx and 5xx ones are mostly covered in zaza keystone tests, or could
be skipped in zaza.

Add the only missing 900 one, to test glance restart on config change.

Test option `debug` instead of `use-syslog` to avoid conversion between
`-` and `_`, which is out the scope of this test.

Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-04 19:46:32 +12:00
Frode Nordahl a03ecb4488 Merge pull request #49 from openstack-charmers/feature/train
Update versions to include Train
2019-09-03 08:27:41 +02:00
Chris MacNaughton 52a26a9254 Update versions to include Train 2019-09-02 16:09:42 +02:00
David Ames ca60d1bdd1 Merge pull request #47 from openstack-charmers/sleep-roundup-1908a
Flag existing time.sleep usage for refactor
2019-08-30 13:50:38 -07:00
Ryan Beisner 9333b47a86 Flag existing time.sleep usage for refactor
https://github.com/openstack-charmers/zaza-openstack-tests/issues/46
2019-08-30 15:41:28 -05:00
Ryan Beisner 2244f131a0 Merge pull request #45 from camille-rodriguez/wait-for-server
Verify instances status before going starting the instances
2019-08-30 14:30:34 -05:00
Camille Rodriguez 9061ad9847 Verify instances status before going starting the instances 2019-08-30 15:26:54 -04:00
Camille Rodriguez 94e1d8f7ed Verify instances status before going starting the instances 2019-08-30 15:01:36 -04:00
David Ames 110b3cbd25 Merge pull request #42 from openstack-charmers/update-openstack-func-proxy
Consume the http proxy info using the new OS_ env var fmt
2019-08-29 10:51:04 -07:00
Ryan Beisner c77bf176d7 Consume the http proxy info using the new OS_ env var fmt 2019-08-29 12:43:46 -05:00
David Ames c05cce5b3e Merge pull request #41 from thedac/set-ksm-app-name
Explicitly set KSM application name
2019-08-16 13:04:27 -07:00
David Ames 4172efd8c6 Explicitly set KSM application name
After a change to the way application name is set and because
keystone-saml-mellon uses BaseKeystoneTest which sets the application
name to "keystone" which breaks KSM actions.

This change explicitly sets application name to keystone-saml-mellon.
2019-08-16 11:26:37 -07:00
Liam Young 07beb2a162 Merge pull request #40 from ajkavanagh/add-subordinate-pause-blacklist
Add a subordinate blacklist for pausing services
2019-08-07 15:09:06 +01:00
Alex Kavanagh f06b957081 Fix issue that it's a unit rather than app
This matches on an unit, rather than an app, which  was the original
intention.
2019-08-05 09:31:05 +01:00
Alex Kavanagh 14f0f53e49 Add a subordinate blacklist for pausing services
During the series upgrade tests, zaza pauses subordinate services.
However, the cinder-ceph charm has no pause/resume action, and so the
test fails.  This PR adds a blacklist that ensures that the cinder-ceph
subordinate is not paused during series upgrade.
2019-08-04 15:40:38 +01:00
Liam Young e6bf791d4e Merge pull request #39 from thedac/wait-on-ceilometer
Ceilometer is in a blocked state until action run
2019-08-01 18:23:45 +01:00
David Ames 1de731a70f Ceilometer is in a blocked state until action run
For a full stack deployment ceilometer will be in a blocked state waiting
on the ceilometer-action run.

Add this to the workload exceptions dict.
2019-08-01 10:18:59 -07:00
David Ames 561581f6d1 Merge pull request #38 from gnuoy/limit-restart-hook-resolves
Only auto-resolve update-status hooks
2019-07-30 08:56:47 -07:00
Liam Young 0f9fc9c49b Only auto-resolve update-status hooks
If a unit is rebooted while executing a hook Juju will mark it as
errored when it comes back. To work around this in tests, units in
an error state are resolved on reboot. However, this could mask a
genuine error. So, to minimise the risk only resolve units that
went into an error state when running update-status as the system
was in a stable state prior to reboot so that should have been the
only hook running.

Charm going into an error state on reboot applies equally to
subordinates so use the same logic for hacluster.

block_until_all_units_idle can return when a subordinate hook is
still queued so check for update-status errors when manually
queuing update-status run via action.
2019-07-30 14:23:31 +00:00
Chris MacNaughton 20402e4f30 Merge pull request #36 from gnuoy/pxc-reboot-error-state
Resolve hook errors after pxc reboot
2019-07-25 09:35:52 -05:00
Liam Young 7c0ee7389f Resolve hook errors after pxc reboot 2019-07-25 13:58:29 +00:00
Frode Nordahl 08530697a9 Merge pull request #35 from gnuoy/improve-masakari-pid-check
Fix small window when qemu pid has not yet appeared
2019-07-22 03:32:15 -07:00
Frode Nordahl f42655d443 Merge pull request #34 from gnuoy/bug/1826382
Ensure nova-compute is restarted when certs change
2019-07-22 03:31:59 -07:00
Liam Young fafa0f7a8e Fix small window when qemu pid has not yet appeared 2019-07-22 10:20:26 +00:00
Liam Young 025e1f4830 Ensure nova-compute is restarted when certs change
This is a temporary fix to work around a bug in nova-compute.
The bug causes nova-compute to cache the placement api endpoint
which causes placement api calls to fail when the endpoint switches
from http to https
2019-07-22 08:09:54 +00:00
Frode Nordahl f0b512475d Merge pull request #33 from gnuoy/fix-masakari-tests
Fix bug introduced by zaza reorg
2019-07-22 01:08:42 -07:00
Liam Young 171ecb411e Fix bug introduced by zaza reorg 2019-07-22 07:27:41 +00:00
Chris MacNaughton 125e076868 Merge pull request #32 from openstack-charmers/octavia-dvr-test
octavia: Add setup and test code for DVR
2019-07-19 07:31:36 -05:00
Frode Nordahl bf23d80a1b octavia: Add setup and test code for DVR 2019-07-19 13:19:23 +02:00
Liam Young bf2c7bba48 Merge pull request #30 from thedac/percona-zaza-tests
Zaza tests for percona-cluster
2019-07-18 12:35:24 +01:00
David Ames 81604c399b Review requests for Liam 2019-07-17 11:07:52 -07:00
David Ames 05517b566e Review requests for Alex 2019-07-17 08:50:07 -07:00
Liam Young 18d928a55e Merge pull request #31 from openstack-charmers/fix-octavia-payload-ips
octavia: Fix gathering of payload ips
2019-07-16 11:15:55 +01:00