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:
parent
9f129ffb1c
commit
c3bee4928f
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,7 +7,7 @@ build
|
|||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
*.pyc
|
*.pyc
|
||||||
.testrepository
|
.stestr/
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
#IntelliJ Idea
|
#IntelliJ Idea
|
||||||
.idea/
|
.idea/
|
||||||
|
4
.stestr.conf
Normal file
4
.stestr.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./tests
|
||||||
|
top_dir=./
|
||||||
|
|
@ -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
|
|
@ -1,7 +1,7 @@
|
|||||||
oslosphinx
|
oslosphinx
|
||||||
pbr>=2.0.0,!=2.1.0 # Apache-2.0
|
pbr>=2.0.0,!=2.1.0 # Apache-2.0
|
||||||
sphinx>=1.6.2 # BSD
|
sphinx>=1.6.2 # BSD
|
||||||
testrepository>=0.0.18
|
|
||||||
testtools>=1.4.0
|
testtools>=1.4.0
|
||||||
|
stestr>=2.0.0
|
||||||
yasfb>=0.5.1
|
yasfb>=0.5.1
|
||||||
doc8 # Apache-2.0
|
doc8 # Apache-2.0
|
||||||
|
@ -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
|
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.
|
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
|
* 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
|
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 user can specify the start and end time or any one, If user doesn't specify
|
||||||
the audit's behavior is the same as before. If no start time, audit starts after creating.
|
start and end time, the audit's behavior is the same as before. If no start
|
||||||
If no end time, audit runs until its state is SUSPENDED or CANCELLED.
|
time, audit starts after creating. If no end time, audit runs until its state
|
||||||
If end time is provided, the audit will be set from ONGOING to SUCCEEDED
|
is SUSPENDED or CANCELLED. If end time is provided, the audit will be set from
|
||||||
after end time and not running again.
|
ONGOING to SUCCEEDED after end time and not running again.
|
||||||
The datetime format is ISO 8601, such as: YYYY-MM-DD hh:mm:ss
|
The datetime format is ISO 8601, such as: YYYY-MM-DD hh:mm:ss
|
||||||
|
|
||||||
Here are some CLI examples:
|
Here are some CLI examples:
|
||||||
|
@ -38,11 +38,11 @@ made by this Planner.
|
|||||||
Use Cases
|
Use Cases
|
||||||
----------
|
----------
|
||||||
|
|
||||||
* As an Strategy developer, I want to choose what Planner would be applied to the
|
* As an Strategy developer, I want to choose what Planner would be applied to
|
||||||
Solution generated by my Strategy.
|
the Solution generated by my Strategy.
|
||||||
|
|
||||||
* As an Strategy developer, I expect that if I provide no Planner to my Strategy, it
|
* As an Strategy developer, I expect that if I provide no Planner to my
|
||||||
will use default Planner that is set in base Strategy..
|
Strategy, it will use default Planner that is set in base Strategy..
|
||||||
|
|
||||||
|
|
||||||
Proposed change
|
Proposed change
|
||||||
|
@ -3,3 +3,4 @@
|
|||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
hacking>=0.10.0,<0.11
|
hacking>=0.10.0,<0.11
|
||||||
|
stestr>=2.0.0 # Apache-2.0
|
||||||
|
2
tox.ini
2
tox.ini
@ -13,7 +13,7 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
whitelist_externals = find
|
whitelist_externals = find
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user