File tree Expand file tree Collapse file tree 3 files changed +72
-0
lines changed Expand file tree Collapse file tree 3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ orbs :
4
+ python :
circleci/[email protected]
5
+
6
+ jobs :
7
+ build-and-test :
8
+ executor : python/default
9
+ working_directory : ~/ibm-spectrum-scale-bridge-for-grafana
10
+ steps :
11
+ - checkout
12
+ - python/load-cache
13
+ - python/install-deps
14
+ - run :
15
+ name : install dependencies
16
+ command : |
17
+ python3 -m venv venv
18
+ . venv/bin/activate
19
+ pip install -r requirements.txt
20
+ - python/save-cache
21
+ - run :
22
+ name : Test
23
+ command : |
24
+ . venv/bin/activate
25
+ flake8 --exclude=venv* --statistics
26
+ nosetests tests/
27
+
28
+
29
+ workflows :
30
+ main :
31
+ jobs :
32
+ - build-and-test
33
+
Original file line number Diff line number Diff line change
1
+ nose
2
+ pytest
3
+ coverage
4
+ coveralls
5
+ PyYAML
6
+ github3.py
7
+ flake8
8
+ six
Original file line number Diff line number Diff line change
1
+ import sys
2
+ sys .path .append ('./source/' )
3
+ import zimonGrafanaIntf
4
+ import os
5
+
6
+ def test_case01 ():
7
+ result = os .system ("python ./source/zimonGrafanaIntf.py" )
8
+ assert result == 0
9
+
10
+ def test_case02 ():
11
+ result = os .system ("python ./source/zimonGrafanaIntf.py --port 4242" )
12
+ assert result == 0
13
+
14
+ def test_case03 ():
15
+ result = os .system ("python ./source/zimonGrafanaIntf.py -c 10" )
16
+ assert result == 0
17
+
18
+ def test_case04 ():
19
+ result = os .system ("python ./source/zimonGrafanaIntf.py --port 8443" )
20
+ assert result == 0
21
+
22
+ def test_case05 ():
23
+ result = os .system ('python ./source/zimonGrafanaIntf.py --port 8443 --keyPath "C:\\ tmp\\ "' )
24
+ assert result == 0
25
+
26
+ def test_case06 ():
27
+ result = os .system ('python ./source/zimonGrafanaIntf.py -a 2' )
28
+ assert result > 0
29
+
30
+
31
+
You can’t perform that action at this time.
0 commit comments