Browse Source

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: I532dc11528dfa1e9f566e3a2c860fd62a56418b3
Vu Cong Tuan 9 months ago
parent
commit
08fda6ea42
7 changed files with 30 additions and 33 deletions
  1. 1
    1
      .gitignore
  2. 4
    0
      .stestr.conf
  3. 0
    7
      .testr.conf
  4. 1
    1
      lower-constraints.txt
  5. 14
    14
      requirements.txt
  6. 9
    9
      test-requirements.txt
  7. 1
    1
      tox.ini

+ 1
- 1
.gitignore View File

@@ -40,7 +40,7 @@ ChangeLog
40 40
 
41 41
 #Autogenerated sample config file
42 42
 etc/muranoagent/muranoagent.conf.sample
43
-/.testrepository/
43
+.stestr/
44 44
 
45 45
 #swap file
46 46
 *.swp

+ 4
- 0
.stestr.conf View File

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

+ 0
- 7
.testr.conf View File

@@ -1,7 +0,0 @@
1
-[DEFAULT]
2
-test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
-             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
-             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5
-             ${PYTHON:-python} -m subunit.run discover $DISCOVER_DIRECTORY $LISTOPT $IDOPTION
6
-test_id_option=--load-list $IDFILE
7
-test_list_option=--list

+ 1
- 1
lower-constraints.txt View File

@@ -75,7 +75,7 @@ snowballstemmer==1.2.1
75 75
 Sphinx==1.6.5
76 76
 sphinxcontrib-websupport==1.0.1
77 77
 stevedore==1.28.0
78
-testrepository==0.0.20
78
+stestr==2.0.0
79 79
 testtools==2.3.0
80 80
 traceback2==1.4.0
81 81
 unittest2==1.1.0

+ 14
- 14
requirements.txt View File

@@ -1,17 +1,17 @@
1 1
 # The order of packages is significant, because pip processes them in the order
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4
-pbr!=2.1.0 # Apache-2.0
5
-anyjson # BSD
6
-eventlet!=0.18.3,!=0.20.1,!=0.21.0 # MIT
7
-GitPython # BSD License (3 clause)
8
-kombu!=4.0.2 # BSD
9
-oslo.config!=4.3.0,!=4.4.0 # Apache-2.0
10
-oslo.log # Apache-2.0
11
-oslo.service!=1.28.1 # Apache-2.0
12
-oslo.utils # Apache-2.0
13
-PyYAML # MIT
14
-six # MIT
15
-semantic-version # BSD
16
-requests # Apache-2.0
17
-cryptography!=2.0 # BSD/Apache-2.0
4
+pbr>=3.1.1 # Apache-2.0
5
+anyjson>=0.3.3 # BSD
6
+eventlet>=0.20.0,!=0.20.1,!=0.21.0 # MIT
7
+GitPython>=2.1.8 # BSD License (3 clause)
8
+kombu>=4.1.0 # BSD
9
+oslo.config>=5.2.0 # Apache-2.0
10
+oslo.log>=3.37.0 # Apache-2.0
11
+oslo.service>=1.30.0 # Apache-2.0
12
+oslo.utils>=3.36.0 # Apache-2.0
13
+PyYAML>=3.12 # MIT
14
+six>=1.11.0 # MIT
15
+semantic-version>=2.6.0 # BSD
16
+requests>=2.18.4 # Apache-2.0
17
+cryptography>=2.1.4 # BSD/Apache-2.0

+ 9
- 9
test-requirements.txt View File

@@ -2,14 +2,14 @@
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4 4
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
5
-unittest2 # BSD
6
-coverage!=4.4 # Apache-2.0
7
-mock # BSD
8
-testtools # MIT
9
-testrepository # Apache-2.0/BSD
10
-oslotest # Apache-2.0
5
+unittest2>=1.1.0 # BSD
6
+coverage>=4.5.1 # Apache-2.0
7
+mock>=2.0.0 # BSD
8
+testtools>=2.3.0 # MIT
9
+stestr>=2.0.0 # Apache-2.0
10
+oslotest>=3.3.0 # Apache-2.0
11 11
 
12 12
 # doc build requirements
13
-openstackdocstheme # Apache-2.0
14
-sphinx!=1.6.6,!=1.6.7 # BSD
15
-reno # Apache-2.0
13
+openstackdocstheme>=1.20.0 # Apache-2.0
14
+sphinx>=1.6.5,!=1.6.6,!=1.6.7 # BSD
15
+reno>=2.7.0 # Apache-2.0

+ 1
- 1
tox.ini View File

@@ -11,7 +11,7 @@ install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstac
11 11
 deps = -r{toxinidir}/requirements.txt
12 12
        -r{toxinidir}/test-requirements.txt
13 13
 commands =
14
-  python setup.py testr --slowest --testr-args='{posargs}'
14
+  stestr run --slowest {posargs}
15 15
 
16 16
 whitelist_externals = bash
17 17
                       find

Loading…
Cancel
Save