9 Commits

Author SHA1 Message Date
Martin Kopec
fb9f35d13f Improve python3 compatibility
The review:
 * adds a python3 job in order to test the refstack-client with
   python3 as well.
 * adds a job which runs unit tests by python3.7
 * changes default python3 (when -p 3 is specified) in setup_env script
   to version 3.6.0
 * converts downloaded list of tests from bytes to str in order to unify
   the types used for python2 and python3 compatibility.
 * edits -p argument in the setup_env script so that it also accepts a full
   version of Python a user wants to run with, before there were 2 options:
    * python2.7.8
    * python3.6.0
 * sets object-storage.operator_role to Member in tempest.conf in order to run
   tempest.api.object_storage.test_container_services.ContainerTest tests

Change-Id: I961f0f093bd7d40fde7e448ea12ef9907c61d126
2019-09-09 16:38:21 +00:00
Chandan Kumar
74b6ac1c3f Refstack-client should use stestr for tempest testing
Tempest has changed to use stestr instead of testr and testrepository
starting from 18.0.0,and the testr.conf was removed:
https://review.openstack.org/#/c/504345/

refstack-client will not able to run for tempest 18.0.0 as some commands
need the testr.conf in the path:

root@defcore:/home/defcore/refstack-client/refstack_client#
/home/defcore/refstack-client/.tempest/tools/with_venv.sh testr
list-tests
No .testr.conf config file

Tempest Commit SHA: 8316f962c52b01edc5be466b18e54904e2a1248a pointing
to tempest 19.0.0

Install tempest from master

Updated Guidelines to match 2018.02

Change-Id: Ic796cc7ad48037e64a4437d4834051c7fa7cbda1
Closes-Bug: #1765609
2018-09-03 18:01:49 +05:30
Luz Cazares
a13a5a4375 Remove usage of tempest install_venv scripts
install_venv script was removed from tempest back in Jan, 2016
Further details see Ib7dd6b34533880e48b367732ae3520026a92500e

This patch removes script references since virtualenv management is
handled during refstack installation.

Change-Id: I9c6a9a84792c5f4afd38d53f8a5cb86ecfa344a3
2018-05-14 11:13:23 -07:00
Luz Cazares
c876311111 Add python35 support
To be aligned with community goals
Add python35 support to refstack-client

Change-Id: I42ccc6128fc6a83ddee0e4014cbe2c8793b84012
2017-08-09 18:28:53 -07:00
Paul Van Eck
333cdde312 Propagate insecure arg to all requests
If the --insecure/-k flag is passed in, all requests should honor it.

Change-Id: I7bbd9f481595f8a90db3e96f890ec9315b01000c
Closes-Bug: #1633145
2016-10-18 15:54:58 -07:00
Ghe Rivero
c824952594 Fix regex to find test names
Create a whilelist file including only the test names with
the regex expression "test_name\[" since some test names can be a
subset of others

Change-Id: I4b4e60e2c2e1bae7d6a86f9af993390ecd7ccf7b
2016-10-11 01:36:09 +02:00
Luz Cazares
e610492537 Replace run_tempest.sh script with ostestr command
QA community default test runner is ostestr, and using run_tempest.sh
script is no longer recommended. BP replaces run_tempest.sh script
with direct ostestr call passing the appropriate parameters.

Implements blueprint: implement-ostestr-refstackclient

Change-Id: If4ffed70c8320abb4b4c7bfd1b84ca7892272665
2016-07-06 13:18:37 -07:00
Chris St. Pierre
921c82be9d Report stdout from test listing on failure
stdout from `testr list-tests' often contains useful information, so
report it to the user on failure.

Change-Id: Idc9d2e16d64fcdfad1de881a3458d13a7de33471
Closes-Bug: #1533655
2016-01-13 06:36:13 -06:00
Paul Van Eck
43777f9820 Add argument for specifying test-list directly
Because test attributes can constantly change in test lists, refstack-client
should have a native argument for passing in test lists (instead of '-- --load-list')
Refstack-client will normalize the tests in the given list by matching it to
test IDs in the current Tempest environment.

Closes-Bug: #1475407
Change-Id: I1e3f026f5cd706cf73b6febfce98cb96b742d4d6
2015-07-17 15:31:16 -07:00