Commit Graph

36 Commits

Author SHA1 Message Date
Rodrigo Barbieri 912f33e071 Add test to check ceph keys (new)
For https://review.opendev.org/897549
2023-10-11 09:08:33 -03:00
Gabriel Cocenza 38a2f159a6 fixing racing condition on cinder and nova controller with L7 servers checks. 2023-03-28 15:51:51 -03:00
Liam Young fe62f913fd Add tempest k8s scale test for remaining services 2023-03-08 13:52:01 +00:00
Samuel Walladge c396608daa Fix pep8 lint errors
One of the pep8 target dependencies must have updated,
causing a bunch of new lint errors in these categories:
- line length > 79 chars
- no whitespace after keyword
2022-08-03 13:44:22 +09:30
Marcin Wilk ab37618d4f Add test for allow_resize_to_same_host in nova (#703)
Co-authored-by: Marcin Wilk <marcin.wilk@canonical.com>
2022-06-29 15:50:33 +01:00
Billy Olsen c7e7443c63 Add vtpm functional tests
Add functional tests for vTPM enablement within guests.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-01 15:37:38 -07:00
Aurelien Lourot 7338af093e Add NovaComputeNvidiaVgpuWithHardwareTest 2022-03-17 13:55:47 +01:00
Aurelien Lourot 8d107c1117 Add NovaComputeNvidiaVgpuTest 2022-02-24 13:53:04 +01:00
Alex Kavanagh 0af4c93d52 Switch unit.public_address to unit.get_public_address()
Due to the bug [1] on OpenStack providers, unit.public_address doesn't
actually work reliably.  The fix [2] is only for the async function
unit.get_public_address().  Sadly, zaza relied on unit.public_address
and so it needs this patch for juju 2.9 support on OpenStack providers.

This patch relies on an associated patch in zaza [3]; thus this will
fails its tests until that passes.

[1]: https://github.com/juju/python-libjuju/issues/551
[2]: https://github.com/juju/python-libjuju/pull/600
[3]: https://github.com/openstack-charmers/zaza/pull/468
2022-01-14 15:21:32 +00:00
Rodrigo Barbieri 8ba1134787 Add pci-alias test for nova-compute (#587)
Moved test that was previously existing for
nova-cloud-controller to a common class to
be run for nova-compute as well.
2021-06-17 19:18:29 +01:00
mkalcok 3aacd5c89c Functional tests for instance-count action on nova-compute charm. (#535)
Launchpad: #1911011
Gerrit review: https://review.opendev.org/c/openstack/charm-nova-compute/+/783371

* Functional tests for `instance-count` action on nova-compute charm.

Test for `remove_from_cloud_actions` waits at the end until
the nova-compute service is available again. However there's a few
seconds lag until that host shows up also in `hypervisor-list` which
can cause race conditions with other tests.
2021-05-13 11:48:06 +01:00
Billy Olsen a05263f111 Update nova tests (#563)
Add test for the new nova_cc charm action syncing AZs

The new action is meant to sync the availability zones from the
underlying Juju provider with the OpenStack availability zones.

It is useful within MAAS environments to map the MAAZ AZs to
OpenStack AZs.

Also fix output check logic for sync az test.
The validation logic for the sync az test checks the specific output of
the command text, but this is dependent on ordering. The code also
validates that the hypervisors are added to the appropriate host
aggregates, so this changes the test to verify the action was successful
and has some output.

Also use the availability-zone based on the configured settings.
In the attempt to sync the az test, the availability zone is assumed
to be the JUJU_AVAILABILITY_ZONE environment setting. In various
scenarios, this is not what is used for the availability zone of a
compute node.
This change mimics the logic that's contained within the nova-compute
charm to determine which availability zone should be used for the
compute node.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Co-authored-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2021-04-22 13:13:40 +02:00
mkalcok 50c781fb53 Remove repetitive code. (#534) 2021-03-30 07:44:46 +01:00
mkalcok 88fe0af9cb Functional tests for nova-compute 'cloud' actions (#470)
* Functional test for 'enable' and 'disable' actions on nova-compute

* lint fixes

* Put tests of new functionality into separate class

* Added tests for actions `remove-from-cloud` and `register-to-cloud`

* Set longer timeout for action verification

* Add logging to help with CI debugging

* Raise error if action fails

* Cleanup running VMs before test starts

* Add cleanup to tests that create VMs
2021-03-27 08:27:02 +00:00
Frode Nordahl 35840a66d6 nova: Conditional security checklist based on presence of vault
The current test expects Nova to never have TLS connections, let's
expect them to be there whenever vault is present.

Remove the 'is-volume-encryption-enabled' assertion as it is not
a property of the Nova security checks. This was previously masked
by the fact that action would always fail due to TLS tests not
being enabled for any bundles.
2021-01-16 22:36:44 +01:00
Linda Guo 10756f7a66 Add NovaComputeActionTest test class for virsh_audit action 2020-12-11 10:13:41 +11:00
Frode Nordahl efcb7a7e06 Fix typo 2020-10-02 10:50:10 +02:00
Frode Nordahl 786b40fc53 nova: Use common launch guest helper
The common helper adds automatic retry handling and resource
cleanup.
2020-09-25 11:21:15 +02:00
Liam Young 9c52b3390d Add LTSGuestCreateVolumeBackedTest
Add a test class which launches a volume backed instance.
2020-07-07 09:06:35 +00: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
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 3d11b9c018 Fix test_106_compute_catalog_endpoints on Queens 2020-04-20 10:51:49 +02:00
Aurelien Lourot 9477fd4c52 Fix test_106_compute_catalog_endpoints prior to Rocky 2020-04-20 08:00:46 +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 975248f571 Add test_106_compute_catalog_endpoints 2020-04-17 17:42:31 +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
Aurelien Lourot 0f8396b213 Fix test_104_compute_api_functionality 2020-04-17 12:02:43 +02:00
Aurelien Lourot ea345c6c55 First NovaCloudController test cases
Not yet covering the same amount as nova-cloud-controller's Amulet tests.
https://launchpad.net/bugs/1828424
2020-04-17 10:07:13 +02:00
Alex Kavanagh c69e177736 Merge pull request #230 from AurelienLourot/nova-security-tests
Make nova.SecurityTests runable against nova-cloud-controller
2020-04-16 18:50:16 +01:00
Aurelien Lourot ac227eab08 Fix copy-paste mistakes and typos and remove dead code 2020-04-16 15:10:03 +02:00
Aurelien Lourot 94434f62ac Make nova.SecurityTests runable against nova-cloud-controller
Needed for https://bugs.launchpad.net/charm-nova-cloud-controller/+bug/1828424
2020-04-16 09:48:57 +02:00
Liam Young eec43340eb Extend Nova compute tests. (#14)
Extend the nova compute tests to cover some that were missed from
the amulet tests.
2019-06-05 10:32:02 +02:00
Chris MacNaughton dd434e281e Add zaza namespacing, starting with openstack 2019-04-25 17:46:03 +02:00