SuccessConsole Output

[IM-stage_2-merge_v12.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
✔ OK black in 20.671 seconds
black create: /tmp/.tox/black
black installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements.txt
black installed: bitarray==2.5.1,enum34==1.1.10,lxml==4.9.0,pyang==2.5.3,pyangbind==0.8.1,PyYAML==5.4.1,regex==2022.6.2,six==1.16.0
black run-test-pre: PYTHONHASHSEED='2733411246'
black run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK flake8 in 21.351 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements.txt
flake8 installed: bitarray==2.5.1,enum34==1.1.10,lxml==4.9.0,pyang==2.5.3,pyangbind==0.8.1,PyYAML==5.4.1,regex==2022.6.2,six==1.16.0
flake8 run-test-pre: PYTHONHASHSEED='4281847543'
flake8 run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK pylint in 21.387 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements.txt
pylint installed: bitarray==2.5.1,enum34==1.1.10,lxml==4.9.0,pyang==2.5.3,pyangbind==0.8.1,PyYAML==5.4.1,regex==2022.6.2,six==1.16.0
pylint run-test-pre: PYTHONHASHSEED='2917099281'
pylint run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK safety in 37.783 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements.txt, safety
safety installed: Authlib==1.3.0,bitarray==2.5.1,certifi==2024.2.2,cffi==1.16.0,charset-normalizer==3.3.2,click==8.1.7,cryptography==42.0.5,dparse==0.6.4b0,enum34==1.1.10,idna==3.6,Jinja2==3.1.3,lxml==4.9.0,markdown-it-py==3.0.0,MarkupSafe==2.1.5,marshmallow==3.21.1,mdurl==0.1.2,packaging==24.0,pyang==2.5.3,pyangbind==0.8.1,pycparser==2.21,pydantic==1.10.14,Pygments==2.17.2,PyYAML==5.4.1,regex==2022.6.2,requests==2.31.0,rich==13.7.1,ruamel.yaml==0.18.6,ruamel.yaml.clib==0.2.8,safety==3.0.1,safety-schemas==0.0.2,six==1.16.0,tomli==2.0.1,typer==0.9.0,typing_extensions==4.10.0,urllib3==2.2.1
safety run-test-pre: PYTHONHASHSEED='2152839695'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

                               /$$$$$$            /$$
                              /$$__  $$          | $$
           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$
          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$
         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$
          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$
          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$
         |_______/  \_______/|__/     \_______/   \___/   \____  $$
                                                          /$$  | $$
                                                         |  $$$$$$/
  by safetycli.com                                        \______/

+==============================================================================+

 REPORT 

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

  Safety v3.0.1 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /usr/lib/python3.8/lib-dynload
  -> /tmp/.tox/safety/lib/python3.8/site-packages
  -> /usr/lib/python3.8
  -> /usr/lib/python38.zip
  -> /tmp/.tox/safety/bin

  Using open-source vulnerability database
  Found and scanned 38 packages
  Timestamp 2024-03-23 09:27:04
  1 vulnerability reported
  0 vulnerabilities ignored

+==============================================================================+
 VULNERABILITIES REPORTED 
+==============================================================================+

-> Vulnerability found in lxml version 4.9.0
   Vulnerability ID: 50748
   Affected spec: <4.9.1
   ADVISORY: Lxml 4.9.1 includes a fix for CVE-2022-2309: NULL
   Pointer Dereference allows attackers to cause a denial of service (or
   application crash). This only applies when lxml is used together with
   libxml2 2.9.10 through 2.9.14. libxml2 2.9.9 and earlier are not affected.
   It allows triggering crashes through forged input data, given a vulnerable
   code sequence in the application. The vulnerability is caused by the
   iterwalk function (also used by the canonicalize function). Such code
   shouldn't be in wide-spread use, given that parsing + iterwalk would
   usually be replaced with the more efficient iterparse function. However,
   an XML converter that serialises to C14N would also be vulnerable, for
   example, and there are legitimate use cases for this code sequence. If
   untrusted input is received (also remotely) and processed via iterwalk
   function, a crash can be triggered.
   CVE-2022-2309
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/50748/97c
   To ignore this vulnerability, use PyUp vulnerability id 50748 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


+==============================================================================+
   REMEDIATIONS

  1 vulnerability was reported in 1 package. For detailed remediation & fix 
  recommendations, upgrade to a commercial license. 

+==============================================================================+

 Scan was completed. 1 vulnerability was reported. 

+==============================================================================+

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

+==============================================================================+

✔ OK cover in 1 minute, 38.113 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements.txt, -r/home/jenkins/workspace/IM-stage_2-merge_v12.0/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/IM-stage_2-merge_v12.0
cover installed: bitarray==2.5.1,coverage==6.4.1,enum34==1.1.10,lxml==4.9.0,nose2==0.11.0,-e git+https://osm.etsi.org/gerrit/osm/IM.git@a0b604e08d261d3c4a0f1cf86a4b597f5697b31a#egg=osm_im,pyang==2.5.3,pyangbind==0.8.1,PyYAML==5.4.1,regex==2022.6.2,six==1.16.0
cover run-test-pre: PYTHONHASHSEED='3883420399'
cover run-test: commands[0] | sh -c 'make clean'
cover run-test: commands[1] | sh -c 'make models Q=""'
git clone --single-branch --branch v2.6.1 https://forge.etsi.org/rep/nfv/SOL006.git sol006_model
Cloning into 'sol006_model'...
patch -p2 < patch/deref_warnings.patch
patching file sol006_model/src/yang/etsi-nfv-ns.yang
patch -p2 < patch/nested_workaround.patch
patching file sol006_model/src/yang/etsi-nfv-ns.yang
wget -q https://raw.githubusercontent.com/YangModels/yang/master/standard/ietf/RFC/ietf-yang-types%402013-07-15.yang -O models/yang/ietf-yang-types.yang
wget -q https://raw.githubusercontent.com/YangModels/yang/master/standard/ietf/RFC/ietf-inet-types%402013-07-15.yang -O models/yang/ietf-inet-types.yang
cp models/yang/ietf-yang-types.yang sol006_model/src/yang/ietf-yang-types.yang
cp models/yang/ietf-inet-types.yang sol006_model/src/yang/ietf-inet-types.yang
echo generating vnfd.py from vnfd.yang
generating vnfd.py from vnfd.yang
pyang -Werror --path models/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/vnfd.py  models/yang/vnfd.yang
echo generating nsd.py from nsd.yang
generating nsd.py from nsd.yang
pyang -Werror --path models/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/nsd.py  models/yang/nsd.yang
echo generating nst.py from nst.yang
generating nst.py from nst.yang
pyang -Werror --path models/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/nst.py  models/yang/nst.yang
echo generating nsi.py from nsi.yang
generating nsi.py from nsi.yang
pyang -Werror --path models/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/nsi.py  models/yang/nsi.yang
echo generating etsi-nfv-vnfd.py from etsi-nfv-vnfd.yang
generating etsi-nfv-vnfd.py from etsi-nfv-vnfd.yang
pyang -Werror --path sol006_model/src/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/etsi-nfv-vnfd.py models/augments/* sol006_model/src/yang/etsi-nfv-vnfd.yang
echo generating etsi-nfv-nsd.py from etsi-nfv-nsd.yang
generating etsi-nfv-nsd.py from etsi-nfv-nsd.yang
pyang -Werror --path sol006_model/src/yang --plugindir "/tmp/.tox/cover/lib/python3.8/site-packages/pyangbind/plugin" -f pybind -o osm_im/etsi-nfv-nsd.py models/augments/* sol006_model/src/yang/etsi-nfv-nsd.yang
mv osm_im/etsi-nfv-nsd.py osm_im/etsi_nfv_nsd.py
mv osm_im/etsi-nfv-vnfd.py osm_im/etsi_nfv_vnfd.py
cover run-test: commands[2] | sh -c 'rm -f nosetests.xml'
cover run-test: commands[3] | coverage erase
cover run-test: commands[4] | nose2 -C --coverage osm_im -s tests
.....
----------------------------------------------------------------------
Ran 5 tests in 2.983s

OK
Name                       Stmts   Miss  Cover
----------------------------------------------
osm_im/__init__.py             0      0   100%
osm_im/etsi_nfv_nsd.py     15959  11697    27%
osm_im/etsi_nfv_vnfd.py    13396   8297    38%
osm_im/im_translation.py     502     52    90%
osm_im/nsd.py               5183   3935    24%
osm_im/nsi.py               4950   4950     0%
osm_im/nst.py               2872   2180    24%
osm_im/validation.py          50     12    76%
osm_im/vnfd.py             10950   7835    28%
----------------------------------------------
TOTAL                      53862  38958    28%

cover run-test: commands[5] | coverage report '--omit=*tests*'
Name                       Stmts   Miss  Cover
----------------------------------------------
osm_im/__init__.py             0      0   100%
osm_im/etsi_nfv_nsd.py     15959  11697    27%
osm_im/etsi_nfv_vnfd.py    13396   8297    38%
osm_im/im_translation.py     502     52    90%
osm_im/nsd.py               5183   3935    24%
osm_im/nsi.py               4950   4950     0%
osm_im/nst.py               2872   2180    24%
osm_im/validation.py          50     12    76%
osm_im/vnfd.py             10950   7835    28%
----------------------------------------------
TOTAL                      53862  38958    28%
cover run-test: commands[6] | coverage html -d ./cover '--omit=*tests*'
Wrote HTML report to ./cover/index.html
cover run-test: commands[7] | coverage xml -o coverage.xml '--omit=*tests*'
Wrote XML report to coverage.xml

___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
  flake8: commands succeeded
  pylint: commands succeeded
  safety: commands succeeded
  congratulations :)