Commit Graph

807 Commits

Author SHA1 Message Date
Frode Nordahl
0163f79ec2 Teach `configure_gateway_ext_port()` about OVN
Also stop using ``juju_wait``.
2019-11-01 06:52:22 +01:00
Frode Nordahl
7d1d04a742 Deduce whether DVR is enabled from neutron-api config
Add helper to detect presence of OVN in deployment
2019-11-01 06:39:17 +01:00
Frode Nordahl
85927e20c6 Add helper to get uuids of machines w/OVN chassis
Refactor get_machines_for_application as generator function instead
of building and passing on static List.
2019-11-01 06:39:07 +01:00
Frode Nordahl
0f9d439bfd Merge pull request #104 from ajkavanagh/bug/1828424/openstack-dashboard-tests
Add openstack-dashboard functional tests
2019-10-24 10:15:04 +02:00
Liam Young
d24d89e137 Merge pull request #103 from thedac/do-set-dns
Do set DNS on overcloud subnets
2019-10-23 20:55:14 +01:00
Alex Kavanagh
47dc2a8b5f Add openstack-dashboard functional tests
This PR adds the ported from the amulet tests in the openstack-dashboard
charm.  This is launchpad bug: 1828424 [1]

[1]: https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1828424
2019-10-23 15:48:00 +01:00
David Ames
addee58dd8 Do set DNS on overcloud subnets
It turns out we do need to set DNS on the overcloud subnet. It should be
the .2 of the CIDR under test and not the _admin_net's .2. There seems
there are security group rules in the way.
2019-10-22 16:12:26 -07:00
Frode Nordahl
e0b9d9229d Merge pull request #102 from thedac/do-not-set-dns
Stop setting external DNS
2019-10-22 06:32:18 +02:00
David Ames
ea48e8b3d6 Unit test fix 2019-10-21 16:19:42 -07:00
David Ames
a207fea389 Stop setting external DNS
Use neutron DNS by not setting a DNS server on the subnet.
Also correct TEST_NAME_SERVER for potential future use.
2019-10-21 16:08:35 -07:00
Ryan Beisner
a7148fe9e5 Merge pull request #101 from thedac/test-vars
Handle OSCI environment variables
2019-10-18 15:26:34 -05:00
David Ames
13fa5e9851 Only use TEST_ prefix 2019-10-18 11:26:37 -07:00
David Ames
f29aac19c4 Handle OSCI environment variables
Move to preferred TEST_* environment variables, while remaining backward
compatible.
2019-10-18 10:14:34 -07:00
Liam Young
4e89293459 Merge pull request #29 from openstack-charmers/add-ovn
Fix zaza.openstack.charm_tests.vault.setup.auto_initialize_no_validation
2019-10-18 11:39:41 +01:00
Frode Nordahl
a82979d145 vault: Await execution prior to validation step
Make it possible for consumers of the ``auto_initialize_no_validation``
function to execute subsequent setup and test code that require vault
and the consumers of the ``certificates`` relation to be ready.

With the current order of execution, it is not possible to use the
configure function in models where ``keystone`` application is not
present.
2019-10-18 11:05:18 +02:00
Alex Kavanagh
333c828742 Merge pull request #100 from thedac/dragent-retries
Allow more time for BGP route test
2019-10-17 09:21:24 +01:00
David Ames
29a4c7cf44 Display routes in assertion error 2019-10-16 15:46:33 -07:00
David Ames
743c4765a4 Allow more time for BGP route test
Add more retries to the bgp route test and print out the routing table.
2019-10-16 14:57:53 -07:00
David Ames
bb1525ddff Merge pull request #60 from exsdev0/rabbitmq-zaza-tests
Rabbitmq zaza tests
2019-10-15 08:40:20 -07:00
Edin Sarajlic
596c347be4 Add unit test for generic util function: check_commands_on_units 2019-10-15 14:03:43 +11:00
Edin Sarajlic
6402d5a021 Add unit test for generic util function: port_knock_units 2019-10-15 14:03:43 +11:00
Edin Sarajlic
009f37ab0b Add unit test for generic util function: get_unit_hostnames 2019-10-15 12:51:39 +11:00
Frode Nordahl
936135001d Merge pull request #99 from gnuoy/run-funcs-post-upgrade
Series upgrade tests run funcs after upgrade.
2019-10-14 13:35:57 +02:00
Liam Young
6c15605222 Series upgrade tests run funcs after upgrade.
Execute a list of functions after series upgrade if one is
supplied. This change is driven by the upgrade testing of vault.
Vault needs to be unsealed after it is rebooted.
2019-10-14 10:39:11 +00:00
James Page
6b27d77f4c Merge pull request #98 from gnuoy/refactor-vault-unseal-code
Facade for vault & basic_setup_and_unseal
2019-10-14 10:46:36 +01:00
Liam Young
79a149bfc5 Facade for vault & basic_setup_and_unseal
Add a facade for interacting with vault and a function which
unseals vault units (useful when vault units have been rebooted).
2019-10-14 08:56:35 +00:00
James Page
d29a1fdadd Merge pull request #97 from gnuoy/fix-finding-vault-creds
Search for vault credentials file.
2019-10-14 09:32:48 +01:00
Liam Young
e0c10b5457 Search for vault credetials file.
During testing the vault credentials are stored on the lead unit.
Unfortunatly which unit is the designated leader can change during
the life of the test (particularly if the test involves rebooting
vault units). This change adds a function to search the units for
the credentials file rather than assuming its on the lead unit.
2019-10-14 07:50:55 +00:00
Edin Sarajlic
d2e12abb91 Remove condition: check client series will always be true.
All CI test runners are >= xenial. The condition will always be true.
2019-10-14 10:45:59 +11:00
Edin Sarajlic
1ea0be0440 Don't time.sleep when checking Rmq ports after toggling mgmt plugin. 2019-10-14 10:45:59 +11:00
Edin Sarajlic
060f7392d9 Don't sleep while waiting for cluster status to update. Use tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
215b3c87e3 Don't time.sleep waiting for Nagios. Port to tenacity. 2019-10-14 10:45:59 +11:00
Edin Sarajlic
d780f76797 Port validating Rmq SSL off from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
e8068a8356 Port validating Rmq SSL on from time.sleep to Tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
814ff7ddee Don't sleep before attempting get AMQP msg. Retry w/ tenacity 2019-10-14 10:45:59 +11:00
Edin Sarajlic
5e170cd1ba Make get_series/get_client_series available as public util functions 2019-10-14 10:45:59 +11:00
Edin Sarajlic
4eb068ab23 Provide a message if assert fails 2019-10-14 10:45:59 +11:00
Edin Sarajlic
a0769e5dcb Remove TODO (behaviour confirmed not to be a bug) 2019-10-14 10:45:59 +11:00
Edin Sarajlic
1a9449766a Remove superfluous newlines at the end of debug messages 2019-10-14 10:45:59 +11:00
Edin Sarajlic
60e84e4c27 Port Rmq charm func test removing a unit from a Rmq cluster
This function was previously called test_901_remove_unit, but had to
be renamed (moved to the end of the func tests); The way in which unit
removal is now performed (by running the "stop" hook) puts the the
removed unit in a "waiting" state -- which consequently causes
wait_for_cluster() (e.g. used in 910) to fail (timeout).
2019-10-14 10:45:59 +11:00
Edin Sarajlic
b5f60126bc Remove duplicate call to function 2019-10-14 10:45:59 +11:00
Edin Sarajlic
18726c341a Fix lint errors found in docstrings 2019-10-14 10:45:59 +11:00
Edin Sarajlic
4792a527c9 PROTOCOL_TLS is not available until Py3.6, use alternative 2019-10-14 10:45:59 +11:00
Edin Sarajlic
0e16359330 Check client+unit OS versions before running Rmq tests with SSL enabled 2019-10-14 10:45:59 +11:00
Edin Sarajlic
1835d957a1 Test: msgs can be sent/retrieved to/from Rmq cluster with SSL+alt port
Same message as my previous commit: As per the code: is there a
function to determine unit's release?  Otherwise, I'll just implement
a generic function that run_on_unit lsb_release -cs
2019-10-14 10:45:59 +11:00
Edin Sarajlic
ce45a47dab Test: messages can be sent/retrieved to/from Rmq cluster with SSL on
As per the code: is there a function to determine unit's release?
Otherwise, I'll just implement a generic function that run_on_unit
lsb_release -cs
2019-10-14 10:45:59 +11:00
Edin Sarajlic
19c9e86b19 Test: Rmq pause/resume.
Note: This test may have exposed a bug, where the
`block_until_unit_wl_status` returns once it reaches the "maintenance"
state, but subsequent queries to `unit.workload_status ==
"maintenance"` fail. Recreating the unit object (via
`zaza.model.get_unit_from_name`) returns the correct workload_status
when queried.
2019-10-14 10:45:59 +11:00
Edin Sarajlic
a738efd7f2 Test: Rmq unit action 'list-unconsumed-queues' returns a Juju action 2019-10-14 10:45:59 +11:00
Edin Sarajlic
2a0b7bf8e2 Test: Rmq unit action 'check-queues' returns a Juju action 2019-10-14 10:45:59 +11:00
Edin Sarajlic
9e7d76df2f Test: Rmq unit action 'cluster-status' returns a Juju action 2019-10-14 10:45:59 +11:00