25 Commits

Author SHA1 Message Date
Chi Lo
5678f3e210 Refactor retry loop awaiting for image status
Change-Id: If102370ccadaccf9ee9b3309eb273c183a7f13ea
2020-10-02 11:41:07 -07:00
jh629g
bd5acac654 Remove Ranger region create, catch all errrors
Remove ranger region create in favor of
charts performing needed creation. All
errors when ranger tempest attempts to
get region from ranger now mean that Ranger
is not available and we should skip all
tests

Change-Id: Ideb968aeece89b177c591408dbba78a7c2f9e916
2020-09-10 19:11:09 +00:00
Chi Lo
37ea690c81 Catch ConnectionError exception when CH server unavailabe
Change-Id: Idbec6eafd56dea2fc92a5fb7c3bee58c46c00148
2020-09-08 13:29:32 -07:00
Chi Lo
6587fd6efe Remove dependency on RMS's domainName for CMS test cases
CMS will use its own customer domain name instead of
retrieving from RMS's region.  As a result, no RMS's domainName
update is required to alter the domain name prior to the
test case execution.

Change-Id: Ib28f705fe2ba9362da138d88aeacd18f26222daf
2020-09-01 10:16:59 -07:00
jh629g
00681d0deb Fix teardown steps falsely erroring out tests
teardown steps executed at the end
of threadrunners disrupt tests
sometimes. Removed teardown which
would harm other tests, improved
error messages when ranger not
available

Change-Id: I1f01f5dfd928fcb4a8ec77d1fff1f0c9d6fd2dbb
2020-08-29 18:34:18 +00:00
jh629g
8e0975c424 CLLI value required
dummy region requires clli value

Change-Id: Ia339ab4ae598e1a957df684bd44bb46837d2fce8
2020-08-21 03:06:50 -05:00
jh629g
91f3af3759 Update Region create and update
format strings in parenthesis in
create statement, update update region
command for domain name of ranger
region

Change-Id: I976f8972faefe87e21bd746a18037403719bb6cf
2020-08-21 06:00:49 +00:00
jh629g
11f1de34a4 Update Ranger Region Create statement
Ranger region create statement
missing mandatory parameter
"locationtype"

Change-Id: Ifd734ccacc0996149c6b9b7b10db836904f0d3d6
2020-08-20 17:26:49 +00:00
Chi Lo
3db2d2c746 Added skip check when Ranger not reachable
When Ranger is not reachable, test cases will need to be
skipped.  In addition, remove the extra skip check for RMS and IMS
services.  If setup fails for these modules, let the test cases
fail as well.

Change-Id: Ibadb065ef9816cf1cb6ce44e5229753d679f8bf6
2020-08-11 14:07:03 -07:00
Chi Lo
0cf694ada3 Changed format string typo for skip check
This patch also:
(1) changed the order base resource setup is called for RMS
    and IMS test modules
(2) added extra skip check for the RMS and IMS test module

Change-Id: I24332c053250f36f0998dae089f327f3bf1ec34f
2020-08-10 13:29:23 -07:00
jh629g
2f53e76998 Added skipcheck for ranger site availability
Ranger tempest tests must skip safely when
ranger is not deployed at expected endpoint.

Creates ranger region for single site testing
if it is not present.

Skips if ranger alt region testing is chosen
and ranger alt region is not available, as
tempest conf only contains information of
main target for deployment of resources in
order to be able to build that region.

Change-Id: Ib30d6cd9db099b17d068301c52f20b7be5e30ac3
2020-08-06 14:57:43 +00:00
jh629g
8434876e2d Update Sync, update flavor delete tag
update sync to sync from base class for
alt_region tests, update flavor delete
tag test to ensure tag exists before delete

Change-Id: Iea42bc1566203a9959fe74a0ab99fb70f1360119
2020-07-16 19:15:49 +00:00
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
jh629g
a5237ba0bc Update ranger update region statement
Changed 'is' to '==' when comparing string
values due to wanting to compare the values
not the objects in the logical statement

Change-Id: I7e918e49aed0a6cde1adf2ff1c8c73a4e3382111
2020-06-04 14:47:16 -05:00
jh629g
7241704336 Minor fixes for Ranger flavor tests
Fixed test that gave false positives
and false negatives, added skipcheck
to that test. Updated config value to
boolean so that test skipchecks in flavor
tests worked as expected. Added function
for checking the status of individual
regions on a flavor.

Change-Id: I331e12a757b8eb1182cb88a19a8fd9607358143e
2020-06-04 07:55:10 -05:00
jh629g
a4eb88a69c Added skipchecks, updated region domain update setup
Skipcheck implemented for when a test uses multiple
ranger regions to execute a test and tempest did
not provide an additional region to complete these
tests with. Updated region domain update statement
in setup steps to ensure that ranger-tempest-plugin
does not attempt to update a secondary site when
it is not available

Change-Id: Ia19ef442107d7cc66d1f254860606245bf6c127f
2020-06-01 10:39:38 -05: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
jh629g
38de76fe6b Fix domain_name -> domainName
Fixed use of incorrect variable
in region dictionary for update
to testing domain

Change-Id: Ic522a2640cdf0bf8e88783aef1c6b4572aeb4d77
2020-04-01 12:06:20 -05: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
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
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
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