Commit Graph

40 Commits

Author SHA1 Message Date
Takashi Kajinami c5ef0113df Remove six
This plugin no longer supports python 2 thus usage of six is no longer
needed.

Change-Id: Id087aeab1c3e5baf540f99ed843e4c3cfc763006
2024-02-13 23:20:04 +00:00
Pierre Riteau b04a4d07ea Wait longer for lease deletion to complete
When testing with Ubuntu Jammy, this test is consistently failing. Wait
longer for Blazar to complete lease deletion, since server deletion is
only the first part of it.

Change-Id: Ibd48ad420c3f4de43950c15769c7701a7eb49222
2022-11-17 15:23:21 +01:00
Roman Popelka e1dde454f3 Remove setup_clients method
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Replaced methods:
    * setup_clients

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib6c365a01bfebbcc355160f6139d9ac97e557b69
2022-06-09 13:40:27 +02:00
Roman Popelka b6b967963d Remove unused methods
As tempest.scenario.manager was announced stable interface in Tempest
27.0.0[1] it can be now reused in plugins.

Removed methods:
    * create_volume
    * create_volume_type
    * _create_loginable_secgroup_rule
    * create_security_group
    * get_remote_client
    * _image_create
    * glance_image_create
    * _log_net_info
    * nova_volume_attach
    * nova_volume_detach
    * check_vm_connectivity
    * check_public_network_connectivity
    * create_floating_ip
    * create_timestamp
    * get_timestamp
    * get_server_ip

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib8e1f9d9017b8e807a19fdebc1c5ccba25e7b933
2022-06-09 13:39:01 +02:00
Zuul ddd4072f6e Merge "Remove _log_console_output, ping_ip_address methods" 2022-04-06 13:31:49 +00:00
Zuul 97efa5180e Merge "Remove create_server and rebuild_server methods" 2022-04-06 13:31:47 +00:00
Zuul e2d8c738a7 Merge "Remove _create_port and create_keypair methods" 2022-04-06 13:31:45 +00:00
Roman Popelka 652c9a8d2d Remove _log_console_output, ping_ip_address methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* _log_console_output
	* ping_ip_address

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I5f4332f62c44430418e55c0acffc8531a54f25b9
2022-03-17 06:39:01 +00:00
Roman Popelka 7669fc715c Remove create_server and rebuild_server methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_server
	* rebuild_server

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ic0cbced04abe6af5d20ff5c461d0304cf5ef475a
2022-03-17 07:37:07 +01:00
Roman Popelka 94c16b1a59 Remove _create_port and create_keypair methods
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* _create_port
	* create_keypair

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I800e55bb5a433961a96c57195fd806881caac4be
2022-03-08 11:15:05 +00:00
Roman Popelka 6063a467e4 Remove create_server_snapshot method
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_server_snapshot

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: I559fafba4d354f759bef69c0bdd9c3681f27d8c7
2022-03-08 11:13:36 +00:00
Pierre Riteau 10ef8b76dd Fix multiple CI failures
1) Bump hacking max version to 3.0.1 and fix code style failures.

pep8 job is failing because the version of flake8 (flake8<2.7.0,>=2.6.0)
requested by hacking<1.2.0 is not compatible with pyflakes>=2.1.1.
Therefore the patch increases the max version of hacking.

2) Disable swift-proxy service which fails to start on stein. Disabled
   other unneeded services while here.

Change-Id: I87c6d037fbbc24ef795ddbe26b5e297fb1bbc7a9
2021-01-05 17:18:45 +01:00
Martin Kopec 053132173f Remove deprecated scenario image options
The following options have been deprecated for more than 4 years
already and currently are being removed from tempest:
* aki_img_file
* ari_img_file
* ami_img_file

Change-Id: I50559a47520c15b7ed09f10427ecae9a6ce123e1
Related-Bug: #1393881
2020-03-12 11:46:38 +00:00
Ghanshyam Mann b390e9d8a4 Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.
- https://review.opendev.org/#/q/topic:volume-default-testing-v3+(status:open+OR+status:merged)

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: I251145bd649704099e159264da085a4c72f11a95
Needed-By: https://review.opendev.org/#/c/698754/
2020-01-07 12:43:50 +00:00
Pierre Riteau d75253ae78 Update lease dates to be far in the future
Our Gabbi tests started failing because the start date of 2020-01-01 is
now in the past.

Change-Id: Ic7f5c751cd9523fe80acf88c40c7ad1cceaa1d5a
2020-01-07 10:30:35 +01:00
Tetsuro Nakamura 3d19fe843f Use global request id for scenario tests
This patch adds a global request id to each header for blazar requests
used in the scenario tests. Now the global request ids are in the debug
logs, which helps you to track each request over multiple OpenStack
services improving the debuggability for test failures.

Depends-On: https://review.opendev.org/#/c/670995/
Change-Id: Idd7095fa0c7af4b29a5a84b035fe1e882b995fa0
2019-07-17 03:05:27 +00:00
Zuul c91065e362 Merge "Add API tests for List and Get Allocation API" 2019-03-29 10:12:31 +00:00
Zuul 53c670470d Merge "Change end date in test_update_host_reservation" 2019-03-29 03:49:21 +00:00
Masahito Muroi a661ec479f Add API tests for List and Get Allocation API
This patch adds API tests for List and Get host allocation API.

Partially Implements: blueprint resource-allocation-api
Change-Id: I597e163541776022c1152cab02f259c857b1a459
2019-03-28 22:52:44 +00:00
Tetsuro Nakamura 2e6d779897 Change end date in test_update_host_reservation
This patch changes the end date of leases to update in a test scenario
to have a period of time to prevent them from being rejected with the
"End date must be later than current and start date" error.

Change-Id: Id8bc8d5c850dd10d2d85b51620b2effe5494320e
Closes-Bug: #1821731
2019-03-27 01:15:06 +00:00
Masahito Muroi b719662d91 Import TimeoutException from tempest.lib.exceptions module
Tempest defines TimeoutException in the tempest.lib.exceptions module.
However the Blazar Tempest plugin imports the exception from the
tempest.exceptions module. It causes AttributeError instead of raising
TimeoutException.

Change-Id: I1a57b4cc66ae32793f93264c3b5f6c7ae67a8e4c
2019-03-19 10:09:23 +00:00
Zuul 6c10dff9a0 Merge "Update hacking version" 2019-03-08 18:40:07 +00:00
Tetsuro Nakamura 73ab5dbf98 Wait before lease status transition
Supporting placement API, on reservation end, there could be a time lag
between the server deletion and the lease status transition.

This change inserts a waiting function before checking the lease status.

Change-Id: Ia39a8691f799ac3cd654a0af5f1930eb58093a0d
Needed-By: https://review.openstack.org/#/c/633203/
2019-02-12 10:11:57 +00:00
Pierre Riteau 1c305f595f Update hacking version
Change-Id: I78d0722f3864c8225a64c4da2456ba2560af5081
2019-02-05 17:38:40 +00:00
Masahito Muroi 126fee8372 Add a lease update scenario for instance reservation
Change-Id: Ib02ddb5edf8e68fc7de43b3f0c89c496a56a8ea2
2018-11-27 17:50:00 +09:00
Masahito Muroi 23cb84635c Add a lease expiration scenario for instance reservation
Change-Id: Ie2c4af493d2af8ab787709a42f4f55368bd71426
2018-11-27 17:49:10 +09:00
Masahito Muroi 8bb95750da Implement scenario test for the new instance reservation feature
The current instance reservation test scenario is outdated because it
was written for the old instance plugin, which was removed in the Ocata
release.

This patch replaces it with a scenario test for the new instance
reservation feature.

Change-Id: Id6cb3f3a6471eee70000c42694870609068eba75
Closes-Bug: #1714438
2018-11-06 09:59:08 +00:00
Zuul ef61d6fa07 Merge "Add gabbi tests for invalid date error" 2018-07-23 03:40:02 +00:00
Tetsuro Nakamura b6a7ef7eed Add gabbi tests for invalid date error
The create lease API returned a 500 response status code, but this is
fixed to return a 400 in https://review.openstack.org/583419/.

This patch adds a test for the fix.

Depends-On: https://review.openstack.org/583419/
Change-Id: Id289ae2259a03d49436294cdac1825acbd9005fb
2018-07-21 11:39:31 +09:00
Tetsuro Nakamura 11cbbebea6 Add test for invalid extra capability key
The length of a host's extra capability key is limited to a maximum
of 64 characters. This error has been changed from 500 Internal Server
Error to 400 Bad Request in https://review.openstack.org/#/c/575699/.

This patch adds a test for that change.

Change-Id: I7f88354b917131d5848f3cfd7155ff60c19207a8
2018-07-19 16:14:59 +09:00
Tetsuro Nakamura 5f4d597366 Adds /leases api tests using gabbi
This patch adds /leases api tests using gabbi.

Change-Id: Idb00cc910af163f7ebbbb7e504aff41cade3e99e
2018-07-18 09:03:49 +00:00
Tetsuro Nakamura 8ece6590c9 Adds /os-hosts api tests using gabbi
This patch adds /os-host api tests using gabbi. Tests for /leases
api will be added in a following patch.

Depends-On: https://review.openstack.org/581939
Depends-On: https://review.openstack.org/580538
Change-Id: Ic8dc7b1942f312d6dcbe5f2ad6a73289eaf7c838
2018-07-17 21:16:41 +09:00
ghanshyam 26aec9d008 Remove volume v1 API service client usage
Volume v1 API has been gone since long and Tempest also
marked their deprecation since Juno
- https://review.openstack.org/#/c/446238/

Now Tempest is removing the deprecated config option and
alias for voluem v1 service client in
- https://review.openstack.org/#/c/573135/

Before the Tempest patch gets merged, we need to remove all usage
of volume v1 things.

Change-Id: Ifcf420582644281b792c501c3e438a2c91c335b2
Needed-By: https://review.openstack.org/#/c/573135/
2018-06-07 10:55:18 +00:00
Zuul d023f4e853 Merge "Remove climate namespace" 2018-04-03 09:39:43 +00:00
Masahito Muroi 21ac85f14c Remove climate namespace
Partial-Bug: #1755325
Change-Id: I57dcc03c9fed3fbd407640c81db50559bef4a0dd
2018-03-13 17:14:48 +09:00
Nguyen Hung Phuong 683da58449 Switch to tempest.common.utils.services
Tempest deprecated tempest.test.services [1]. It is now available in
tempest.common.utils.

[1] https://review.openstack.org/#/c/493668/

Change-Id: I09f3648f8a8618b6b487a63e2441dd92170d9a7a
2018-01-31 16:32:27 +00:00
Hiroaki Kobayashi f2748d36aa Fix issues with Python3
Partially implements: blueprint python-3

Change-Id: Iac7a61026e83dfa977de7edb2cf141c285603e2b
2018-01-31 11:44:34 +00:00
Chandan Kumar cdce28e5bf Use waiter method to check server status
The status of an instance could be 'ACTIVE' right after a lease ends,
since the task of deleting the instance is still in progress.

This patch replaces the assertion to check whether the instance is
terminated with a waiter method. The method periodically checks for the
existance of the specified instance until the instance is deleted.

* Code sync from https://review.openstack.org/#/c/527874/

Change-Id: I32f2ef3ddbb30da8061ccc035aae0428e6dd5450
2018-01-04 22:11:09 +05:30
Hiroaki Kobayashi a96150009d Change lease start date in some test scenarios
This patch changes the start date of leases to "now" to prevent them
from being rejected for starting before the current date.

Closes-Bug: #1737880
Change-Id: Ic6b66c2b321ea01ebe9d71486e4357f5b93a5fe2
2017-12-15 14:20:46 +00:00
Chandan Kumar 471157beb1 Refactored blazar tempest plugin
* In order to complete the tempest plugin split goal, we need to
  refactor the blazar tempest plugin so that we can easily consume.

* use six.moves import range instead xrange to avoid flake8 error

Change-Id: I88f2a961d770d6deebd9af567d6407e677c102ae
2017-12-15 15:37:55 +09:00