Commit Graph

37 Commits

Author SHA1 Message Date
Felipe Reyes fd824768b5 Add Watcher client support
Add get_watcher_session_client() helper function to build a
watcherclient.v1.Client instance authenticated with a keystone session
that uses admin credentials by default.
2023-08-24 19:37:56 -04:00
Utkarsh Bhatt c0b2a2cdb0 Adds SSL config switch test to ceph-dashboard
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
2023-08-14 16:41:02 +05:30
Felipe Reyes fd65705445 Bump up flake8
Fixes `AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'`
2023-05-05 11:51:20 +02:00
Felipe Reyes 42d5caea6d Unpin dependencies
- Unpin lxml for python >= 3.8
- Unpin pyparsing for python <= 3.5

Fixes: #530
2023-03-17 17:01:21 -03:00
Alex Kavanagh 0383c97a82 Try to get GH CI to run
* Remove added libyaml-dev - it's already installed
* Re pin PyYAML to 3.9 rather than 3.10
2023-01-11 12:55:53 +00:00
Alex Kavanagh f96e41f45a Relax pbr constraint to allow pip to resolve 2023-01-06 20:33:13 +00:00
Felipe Reyes ad215019e4 Unpin PyYAML for python>=3.10
PyYAML<5.1 fails with the error below on Python 3.10

    AttributeError: module 'collections' has no attribute 'Hashable'

The fix got available by this commit
https://github.com/yaml/pyyaml/commit/9959328b41ee577c6f14e3a0184b07dd0ecadb8c
2022-10-25 15:41:25 -03: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
Felipe Reyes 615d83c57d Pin pyopenssl<22.1.0 (#930)
pyopenssl depends on a newer version of cryptography since 22.1.0.

https://github.com/pyca/pyopenssl/commit/a145fc3bc6d2e943434beb2f04bbf9b18930296f
2022-09-27 11:06:30 +01:00
Chris MacNaughton b34d93bc5d Remove libjuju and juju_wait dependency in zaza-openstack-tests
This dependency is available via zaza already, and more
clearly illustrates the origin of dependencies.
2022-08-11 11:28:51 -04:00
Utkarsh Bhatt efdb1ae4e3 Add Testcases for Ceph-RGW multisite migration (#840)
The updated testcase handles verifying the expected states
that are safe to migrate, as well as verifying that pre- and post-
migration data are correctly synced.
2022-08-08 12:03:35 +00:00
Oprin Marius 243435883f Add Magnum tests (#515)
- Add Heat domain-setup action as a setup configuration option which can be used in other charms
  - test_100_domain_setup is being deprecated if the new configuration option is being used
- Add Magnum tests
  - test create magnum cluster template
  - test create magnum cluster
  - test config changes
  - test pause and resume
- TEST_MAGNUM_QCOW2_IMAGE_URL environment variable is required in the CI
  - The value of this variable should be a link to a fedora-coreos QCOW2 image
2022-07-05 12:06:02 +01:00
Alex Kavanagh ae50ed3199 Pin pyparsing to work with pinned version of aodhclient
aodhclient is pinned at 1.4.0 and pyparsing needs to be pinned at <
3.0.0 to work with.  Note zaza also pins pyparsing as many, many modules
use pyparsing and if zaza gets installed first ti might break pip
resolution.
2021-10-25 15:01:25 +01:00
Alex Kavanagh 8e94f4bcd4 Pin coverage < 6.0.0 for Py3.5 support
Coverage dropped py3.5 suppot at 6.0.0 and zaza.openstack.tests
currently support Xenial.
2021-10-03 17:27:18 +01:00
Aurelien Lourot ee647a7552 Removed unneeded dependency to distro-info
distro-info hasn't been maintained for 8 years and pip is
now failing to fetch it on Python 3.8.

This dependency seems to have been introduced by accident
in 22e7ffc.
2021-07-28 13:38:32 +02:00
Alex Kavanagh 8af30a5275 Pin lxml to 4.6.2
See https://github.com/openstack-charmers/zaza-openstack-tests/issues/530

Issue:

    Python 3.5. is deprecated/EOL
    Py35 is used on Xenial
    Xenial is used as the test platform to run tests.
    lxml is used by zaza-openstack-tests for the SAML assertions (because they are XML)
    lxml > 4.6.2 releases are after py3.5 has been deprecated/EOL.
    Therefore, no wheels are now built for lxml for py35.
    Thus there is a binary dependency to build lxml for testing
2021-03-25 11:46:47 +00:00
Aurelien Lourot c327e4c3a2 Pin cryptography<3.4
Newer versions require a Rust compiler to build.
2021-02-10 10:22:13 +01:00
Gabriel Adrian Samfira 7c2f5cdf24 Add Ironic tests 2020-10-06 06:06:57 +00:00
Alex Kavanagh 66d95d65d7 Fix series-upgrade tests (#406)
A couple of changes here:

 * Ensure that the post-upgrade-hook runs BEFORE the config-changed to
   set the openstack-origin/source back to distro.  The former behaviour
   breaks keystone quite badly.
 * Ensure that the charm name is used, as discovered from the model, for
   rabbitmq-server and percona-cluster to cope with different names for
   the application in the model vs the charm name from the charm-store.
 * Check whether the machine needs to be rebooted after the dist-upgrade
   (before the do-release-upgrade), and reboot the machine first.
   Otherwise, do-release-upgrade will fail.
2020-09-04 13:33:42 +02:00
Alex Kavanagh 924b95b47b Unpin juju (libjuju) from < 2.8
python-libjuju was broken at 2.8 and thus zaza and zaza-openstack-tests
needed to be pinned to < 2.8.  This patch releases that so that the
latest versions of libjuju are used in testing.  This may get pinned
again before the next release window.
2020-05-26 14:23:16 +01:00
Alex Kavanagh 593254f790 libjuju-2.8 breaks with juju 2.7.6 and 2.8.0 - pinning
This is a temporary pin until a fix is provided.
2020-05-13 11:52:48 +01:00
Aurelien Lourot 673d1a9d7f Barbican tests 2020-04-20 12:59:29 +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 bcbeeaabb6 Merge pull request #193 from AurelienLourot/pika
Add missing pika (RabbitMQ client)
2020-03-23 12:18:40 +00:00
Frode Nordahl 00ad21f42f swift: Add S3 API test 2020-03-16 13:39:07 +01:00
Aurelien Lourot 01578b8c55 Add missing pika (RabbitMQ client) 2020-03-13 09:21:42 +01:00
Aurelien Lourot 9e3b88678c Add Gnocchi tests
https://bugs.launchpad.net/charm-gnocchi/+bug/1828424
2020-03-09 11:26:55 +01:00
Alex Kavanagh b00e570e57 Add octavia policyd tests
Providing a policy.d test for Octavia is a bit more complicated as the
obvious policy is just to prevent listing of load balancers;
unfortunately it doesn't work in the upstream, as the code doesn't check
the policy in octavia.  However, "showing" an load balancer does involve
a policy check and so the test is more complicated than 'normal' policy
tests in that a resource is created, then the policy override is checked
and then the resource is deleted.
2019-11-21 14:50:57 +00:00
Chris MacNaughton ce0eb7ab12 Add functional tests for Manila with Ganesha
Add a functional gate where we mount a share on two VMs
in the cloud under test to validate that manila + ganesha
shares work correctly.
2019-11-07 11:32:28 +08:00
Frode Nordahl 8e78bd0560 Pin pydocstyle
Reference: PyCQA/pydocstyle#375
2019-07-16 11:57:34 +02:00
Chris MacNaughton 0c2f36fb4e modify base zaza poackage into zaza.openstack package 2019-05-08 13:38:33 +02:00
David Ames c6d1d99f7b Pin PyYAML to match libjuju 2019-03-14 12:11:07 -07:00
Frode Nordahl e1f360f823 Add helper to get authenticated octaviaclient 2018-11-29 06:29:06 +01: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 f1e1a80cb1 Switch to sphinxcontrib-asyncio for sphinx asyncio support inline with libjuju 2018-06-05 15:34:01 +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