SuccessConsole Output

[IM-stage_2-merge_v15.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
✔ OK flake8 in 10.56 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements.txt
flake8 installed: enum34==1.1.10,lxml==4.9.3,pyang==2.5.3,pyangbind==0.8.3.post1,PyYAML==6.0.1,regex==2023.8.8,six==1.16.0
flake8 run-test-pre: PYTHONHASHSEED='1310205912'
flake8 run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK pylint in 11.41 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements.txt
pylint installed: enum34==1.1.10,lxml==4.9.3,pyang==2.5.3,pyangbind==0.8.3.post1,PyYAML==6.0.1,regex==2023.8.8,six==1.16.0
pylint run-test-pre: PYTHONHASHSEED='1558707454'
pylint run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK black in 11.504 seconds
black create: /tmp/.tox/black
black installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements.txt
black installed: enum34==1.1.10,lxml==4.9.3,pyang==2.5.3,pyangbind==0.8.3.post1,PyYAML==6.0.1,regex==2023.8.8,six==1.16.0
black run-test-pre: PYTHONHASHSEED='25718078'
black run-test: commands[0] | python3 -c 'print("Skipping due to generated code")'
Skipping due to generated code

✔ OK safety in 34.587 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements.txt, safety
safety installed: annotated-types==0.6.0,Authlib==1.3.0,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.3,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.3.post1,pycparser==2.21,pydantic==2.6.4,pydantic_core==2.16.3,Pygments==2.17.2,PyYAML==6.0.1,regex==2023.8.8,requests==2.31.0,rich==13.7.1,ruamel.yaml==0.18.6,ruamel.yaml.clib==0.2.8,safety==3.1.0,safety-schemas==0.0.2,six==1.16.0,tomli==2.0.1,typer==0.11.0,typing_extensions==4.10.0,urllib3==2.2.1
safety run-test-pre: PYTHONHASHSEED='32138698'
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.1.0 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /usr/lib/python3.10
  -> /usr/lib/python3.10/lib-dynload
  -> /usr/lib/python310.zip
  -> /tmp/.tox/safety/lib/python3.10/site-packages
  -> /tmp/.tox/safety/bin

  Using open-source vulnerability database
  Found and scanned 39 packages
  Timestamp 2024-03-27 11:12:07
  2 vulnerabilities reported
  0 vulnerabilities ignored

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

-> Vulnerability found in wheel version 0.37.1
   Vulnerability ID: 51499
   Affected spec: <0.38.1
   ADVISORY: Wheel 0.38.1 includes a fix for CVE-2022-40898: An issue
   discovered in Python Packaging Authority (PyPA) Wheel 0.37.1 and earlier
   allows remote attackers to cause a denial of service via attacker
   controlled input to wheel cli.https://pyup.io/posts/pyup-discovers-redos-
   vulnerabilities-in-top-python-packages
   CVE-2022-40898
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/51499/97c
   To ignore this vulnerability, use PyUp vulnerability id 51499 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in pip version 22.0.2
   Vulnerability ID: 62044
   Affected spec: <23.3
   ADVISORY: Pip 23.3 includes a fix for CVE-2023-5752: When
   installing a package from a Mercurial VCS URL (ie "pip install hg+...")
   with pip prior to v23.3, the specified Mercurial revision could be used to
   inject arbitrary configuration options to the "hg clone" call (ie "--
   config"). Controlling the Mercurial configuration can modify how and which
   repository is installed. This vulnerability does not affect users who
   aren't installing from Mercurial.https://github.com/pypa/pip/pull/12306
   CVE-2023-5752
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/62044/97c
   To ignore this vulnerability, use PyUp vulnerability id 62044 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


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

  2 vulnerabilities were reported in 2 packages. For detailed remediation & 
  fix recommendations, upgrade to a commercial license. 

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

 Scan was completed. 2 vulnerabilities were 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, 30.278 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements.txt, -r/home/jenkins/workspace/IM-stage_2-merge_v15.0/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/IM-stage_2-merge_v15.0
cover installed: coverage==7.3.1,enum34==1.1.10,lxml==4.9.3,nose2==0.13.0,-e git+https://osm.etsi.org/gerrit/osm/IM.git@53dddb85f956ac3fbd372ecb2b278e5e5362b66b#egg=osm_im,pyang==2.5.3,pyangbind==0.8.3.post1,PyYAML==6.0.1,regex==2023.8.8,six==1.16.0
cover run-test-pre: PYTHONHASHSEED='3079809339'
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.10/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.10/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.10/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.10/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.10/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.10/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 3.376s

OK
Name                       Stmts   Miss  Cover
----------------------------------------------
osm_im/__init__.py             0      0   100%
osm_im/etsi_nfv_nsd.py     16460  11943    27%
osm_im/etsi_nfv_vnfd.py    13719   8420    39%
osm_im/im_translation.py     502     52    90%
osm_im/nsd.py               5232   3935    25%
osm_im/nsi.py               5003   5003     0%
osm_im/nst.py               2901   2180    25%
osm_im/validation.py          50     12    76%
osm_im/vnfd.py             11058   7835    29%
----------------------------------------------
TOTAL                      54925  39380    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     16460  11943    27%
osm_im/etsi_nfv_vnfd.py    13719   8420    39%
osm_im/im_translation.py     502     52    90%
osm_im/nsd.py               5232   3935    25%
osm_im/nsi.py               5003   5003     0%
osm_im/nst.py               2901   2180    25%
osm_im/validation.py          50     12    76%
osm_im/vnfd.py             11058   7835    29%
----------------------------------------------
TOTAL                      54925  39380    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 :)