Browse Source

Enable zuul check and gate for unit tests

Enabling zuul check and gate for controllerconfig and
configutilities unit tests.

Story: 2003360
Task: 26216

Change-Id: I6e4807054b793937cef7d549d8bdec058ee26e1c
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
Bart Wensley 7 months ago
parent
commit
1b8a492ee1
4 changed files with 62 additions and 3 deletions
  1. 49
    1
      .zuul.yaml
  2. 3
    0
      configutilities/configutilities/tox.ini
  3. 4
    2
      controllerconfig/controllerconfig/tox.ini
  4. 6
    0
      tox.ini

+ 49
- 1
.zuul.yaml View File

@@ -6,9 +6,16 @@
6 6
             voting: false
7 7
         - sysinv-tox-unittest:
8 8
             voting: false
9
+        - controllerconfig-tox-flake8
10
+        - controllerconfig-tox-py27
11
+        - controllerconfig-tox-pylint
12
+        - configutilities-tox-flake8
9 13
     gate:
10 14
       jobs:
11
-        - noop
15
+        - controllerconfig-tox-flake8
16
+        - controllerconfig-tox-py27
17
+        - controllerconfig-tox-pylint
18
+        - configutilities-tox-flake8
12 19
 
13 20
 - job:
14 21
     name: sysinv-tox-unittest
@@ -22,3 +29,44 @@
22 29
     vars:
23 30
       tox_envlist: py27
24 31
       tox_extra_args: -c sysinv/sysinv/sysinv/tox.ini
32
+
33
+- job:
34
+    name: controllerconfig-tox-flake8
35
+    parent: tox
36
+    description: Run flake8 tests for controllerconfig
37
+    required-projects:
38
+      - openstack/stx-update
39
+      - openstack/stx-fault
40
+    vars:
41
+      tox_envlist: flake8
42
+      tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
43
+
44
+- job:
45
+    name: controllerconfig-tox-py27
46
+    parent: tox
47
+    description: Run py27 tests for controllerconfig
48
+    required-projects:
49
+      - openstack/stx-update
50
+      - openstack/stx-fault
51
+    vars:
52
+      tox_envlist: py27
53
+      tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
54
+
55
+- job:
56
+    name: controllerconfig-tox-pylint
57
+    parent: tox
58
+    description: Run pylint tests for controllerconfig
59
+    required-projects:
60
+      - openstack/stx-update
61
+      - openstack/stx-fault
62
+    vars:
63
+      tox_envlist: pylint
64
+      tox_extra_args: -c controllerconfig/controllerconfig/tox.ini
65
+
66
+- job:
67
+    name: configutilities-tox-flake8
68
+    parent: tox
69
+    description: Run flake8 tests for configutilities
70
+    vars:
71
+      tox_envlist: flake8
72
+      tox_extra_args: -c configutilities/configutilities/tox.ini

+ 3
- 0
configutilities/configutilities/tox.ini View File

@@ -13,6 +13,9 @@ wrsdir = {toxinidir}/../../../../../../../../..
13 13
 whitelist_externals = find
14 14
 install_command = pip install --no-cache-dir {opts} {packages}
15 15
 
16
+[testenv:venv]
17
+commands = {posargs}
18
+
16 19
 [testenv:flake8]
17 20
 basepython = python2.7
18 21
 deps = flake8

+ 4
- 2
controllerconfig/controllerconfig/tox.ini View File

@@ -7,8 +7,7 @@
7 7
 envlist = flake8, py27, pylint
8 8
 # Tox does not work if the path to the workdir is too long, so move it to /tmp
9 9
 toxworkdir = /tmp/{env:USER}_cctox
10
-wrsdir = {toxinidir}/../../../..
11
-stxdir = {[tox]wrsdir}/stx
10
+stxdir = {toxinidir}/../../..
12 11
 
13 12
 [testenv]
14 13
 whitelist_externals = find
@@ -21,6 +20,9 @@ deps = -r{toxinidir}/requirements.txt
21 20
        -e{[tox]stxdir}/stx-config/sysinv/sysinv/sysinv
22 21
        -e{[tox]stxdir}/stx-config/sysinv/cgts-client/cgts-client
23 22
 
23
+[testenv:venv]
24
+commands = {posargs}
25
+
24 26
 [testenv:pylint]
25 27
 basepython = python2.7
26 28
 deps = {[testenv]deps}

+ 6
- 0
tox.ini View File

@@ -38,3 +38,9 @@ commands =
38 38
 
39 39
 [testenv:venv]
40 40
 commands = {posargs}
41
+
42
+[testenv:flake8]
43
+description = Dummy environment to allow flake8 to be run in subdir tox
44
+
45
+[testenv:pylint]
46
+description = Dummy environment to allow pylint to be run in subdir tox

Loading…
Cancel
Save