Commit Graph

24 Commits

Author SHA1 Message Date
Alex Kavanagh 9ad7e55a5f Fix race in test 408 for rabbitmq
There is a race in the 408 test for rabbitmq where the config-change to
enable ssl causes a leader-settings-changed hook in the non-leader units
which results in a rabbitmq service restart.  This can happen at exactly
the same time as the test attempts to establish a connection with the
that unit. This patch retries the connection attempt.

Note that this may only be a partial fix as it's possible that a restart
will happen just after the connection is made, which would then result
in a test failure.

Related-Bug: LP#2002156
2023-01-06 20:12:08 +00:00
Felipe Reyes 7b65b73010 Migrate from nosetest to pytest
nosetest doesn't support python 3.10 and over the years the python
community has been settling on pytest as test runner, this change
introduces pytest and adds py3.10 to the gh workflow testing matrix.
2022-10-25 15:17:50 -03:00
Corey Bryant 0fe0f0167c Drop unrelated Python versions
Python 3.5, 3.6, and 3.7 are no longer needed on this branch.
2022-10-25 13:12:43 -04:00
Aurelien Lourot e693fc1840 Nail pip 20.2.3
Co-authored-by: Alex Kavanagh <alex.kavanagh@canonical.com>
2021-07-28 16:53:01 +02:00
Alex Kavanagh 4551f66505 Fix the kerberos set-up by loosening ubuntu check (#521)
* Fix the kerberos set-up by loosening ubuntu check

The cs:ubuntu charm's workload-status-message has changed recently (as
the charm was re-written).  This PR loosens the application states check
to ignore the workload-status-message and just wait for the charm to be
active workload-status.  This is almost certainly enough, as it's a very
simple charm.

* Fix tox.ini to pass tests (maybe)
2021-03-09 18:59:33 +01:00
Frode Nordahl 9961c9468b Sync pertinent tox.ini settings from release-tools
The new PIP resolver wreaks havoc for this repository.

Long term we should split unit test requirements into a separate
file and whip unit tests into shape wrt. mocking out everything as
opposed to relying on having random modules installed in the test
environment.
2021-01-13 18:47:00 +01:00
Chris MacNaughton 4d38a158f0 Tox coverage reporting shoulg be zaza.openstack only 2020-04-10 11:02:22 +02:00
Frode Nordahl f35da80f27 Unpin flake8, fix lint
Add Python 3.8 env in Travis CI test matrix.

At present the pinning of flake8 disallows running of lint on
Python 3.8 systems.

Update flake8 ignore-list to ignore W504 instead of W503, the PEP
guidance is that either is ok, but there must be local consistency.

There are more occurences of binary operator before line-break
than after in this repository, and we have also chosen to ignore
W504 in most of our other repositories.
2020-04-07 11:14:49 +02:00
Alex Kavanagh c0db2def3b Modified policyd tests to support openstack-dashboard
* Addition of the (incomplete) openstack-dashboard test.
* Modification of other charm policyd override tests to support
  multi-file policy overrides resource ZIP.
2019-11-20 17:23:26 +00:00
Alex Kavanagh 6306615a17 More debugging in the test 2019-09-25 14:43:10 +01:00
Chris MacNaughton 0c2f36fb4e modify base zaza poackage into zaza.openstack package 2019-05-08 13:38:33 +02:00
Chris MacNaughton 362ce7bac5 rename flatten-bundle to remove-placement 2018-10-10 11:34:31 +02:00
Chris MacNaughton 89527526f5 Add support for removing machine placement in a bundle 2018-10-09 17:37:40 +02:00
Frode Nordahl aa115b7546 Add self-hosted functional test of Zaza 2018-09-20 02:29:27 +02:00
Nicolas Pochet 4d613bccc1 Modify the venv tox environment
* Make it target python3
* Install the necessary dependencies
* Use /bin/true to not raise error when using it via `tox -e venv`
2018-08-24 09:20:53 +02:00
Liam Young dacab83305 Add coverage report to unit tests 2018-06-21 10:20:46 +01:00
Liam Young e6848dc448 Enable doc string lint checks
Enable doc string lint checks excluding unit tests.
2018-06-21 09:45:45 +01:00
Liam Young 7b45197476 Converge requirements into a single file
readthedocs wants a single requirements file and since the doc
requirements are small it seems reasonable to merge the
requirement files.
2018-06-05 14:29:10 +01:00
Liam Young 7517faf19a Add a bit of sphinx 2018-05-30 15:29:45 +01:00
Liam Young 36945ff6ea Tidyup tox and remove point release python version stuff 2018-04-18 07:46:50 +00:00
Liam Young e29a4cd34e removed unused python-apt 2018-04-16 08:12:51 +00:00
Ryan Beisner 62c28c675b Move pep8 back to 3.6 due to async usage 2018-03-22 15:23:37 -05:00
Ryan Beisner 58579384aa Allow pep8 tox target to use any py3 version 2018-03-22 14:29:45 -05:00
Chris MacNaughton c3e5adcb4d initial commit framing out stuff 2017-12-04 17:01:33 +01:00