Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Icb8426985ea156ed8b5f4dd454ed8457c11ec2a0
This commit is contained in:
Vu Cong Tuan 2018-07-04 13:26:04 +07:00
parent 9f129ffb1c
commit c3bee4928f
8 changed files with 19 additions and 17 deletions

2
.gitignore vendored
View File

@ -7,7 +7,7 @@ build
*.swp
*.swo
*.pyc
.testrepository
.stestr/
*.DS_Store
#IntelliJ Idea
.idea/

4
.stestr.conf Normal file
View File

@ -0,0 +1,4 @@
[DEFAULT]
test_path=./tests
top_dir=./

View File

@ -1,4 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -1,7 +1,7 @@
oslosphinx
pbr>=2.0.0,!=2.1.0 # Apache-2.0
sphinx>=1.6.2 # BSD
testrepository>=0.0.18
testtools>=1.4.0
stestr>=2.0.0
yasfb>=0.5.1
doc8 # Apache-2.0

View File

@ -10,7 +10,8 @@ Add the start and end time for CONTINUOUS audit
https://blueprints.launchpad.net/watcher/+spec/add-start-end-time-for-continuous-audit
Currently we can only set audit execution interval, but we can not set audit start and end time.
Currently we can only set audit execution interval, but we can not set audit
start and end time.
We need to add the audit start and end time for CONTINUOUS audit.
@ -33,11 +34,11 @@ Proposed change
* For CONTINUOUS audit, if its state is PENDING or ONGOING, launch the audit
only if the current time is between start_time and end_time
The user can specify the start and end time or any one, If user doesn't specify start and end time,
the audit's behavior is the same as before. If no start time, audit starts after creating.
If no end time, audit runs until its state is SUSPENDED or CANCELLED.
If end time is provided, the audit will be set from ONGOING to SUCCEEDED
after end time and not running again.
The user can specify the start and end time or any one, If user doesn't specify
start and end time, the audit's behavior is the same as before. If no start
time, audit starts after creating. If no end time, audit runs until its state
is SUSPENDED or CANCELLED. If end time is provided, the audit will be set from
ONGOING to SUCCEEDED after end time and not running again.
The datetime format is ISO 8601, such as: YYYY-MM-DD hh:mm:ss
Here are some CLI examples:

View File

@ -38,11 +38,11 @@ made by this Planner.
Use Cases
----------
* As an Strategy developer, I want to choose what Planner would be applied to the
Solution generated by my Strategy.
* As an Strategy developer, I want to choose what Planner would be applied to
the Solution generated by my Strategy.
* As an Strategy developer, I expect that if I provide no Planner to my Strategy, it
will use default Planner that is set in base Strategy..
* As an Strategy developer, I expect that if I provide no Planner to my
Strategy, it will use default Planner that is set in base Strategy..
Proposed change

View File

@ -3,3 +3,4 @@
# process, which may cause wedges in the gate later.
hacking>=0.10.0,<0.11
stestr>=2.0.0 # Apache-2.0

View File

@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
stestr run --slowest {posargs}
[testenv:venv]
commands = {posargs}