19 Commits

Author SHA1 Message Date
jh629g
0616e8e574 Updated sync for alt_region tests, improved status loops
Updated synchronization after gaining better
insights into how to utilize oslo_concurrency
module. Updated region resource updates to be
in resource_setup of base.py for ranger tempest
test suite. Improved region status and removal
loops to overall improve functionality.

Change-Id: I17310dcc46697d4a4541d3ee8355f0669c268e8a
2020-07-13 16:38:07 +00:00
Chi Lo
fec00c7117 Modfied create image in region 'down' state to be tested in alt_region
Change-Id: I5c304daf72e0d76e0fa92446318bdeaaf4e5acda
2020-06-29 21:48:15 +00:00
Chi Lo
3aee34ac5f Add more test coverage for Ranger services
Change-Id: Id517254464e50e36d95a26d49ddd1288819e5032
2020-06-25 13:58:39 -07:00
jh629g
78f191ddbb Fixed region domainName update in class setup process
During setup of ranger tempest test runs, an update
statement is ran which updates ranger regions to
the appropriate testing domain as defined by
tempest.conf. This update statement has been updated
to target only the sites being used for that particular
ranger tempest test run. Also fixed typo in IMS test.

Change-Id: I4ebdc7fd21cebb23e8033a066bbd90d26f76bb50
2020-05-28 18:01:18 +00:00
Chi Lo
6d7c3c14f5 Add skip_checks for Ims test cases
Add skip_checks for Ims test cases when image_url is not specified
in tempest.conf.

Change-Id: If8149c744c735c972fa013bf860ba96df7bf7707
2020-05-13 12:36:42 -07:00
jh629g
ff87b86724 Fix Typo, Add Resource Lock
Added resource locking to flavor tests
that utilize regions and fixed typo in
name of key for image dictionary in
image region resource status tests

Change-Id: I66e0930d28a4e0e03af347a10913c9fef1c351bf
2020-04-03 18:42:58 +00:00
jh629g
b167877470 Updating region create to region update
tempest tests use region create statement to ensure
regions exist for testing purposes. ranger-agent
charts now include automation during deployment for
ranger regions, so these statements have been changed
to update statements to ensure region is pointing at
testing domain

Change-Id: I3024145c5b388d85b2aa78c223bd47e486fbd157
2020-03-26 17:34:10 -05:00
jh629g
80186622a9 Fix Tempest IMS tests for Ranger
Adjusts tests to work with ranger
adjusted for python 3.6. Failures
occurred due to bad application of
region functionality in previous
iterations of tests.

Change-Id: Id077817a119e65dd5d483eafa1759ae371600f88
2020-03-20 14:05:52 -05:00
jh629g
03f238e85e Allow for variable-domain testing
Ensures that ranger-tempest-plugin
has needed roles in the project
specified so that resource creation
works in domain specified within
ranger's region

Change-Id: I753fbb4ca33f2692fe337f4dd83f3feedfb9b2d6
2020-03-06 14:35:10 -06:00
jh629g
57323cb05d Modifications to function with 3.6 Ranger Build
Several tests because non-functional after git removal
and python 3.6 code update. This patchset will ensure
that these tests function with current ranger codebase.
Also removes erroneous use of rand_region functionality
when testing flavors, flavor testing should always use
real ranger regions, otherwise database will require
manual purging of flavor after it goes into error status.

Change-Id: I941b45b62ae1288e5594942d4567dc90fc968842
2020-01-27 16:48:46 -06:00
FNU PRIYA
0fd8d9738e Fix duplicate Idempotent ID issue test_images.py
https://review.opendev.org/#/c/699057/7/ranger_tempest_plugin/tests/api/test_images.py@110

Change-Id: If470b02c8f2efda8977eb9688de0dae1f4ccafbb
2020-01-14 22:01:52 +00:00
jh629g
362eabd829 Refactor to remove resource leaks
Resource leaks occur when resources
error out when creating in openstack.
This also includes a general refactor.

Change-Id: I2c3c3fad0a484cf3b5edf172d00b8465ba7d70f7
2019-12-20 08:40:17 -06:00
Ansuman Bebarta
22f72955cc Fix the key error in ims resource_setup and _data_setup methods
The resource_setup and _data_setup methods fails while running
ims test cases with below error.

KeyError: 'id'

Pre generate the id and associate with payload so that clean up
can be called before resource creation to avoid resource leak.

Change-Id: I751b187918302a3708f20a41e015e470fa5a6ff5
2019-11-29 19:34:21 +05:30
jh629g
3801aa3f18 Ranger tempest plugin python3
More python 3 fixes

These fixes are conducive towards
verifying the functionality of
ranger in python3.6/stein development.

Change-Id: Iadb889a02658c49667a0e83ca5136323791693e1
2019-11-19 08:31:02 -06:00
jh629g
aadf73a575 Create Auth Skipcheck
Ranger currently has issue authing with certain
credentials against some keystone environments.
This patchset introduces a skipcheck if it is
found that credentials provided do not allow
the user to execute tests against the site.

Change-Id: I5e3daff3b6ed6b5c4731320f82bb929d3caa6e07
2019-09-24 16:38:33 -05:00
AbhishekJ
5dc739f533 Added Test Related to Image Management System
fixed Lint issues
  create Protected Image
  create image with tags and properties
  create image with uuid
  create image with region and region group
  test image region status and aggregate status

Change-Id: I116615fc1047294411d11c7a07687d6952534b73
2019-09-10 09:54:03 +00:00
AbhishekJ
27d3c816d9 Extend RDS Api tests for IMS Added TC
- test_image_while_region_down IMS Calls Region Status = down
 - test_image_while_region_building IMS Calls Region Status = building
 - test_image_while_region_maintenance IMS Calls Region Status = maintenance

Change-Id: Ic56e53596d477e466214c67f99fae81c5561bd0f
2019-09-10 09:24:52 +00:00
jh629g
e687324086 Update ranger-tempest-plugin to python 3.6
Small changes to ensure ranger-tempest-plugin
is ready for the end of python 2.7 support.

Change-Id: Ib1dd506ccf5bbd419ced9c3e81dabfb0cde08719
2019-08-13 10:10:09 -05:00
jh629g
e7c69f048c Initial Ranger-Tempest-Plugin Commit
First commit with zuul tests and
migration of existing Ranger-Tempest-
Plugin codebase.

Change-Id: I45d6946a397cc148ec3789af1c1ad4374a99396a
2019-07-15 21:01:36 -05:00