Commit Graph

24 Commits

Author SHA1 Message Date
Michal Nasiadka b3c601735b CI: Wait before checking pods status
Currently sometimes the check for ContainerCreating status is run too early,
Helm based services are not even spawning Pods yet.

Also improve wait time for ContainerCreating

Change-Id: Ifd08eccdbc15446e3f4e883712c5035df3b9e370
2024-03-26 12:57:20 +00:00
Michal Nasiadka a3e09cfcbe Add pods description in logs
Change-Id: I83bb918cf835fc968f8d7d71b24470688a4b1c81
2024-02-22 05:49:46 +00:00
Michal Nasiadka 1e37dbafd4 CI: Wait for pods to exit ContainerCreating state
Change-Id: I038cfab481f3a30050f39883fce99973586597b0
2024-02-21 14:55:31 +00:00
Michal Nasiadka 2fe075ae78 Add job for cluster tests
Remove test that creates cluster with zero nodes,
it was failing for long time

Depends-On: https://review.opendev.org/c/openstack/magnum/+/893823
Depends-On: https://review.opendev.org/c/openstack/magnum/+/905357

Change-Id: I6bc2fbb78241765ac5f1c67675e152d0691b8d23
2024-02-02 08:37:08 +00:00
ricolin c5743fbea2 Add magnum service to rbac tests
Although we didn't change policy of magnum service,
but we should add this to complete test scope of job
`magnum_tempest_plugin.tests.api.v1.rbac`.

Change-Id: I5dfbad43d5a515312ef285aff208e1c9e36cf684
2023-08-30 14:12:10 +00:00
ricolin 718190b7da Add RBAC tests
Create new job magnum-tempest-plugin-tests-api-rbac
Also fix get_credentials calls
Depends-On: https://review.opendev.org/c/openstack/magnum/+/875625

Change-Id: I8f9e184881c2da2a0432e25f5f1f3ddcf178015a
2023-07-18 14:20:37 +08:00
ricolin 89cba9b96c Add clients to tempest plugins
Change-Id: I847efff138dc4c3dbae686310221e1dfd0423587
2023-07-18 14:17:49 +08:00
Diogo Guerra dc7f0ba4aa Drop bay and baymodel
Change-Id: Ib85e4fda8e4ac467bd49590dc72ba5913bb9a19d
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2023-02-05 11:17:48 +00:00
Bharat Kunwar b68a678f37 Disable test_create_cluster_with_zero_nodes
Cluster creation fails on the CI due to an issue similar to what we've
seen before for another test (test_create_list_sign_delete_clusters).
Disable it for now.

story: 2007272
task: 38867

story: 2007851
task: 41443

Change-Id: Ie91fdfe71058b45c5fd1217920b8b5b993e47734
2021-02-04 09:02:20 +00:00
Feilong Wang abe58fe334 Fix HTTP 400 error
This is kind of a race condition issue, Tempest is doing a wait and check
when it is trying to delete a cluster. However, at the very end of the cluster
deletion process, a cluster GET request may get a HTTP 400 error which
will cause the Tempest case failed. This HTTP 400 exception reported
by a cluster GET request should be caught and take cluster as still existing.

Task: 40120
Story: 2007833

Change-Id: Ic97abf8d4d584f35b18bff9eab5d3e5ac80c0f02
2020-06-23 21:36:07 +12:00
Hervé Beraud bcf46c505f Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I17c818e0e2cb5b4dc2b24cf689ceeb9b391c83bf
2020-06-02 20:22:19 +02:00
Zuul 8a54f99111 Merge "Remove six" 2020-05-18 09:26:06 +00:00
jacky06 7c9ce9623e Remove six
We don't need this in a Python 3-only world.

Change-Id: I0ec4a2fe359c285460f64949943649b25938f3b1
2020-05-06 09:19:48 +08:00
Andreas Jaeger 6bb7b82275 Update docs building, cleanup
Update docs building, cleanup a bit:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3, create doc/requirements.txt
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Move constraints into deps, use TOX_CONSTRAINTS instead of
  obsolete UPPER_CONSTRAINTS
* Update to hacking 3.0, fix problems found

Change-Id: I76fe5602928bede439133993b0d85669228f25ed
2020-05-03 11:41:00 +02:00
Bharat Kunwar d75cbd1e48 [ci] Support fedora-coreos in magnum-tempest-plugin
Story: 2007561
Task: 39512

Change-Id: I2a5ba0a3bbc99c31af5de96e5b2acfa6107b698e
2020-04-21 15:38:51 +00:00
Lingxian Kong 85700fc464 Print status_reason in the log
In case the cluster could be deleted immediately after the creation
failure, there is no chance to see the reason for debugging purpose.

Change-Id: I627f5b8bef3bc8fef694837cd7f037dc01885b53
2019-07-29 11:55:56 +12:00
Lingxian Kong ae37333661 Add idempotent ID for ClusterTest cases
Every function that provides a test must have an idempotent_id
decorator according to
https://docs.openstack.org/tempest/latest/HACKING.html#test-identification-with-idempotent-id

This patch only adds the idempotent_id for cluster related tests, others
could be added as needed in future.

Change-Id: Ic452bb33999980137ffe0f832318703190fa76ec
2019-07-17 17:54:30 +12:00
Lingxian Kong 18a3103170 Support to run cluster test using existing cluster template
- This fix is primarily focused on using existing cluster template
  use case.
- Rename 'keypair_id' to 'keypair_name' in the magnum tempest config.
- Add 'cluster_template_id' and 'cluster_creation_timeout' config
  options.
- Move the cluster template and keypair to the class-scoped resources.

Change-Id: Ib5260757e373ce545ca6900acf8871b6d96dcfb8
2019-04-09 11:52:23 +12:00
Colleen Murphy 5a18c8ebf0 Fix skipping of tests
The plugin defines a 'magnum' option in the '[service_available]' group
but does not respect it, so if the plugin is installed but
[service_available]/magnum=false, the tests will still run unless
blacklisted. This patch corrects the issue by defining the tempest
skip_checks class method. This also requires using the correct tempest
base class as recommended in the tempest guide[1].

[1] https://docs.openstack.org/tempest/latest/write_tests.html

Change-Id: I6b9a8f802129fa800d9f4a3eadd8943962c951c0
2019-02-22 11:19:06 +01:00
Jake Yip 72a29d8e43 python3 compatibility fix
Change-Id: Ia3aac16a4c73440fe08632033c968ff0261f5c3f
2019-01-16 10:04:54 +11:00
Jake Yip 8ea970b9b3 add option for docker_storage_driver
Change-Id: Idd7a5277b7f6d2eb3eb54f9be5ced2e98fd4f710
2019-01-14 16:15:49 +11:00
Jake Yip b80886a9f0 Add options for coe and network_driver
Change-Id: Idb47a7a6509a97101f77451f9e19049a0d007fcc
2018-11-30 15:58:31 +11:00
Feilong Wang b473e2d498 Fix the slowest test
This patch is going to fix the k8s test gate for Magnum:

1. Given the test case test_create_list_sign_delete_clusters is the slowest
test case, we better add the Tempest 'slow' tag for it.

2. Raise the timeout from 1800s to 3600s

3. Fix a wrong method calling

Change-Id: I074434b3100178cba19b1f2f20da792871bb8530
2018-10-19 14:04:19 +13:00
Chandan Kumar 4f8af5f2f8 Refactored magnum tempest plugin
* It provides proper directory structure and cleanup of
  magnum tempest plugin tests.

* Added tools/pretty_tox.sh to trigger functional api tests

Change-Id: Ibdddd26da9cfb0d08c2977660320b2c052d7261b
2017-12-11 18:35:24 +05:30