Console Output
[NBI-stage_2-merge_v8.0] Running shell script
+ devops-stages/stage-test.sh
cover create: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0/.tox/cover
cover installdeps: nose2, nose2-cov, coverage, -rrequirements.txt, -rtest-requirements.txt
cover develop-inst: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0
cover installed: aiohttp==3.6.2,aiokafka==0.6.0,aioresponses==0.7.2,async-timeout==3.0.1,asynctest==0.13.0,attrs==20.3.0,bitarray==1.9.2,certifi==2020.12.5,chardet==3.0.4,cheroot==8.5.2,CherryPy==18.1.2,cov-core==1.15.0,coverage==5.5,debtcollector==2.2.0,enum34==1.1.10,idna==2.10,idna-ssl==1.1.0,importlib-metadata==3.10.1,importlib-resources==5.1.2,iso8601==0.1.14,jaraco.functools==3.3.0,jsonschema==3.2.0,kafka-python==2.0.2,keystoneauth1==4.3.1,lxml==4.6.3,more-itertools==8.7.0,msgpack==1.0.2,multidict==4.7.6,netaddr==0.8.0,netifaces==0.10.9,nose2==0.10.0,nose2-cov==1.0a4,os-service-types==1.7.0,oslo.config==8.5.0,oslo.i18n==5.0.1,oslo.serialization==4.1.0,oslo.utils==4.8.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@13ac7a40f8efd8f7135ad06260663ff7e1f63d24,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@03c9aafb26f8daeeea0c25cd89ee4fd86fb7e0b5,-e git+https://osm.etsi.org/gerrit/osm/NBI.git@93c192e5a15a3fe1d7d78cb4e444578c7e5d24e3#egg=osm_nbi,packaging==20.9,pbr==5.5.1,pkg-resources==0.0.0,portend==2.7.1,pyang==2.4.0,pyangbind==0.8.1,pycrypto==2.6.1,pymongo==3.11.3,pyparsing==2.4.7,pyrsistent==0.17.3,python-keystoneclient==4.2.0,pytz==2021.1,PyYAML==5.4.1,regex==2021.4.4,requests==2.25.1,rfc3986==1.4.0,six==1.15.0,stevedore==3.3.0,tempora==4.0.2,typing-extensions==3.7.4.3,urllib3==1.26.4,wrapt==1.12.1,yarl==1.6.3,zc.lockfile==2.0,zipp==3.4.1
cover runtests: PYTHONHASHSEED='1083149923'
cover runtests: commands[0] | coverage erase
cover runtests: commands[1] | nose2 -C --coverage osm_nbi --plugin nose2.plugins.junitxml -s osm_nbi/tests
.....................................
----------------------------------------------------------------------
Ran 37 tests in 15.091s
OK
Name Stmts Miss Cover
-------------------------------------------------------------
osm_nbi/__init__.py 7 2 71%
osm_nbi/admin_topics.py 685 216 68%
osm_nbi/auth.py 375 375 0%
osm_nbi/authconn.py 90 42 53%
osm_nbi/authconn_internal.py 219 185 16%
osm_nbi/authconn_keystone.py 338 303 10%
osm_nbi/base_topic.py 292 75 74%
osm_nbi/descriptor_topics.py 713 282 60%
osm_nbi/engine.py 147 110 25%
osm_nbi/html_out.py 65 65 0%
osm_nbi/instance_topics.py 912 526 42%
osm_nbi/nbi.py 666 666 0%
osm_nbi/notifications.py 132 132 0%
osm_nbi/pmjobs_topics.py 61 2 97%
osm_nbi/subscription_topics.py 118 102 14%
osm_nbi/subscriptions.py 162 162 0%
osm_nbi/tests/pmjob_mocks/response.py 7 0 100%
osm_nbi/tests/test_admin_topics.py 623 1 99%
osm_nbi/tests/test_base_topic.py 21 1 95%
osm_nbi/tests/test_db_descriptors.py 7 0 100%
osm_nbi/tests/test_descriptor_topics.py 637 3 99%
osm_nbi/tests/test_instance_topics.py 211 2 99%
osm_nbi/tests/test_pkg_descriptors.py 5 0 100%
osm_nbi/tests/test_pmjobs_topic.py 74 0 100%
osm_nbi/validation.py 126 2 98%
-------------------------------------------------------------
TOTAL 6693 3254 51%
cover runtests: commands[2] | coverage report --omit=*tests*
Name Stmts Miss Cover
----------------------------------------------------
osm_nbi/__init__.py 7 2 71%
osm_nbi/admin_topics.py 685 216 68%
osm_nbi/auth.py 375 375 0%
osm_nbi/authconn.py 90 42 53%
osm_nbi/authconn_internal.py 219 185 16%
osm_nbi/authconn_keystone.py 338 303 10%
osm_nbi/base_topic.py 292 75 74%
osm_nbi/descriptor_topics.py 713 282 60%
osm_nbi/engine.py 147 110 25%
osm_nbi/html_out.py 65 65 0%
osm_nbi/instance_topics.py 912 526 42%
osm_nbi/nbi.py 666 666 0%
osm_nbi/notifications.py 132 132 0%
osm_nbi/pmjobs_topics.py 61 2 97%
osm_nbi/subscription_topics.py 118 102 14%
osm_nbi/subscriptions.py 162 162 0%
osm_nbi/validation.py 126 2 98%
----------------------------------------------------
TOTAL 5108 3247 36%
cover runtests: commands[3] | coverage html -d ./cover --omit=*tests*
cover runtests: commands[4] | coverage xml -o coverage.xml --omit=*tests*
flake8 create: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0/.tox/flake8
flake8 installdeps: flake8, -rrequirements.txt
flake8 develop-inst: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0
flake8 installed: aiohttp==3.6.2,aiokafka==0.6.0,async-timeout==3.0.1,attrs==20.3.0,bitarray==1.9.2,certifi==2020.12.5,chardet==3.0.4,cheroot==8.5.2,CherryPy==18.1.2,debtcollector==2.2.0,enum34==1.1.10,flake8==3.9.0,idna==2.10,idna-ssl==1.1.0,importlib-metadata==3.10.1,importlib-resources==5.1.2,iso8601==0.1.14,jaraco.functools==3.3.0,jsonschema==3.2.0,kafka-python==2.0.2,keystoneauth1==4.3.1,lxml==4.6.3,mccabe==0.6.1,more-itertools==8.7.0,msgpack==1.0.2,multidict==4.7.6,netaddr==0.8.0,netifaces==0.10.9,os-service-types==1.7.0,oslo.config==8.5.0,oslo.i18n==5.0.1,oslo.serialization==4.1.0,oslo.utils==4.8.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@13ac7a40f8efd8f7135ad06260663ff7e1f63d24,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@03c9aafb26f8daeeea0c25cd89ee4fd86fb7e0b5,-e git+https://osm.etsi.org/gerrit/osm/NBI.git@93c192e5a15a3fe1d7d78cb4e444578c7e5d24e3#egg=osm_nbi,packaging==20.9,pbr==5.5.1,pkg-resources==0.0.0,portend==2.7.1,pyang==2.4.0,pyangbind==0.8.1,pycodestyle==2.7.0,pycrypto==2.6.1,pyflakes==2.3.1,pymongo==3.11.3,pyparsing==2.4.7,pyrsistent==0.17.3,python-keystoneclient==4.2.0,pytz==2021.1,PyYAML==5.4.1,regex==2021.4.4,requests==2.25.1,rfc3986==1.4.0,six==1.15.0,stevedore==3.3.0,tempora==4.0.2,typing-extensions==3.7.4.3,urllib3==1.26.4,wrapt==1.12.1,yarl==1.6.3,zc.lockfile==2.0,zipp==3.4.1
flake8 runtests: PYTHONHASHSEED='1083149923'
flake8 runtests: commands[0] | flake8 osm_nbi setup.py --max-line-length 120 --exclude .svn,CVS,.gz,.git,__pycache__,.tox,local,temp,osm_im,.temp-tox --ignore W291,W293,E226,E402,W504
unittest create: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0/.tox/unittest
unittest installdeps: asynctest, aioresponses
unittest develop-inst: /opt/jenkins/workspace/NBI-stage_2-merge_v8.0
unittest installed: aiohttp==3.6.2,aiokafka==0.6.0,aioresponses==0.7.2,async-timeout==3.0.1,asynctest==0.13.0,attrs==20.3.0,bitarray==1.9.2,certifi==2020.12.5,chardet==3.0.4,cheroot==8.5.2,CherryPy==18.1.2,debtcollector==2.2.0,enum34==1.1.10,idna==2.10,idna-ssl==1.1.0,importlib-metadata==3.10.1,importlib-resources==5.1.2,iso8601==0.1.14,jaraco.functools==3.3.0,jsonschema==3.2.0,kafka-python==2.0.2,keystoneauth1==4.3.1,lxml==4.6.3,more-itertools==8.7.0,msgpack==1.0.2,multidict==4.7.6,netaddr==0.8.0,netifaces==0.10.9,os-service-types==1.7.0,oslo.config==8.5.0,oslo.i18n==5.0.1,oslo.serialization==4.1.0,oslo.utils==4.8.0,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@13ac7a40f8efd8f7135ad06260663ff7e1f63d24,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@03c9aafb26f8daeeea0c25cd89ee4fd86fb7e0b5,-e git+https://osm.etsi.org/gerrit/osm/NBI.git@93c192e5a15a3fe1d7d78cb4e444578c7e5d24e3#egg=osm_nbi,packaging==20.9,pbr==5.5.1,pkg-resources==0.0.0,portend==2.7.1,pyang==2.4.0,pyangbind==0.8.1,pycrypto==2.6.1,pymongo==3.11.3,pyparsing==2.4.7,pyrsistent==0.17.3,python-keystoneclient==4.2.0,pytz==2021.1,PyYAML==5.4.1,regex==2021.4.4,requests==2.25.1,rfc3986==1.4.0,six==1.15.0,stevedore==3.3.0,tempora==4.0.2,typing-extensions==3.7.4.3,urllib3==1.26.4,wrapt==1.12.1,yarl==1.6.3,zc.lockfile==2.0,zipp==3.4.1
unittest runtests: PYTHONHASHSEED='1083149923'
unittest runtests: commands[0] | python3 -m unittest discover osm_nbi/tests -v
test_conflict_on_edit (test_admin_topics.Test_CommonVimWimSdn) ... ok
test_conflict_on_new (test_admin_topics.Test_CommonVimWimSdn) ... ok
test_delete_cvws (test_admin_topics.Test_CommonVimWimSdn) ... ok
test_edit_cvws (test_admin_topics.Test_CommonVimWimSdn) ... ok
test_new_cvws (test_admin_topics.Test_CommonVimWimSdn) ... ok
test_conflict_on_del (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_conflict_on_edit (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_conflict_on_new (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_delete_project (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_edit_project (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_new_project (test_admin_topics.Test_ProjectTopicAuth) ... ok
test_conflict_on_del (test_admin_topics.Test_RoleTopicAuth) ... ok
test_conflict_on_edit (test_admin_topics.Test_RoleTopicAuth) ... ok
test_conflict_on_new (test_admin_topics.Test_RoleTopicAuth) ... ok
test_delete_role (test_admin_topics.Test_RoleTopicAuth) ... ok
test_edit_role (test_admin_topics.Test_RoleTopicAuth) ... ok
test_new_role (test_admin_topics.Test_RoleTopicAuth) ... ok
test_conflict_on_del (test_admin_topics.Test_UserTopicAuth) ... ok
test_conflict_on_edit (test_admin_topics.Test_UserTopicAuth) ... ok
test_conflict_on_new (test_admin_topics.Test_UserTopicAuth) ... ok
test_delete_user (test_admin_topics.Test_UserTopicAuth) ... ok
test_edit_user (test_admin_topics.Test_UserTopicAuth) ... ok
test_new_user (test_admin_topics.Test_UserTopicAuth) ... ok
test_update_input_with_kwargs (test_base_topic.Test_BaseTopic) ... ok
test_delete_nsd (test_descriptor_topics.Test_NsdTopic) ... ok
test_edit_nsd (test_descriptor_topics.Test_NsdTopic) ... ok
test_new_nsd (test_descriptor_topics.Test_NsdTopic) ... ok
test_delete_vnfd (test_descriptor_topics.Test_VnfdTopic) ... ok
test_edit_vnfd (test_descriptor_topics.Test_VnfdTopic) ... ok
test_new_vnfd (test_descriptor_topics.Test_VnfdTopic) ... ok
test_check_ns_operation_action (test_instance_topics.TestNsLcmOpTopic) ... ok
test_create_instantiate (test_instance_topics.TestNsLcmOpTopic) ... ok
test_create (test_instance_topics.TestNsrTopic) ... ok
test_delete_ns (test_instance_topics.TestNsrTopic) ... ok
test_get_vnf_metric_list (test_pmjobs_topic.PmJobsTopicTest) ... ok
test_prom_metric_request (test_pmjobs_topic.PmJobsTopicTest) ... ok
test_show (test_pmjobs_topic.PmJobsTopicTest) ... ok
----------------------------------------------------------------------
Ran 37 tests in 15.047s
OK
___________________________________ summary ____________________________________
cover: commands succeeded
flake8: commands succeeded
unittest: commands succeeded
congratulations :)