Commit Graph

1210 Commits

Author SHA1 Message Date
Dmitrii Shcherbakov
740bc2060f Pass arguments BaseCharmTest.setUpClass
Not doing so triggers an incorrect behavior leading to functional test
failures as the application name is not set correctly.

https://github.com/openstack-charmers/zaza-openstack-tests/issues/256
https://review.opendev.org/#/c/712980/1
2020-05-04 20:45:55 +03:00
Alex Kavanagh
b821c4c949 Merge pull request #250 from hemanthnakkina/bug/1864859
Add test cases for nova shelving accounting in quotas
2020-04-30 11:41:04 +01:00
David Ames
6406467e5e Merge pull request #249 from ajkavanagh/disable-ceph-pristine-disks-focal
Disable the pristine disk check on focal
2020-04-29 10:23:40 -07:00
Alex Kavanagh
8830729dc1 Add LP bug number and a bit of explanation 2020-04-29 18:14:35 +01:00
Hemanth Nakkina
a2e38eecd3 Add test cases for nova shelving accounting in quotas
Add functional test case to verify new config param
quota-count-usage-from-placement in nova-cloud-controller
charm.

Charm changes - https://review.opendev.org/#/c/715182/

Related-Bug: #1864859
2020-04-28 15:28:06 +05:30
Alex Kavanagh
719c4bfacf Merge pull request #251 from gnuoy/masakari-focal-fixes
Masakari testing fixes
2020-04-27 09:42:24 +01:00
Liam Young
9df7157989 Masakari testing fixes
* Add method for deleteing pacemaker nodes.
* Due to LP #1874719 use above to delete node1
* During test cleanup the tests re-enable hosts from a masakari pov,
  if that host still has outstanding notifications it will fail so
  retry the enable.
* pacemakerd process name has changed on focal so account for that
  when killing it.
2020-04-25 09:52:53 +00:00
Dmitrii Shcherbakov
731de58b6a Merge pull request #237 from openstack-charmers/fix-neutron-openvswitch-tests
Fix neutron openvswitch tests
2020-04-24 11:44:51 +03:00
Dmitrii Shcherbakov
ab4d47d7a3 Merge pull request #235 from openstack-charmers/move-qos-test-back
Move NGW QoS test back to the NGW test class
2020-04-24 10:29:04 +03:00
James Page
53bd932fd3 Merge pull request #248 from thedac/gsss-race-conditions
Fix glance simplestreams sync test races
2020-04-22 18:55:02 +01:00
David Ames
14a6f06586 Fix glance simplestreams sync test races
We expect at least three images. Avoid various race conditions by
retrying using tenacity.
2020-04-22 17:32:33 +00:00
Alex Kavanagh
5d20e2564e Disable the pristine disk check on focal
The test won't pass on serverstack due to the snapd taking a copy of the
/mnt/vdb info at boot time and thus not being able to umount it is root
without also running through all of the procs and checking if they also
have it mounted.  Thus, this just disables the test on focal and newer.
2020-04-22 18:08:06 +01:00
Alex Kavanagh
16f719edb8 Merge pull request #247 from dshcherb/2020-04-21-fix-glance-test-900
Fix test_900_restart_on_config_change
2020-04-21 15:56:37 +01:00
Dmitrii Shcherbakov
16e82b6e86 Fix test_900_restart_on_config_change
Recently broken by PR 245:
72b420b56a
2020-04-21 17:41:40 +03:00
Liam Young
8d401e410c Merge pull request #240 from AurelienLourot/barbican
Barbican tests
2020-04-21 15:30:35 +01:00
Liam Young
db70b46a63 Merge pull request #245 from dshcherb/2020-04-21-use-new-helper
Use the new svc restart checker where possible
2020-04-21 14:56:41 +01:00
Dmitrii Shcherbakov
72b420b56a Use the new svc restart checker where possible
restart_on_changed_debug_oslo_config_file was added to avoid code
duplication.
2020-04-21 16:50:02 +03:00
Aurelien Lourot
347a39d11e Use restart_on_changed_debug_oslo_config_file() 2020-04-21 15:25:55 +02:00
Aurelien Lourot
0089555ff0 Merge remote-tracking branch 'origin/master' into barbican 2020-04-21 15:25:42 +02:00
Liam Young
d8daabea22 Merge pull request #241 from ajkavanagh/hacluster-focal-test-fix
Fix hacluster tests for focal with mysql8
2020-04-21 14:02:27 +01:00
Alex Kavanagh
82d5daa7ac Merge pull request #242 from gnuoy/add-debug-restart-on-change
Add a helper for testing restart on changed
2020-04-21 10:10:28 +01:00
Liam Young
6694caf281 Improve docstring and allo section override 2020-04-21 07:45:42 +00:00
Liam Young
d652eff6d9 Add a helper for testing restart on changed
Most api charms test restart on changed by flipping the value of
debug. This has led to the same test being copied around. To reduce
the boiler plate code this change adds a new test helper which can
be used instead.
2020-04-21 07:16:58 +00:00
Aurelien Lourot
bbf32033bf Merge remote-tracking branch 'origin/master' into barbican 2020-04-21 08:56:24 +02:00
Dmitrii Shcherbakov
4acd50112d Merge pull request #233 from AurelienLourot/nova-cloud-controller
NovaCloudController test cases
2020-04-21 09:16:38 +03:00
Alex Kavanagh
329d4fb8c5 Fix hacluster tests for focal with mysql8
The hacluster tests assume that all the subordinates are hacluster.
However, with mysql8 there is a mysql-router subordinate as well, and it
doesn't support the clean-up action.  This change ensures that the tests
checks that the subordinate IS hacluter prior to applying the
action/test.
2020-04-20 12:51:27 +01:00
Aurelien Lourot
673d1a9d7f Barbican tests 2020-04-20 12:59:29 +02:00
Aurelien Lourot
9b9262daac Merge remote-tracking branch 'origin/master' into nova-cloud-controller 2020-04-20 12:58:48 +02:00
Liam Young
ae6f1a1d3d Merge pull request #239 from ChrisMacNaughton/bug/ubuntu-lite-upgrade-series
Actually pass to and from series into upgrade
2020-04-20 10:51:56 +01:00
Chris MacNaughton
9cec2efabe Actually pass to and from series into upgrade 2020-04-20 11:47:12 +02:00
Aurelien Lourot
3d11b9c018 Fix test_106_compute_catalog_endpoints on Queens 2020-04-20 10:51:49 +02:00
Frode Nordahl
9203865408 n-ovs: Do not use model.set_application_config directly
There are two problems with doing so as part of individual
functional tests:

1) If the application already have the value set the test will
   time out waiting for a change that will never be made.

2) python-libjuju ``set_config`` call requires values to be
   ``str`` regardless of their actual type.  Pairing this fact
   with the requirement to use the actual type when comparing
   values before attempting to set them makes this very confusing
   and error prone.

   juju/python-libjuju#388
   openstack-charmers/zaza#348

Use the ``config_change`` helper instead.
2020-04-20 10:11:31 +02:00
Frode Nordahl
169dff2d8e n-ovs: Do not treat `bool config as str`
When applying configuration to a model the helpers will compare
settings already set to what is being attempted set to be able to
accurately predict model behaviour.

When passing ``bool`` values as ``str`` this does not work and it
may lead to unwanted behaviour depending on the model state at the
time the test runs.
2020-04-20 08:31:58 +02:00
Aurelien Lourot
9477fd4c52 Fix test_106_compute_catalog_endpoints prior to Rocky 2020-04-20 08:00:46 +02:00
Frode Nordahl
e3fb0fde92 n-ovs: Await start of execution before awaiting idle
At present we may start interrogating the model for a result of
a change made by the functional test before all units of the
application have started executing.
2020-04-19 17:34:23 +02:00
Aurelien Lourot
13d9702cdb Add test_902_quota_settings 2020-04-19 16:58:24 +02:00
Aurelien Lourot
6005ca7517 Add test_310_pci_alias_config 2020-04-19 16:58:24 +02:00
Aurelien Lourot
1594a09625 Fix test_220_nova_metadata_propagate 2020-04-19 16:58:24 +02:00
Aurelien Lourot
8b8155347e Fix typos 2020-04-19 16:58:24 +02:00
Aurelien Lourot
d585386ece Merge remote-tracking branch 'origin/master' into nova-cloud-controller 2020-04-19 16:58:13 +02:00
Frode Nordahl
845f728b4d n-ovs: Remove redundant unit references 2020-04-19 16:10:41 +02:00
Alex Kavanagh
3ae109a14d Merge pull request #236 from ChrisMacNaughton/include-subordinate-idle
Add check to include subordinates for idleness
2020-04-17 17:34:46 +01:00
Aurelien Lourot
975248f571 Add test_106_compute_catalog_endpoints 2020-04-17 17:42:31 +02:00
Chris MacNaughton
28e1ce2d3f Add check to include subordinates for idleness
Depends-On: https://github.com/openstack-charmers/zaza/pull/346
2020-04-17 16:50:57 +02:00
Frode Nordahl
e93fa0b571 neutron/policyd: Use `create_network` for test
At present the neutron policyd test assumes a network visible to
the demo user has already been created at the time of the test
being executed.

This may not always be the case, so let's manage the resource we
use for the test.
2020-04-17 15:26:41 +02:00
Frode Nordahl
82928825fd Move NGW QoS test back to the NGW test class
Commit 55fc718f98 moved a QoS data
plane test from Neutron Gateway tests to the Neutron API tests.
This was probably done because the Neutron API charm gate was
doing end to end tests for all deployment topologies.

On the back of splitting out the data plane tests from Neutron API
gate to the respective data plane charms we need to move this
test back where it belongs.

Apparantly the Neutron Open vSwitch test class have its own
variant of this test already that will be executed by the
neutron-openvswitch charm gate.
2020-04-17 15:02:19 +02:00
Liam Young
5f4a2def28 Merge pull request #234 from ChrisMacNaughton/bug/release-upgrade-interactive
Set some apt config to accept package defaults
2020-04-17 13:23:07 +01:00
Chris MacNaughton
f49259e426 Set some apt config to accept package defaults
Because the OpenStack charms re-render their config
whenever things are incorrect, we can accept any new
package defaults as a part of the upgrade and
resolve incorrect config after the upgrade
2020-04-17 13:45:47 +02:00
Aurelien Lourot
071754e7cf Add test_302_api_rate_limiting_is_enabled 2020-04-17 12:47:44 +02:00
Aurelien Lourot
7c1f01e368 Add test_220_nova_metadata_propagate 2020-04-17 12:04:23 +02:00