SuccessConsole Output

[osmclient-stage_2-merge_v14.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
✔ OK black in 9.581 seconds
black create: /tmp/.tox/black
black installdeps: black==23.12.1
black installed: black==23.12.1,click==8.1.7,mypy-extensions==1.0.0,packaging==24.0,pathspec==0.12.1,platformdirs==4.2.0,tomli==2.0.1,typing_extensions==4.10.0
black run-test-pre: PYTHONHASHSEED='2342523478'
black run-test: commands[0] | black --check --diff osmclient/
All done! ✨ 🍰 ✨
66 files would be left unchanged.

✔ OK flake8 in 12.924 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8
flake8 develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_v14.0
flake8 installed: flake8==7.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@92048832dded6b9a86936b89019c42b6451422f5#egg=osmclient,pycodestyle==2.11.1,pyflakes==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='4144646035'
flake8 run-test: commands[0] | flake8 osmclient/ setup.py

✔ OK safety in 34.736 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_v14.0
safety installed: annotated-types==0.6.0,Authlib==1.3.0,certifi==2023.7.22,cffi==1.16.0,charset-normalizer==3.3.0,click==8.1.7,cryptography==42.0.5,dparse==0.6.4b0,idna==3.4,Jinja2==3.1.2,jsonpath-ng==1.6.0,markdown-it-py==3.0.0,MarkupSafe==2.1.3,marshmallow==3.21.1,mdurl==0.1.2,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@92048832dded6b9a86936b89019c42b6451422f5#egg=osmclient,packaging==23.2,ply==3.11,prettytable==3.9.0,pycparser==2.21,pydantic==2.6.4,pydantic_core==2.16.3,Pygments==2.17.2,python-magic==0.4.27,PyYAML==6.0.1,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,tomli==2.0.1,typer==0.10.0,typing_extensions==4.10.0,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.8
safety run-test-pre: PYTHONHASHSEED='133067294'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

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

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

 REPORT 

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

  -> /tmp/.tox/safety/bin
  -> /home/jenkins/workspace/osmclient-stage_2-merge_v14.0
  -> /usr/lib/python310.zip
  -> /usr/lib/python3.10/lib-dynload
  -> /usr/lib/python3.10
  -> /tmp/.tox/safety/lib/python3.10/site-packages

  Using open-source vulnerability database
  Found and scanned 40 packages
  Timestamp 2024-03-26 10:49:10
  4 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 urllib3 version 2.0.5
   Vulnerability ID: 61893
   Affected spec: >=2.0.0a1,<2.0.7
   ADVISORY: Urllib3 1.26.18 and 2.0.7 include a fix for
   CVE-2023-45803: Request body not stripped after redirect from 303 status
   changes request method to GET.https://github.com/urllib3/urllib3/security/
   advisories/GHSA-g4mx-q9vg-27p4
   CVE-2023-45803
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/61893/97c
   To ignore this vulnerability, use PyUp vulnerability id 61893 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.


-> Vulnerability found in jinja2 version 3.1.2
   Vulnerability ID: 64227
   Affected spec: <3.1.3
   ADVISORY: Jinja2 before 3.1.3 is affected by a Cross-Site
   Scripting vulnerability. Special placeholders in the template allow
   writing code similar to Python syntax. It is possible to inject arbitrary
   HTML attributes into the rendered HTML template. The Jinja 'xmlattr'
   filter can be abused to inject arbitrary HTML attribute keys and values,
   bypassing the auto escaping mechanism and potentially leading to XSS. It
   may also be possible to bypass attribute validation checks if they are
   blacklist-based.
   CVE-2024-22195
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/64227/97c
   To ignore this vulnerability, use PyUp vulnerability id 64227 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


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

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

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

 Scan was completed. 4 vulnerabilities were reported. 

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

✔ OK cover in 1 minute, 5.842 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_v14.0
cover installed: certifi==2023.7.22,charset-normalizer==3.3.0,click==8.1.7,coverage==7.3.1,enum34==1.1.10,idna==3.4,Jinja2==3.1.2,jsonpath-ng==1.6.0,lxml==5.1.0,MarkupSafe==2.1.3,mock==5.1.0,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@a54dbc2b3c8db303b7615ef25f76695ca12b9eab,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@92048832dded6b9a86936b89019c42b6451422f5#egg=osmclient,packaging==23.2,ply==3.11,prettytable==3.9.0,pyang==2.5.3,pyangbind==0.8.3.post1,python-magic==0.4.27,PyYAML==6.0.1,regex==2023.12.25,requests==2.31.0,six==1.16.0,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.8
cover run-test-pre: PYTHONHASHSEED='1731930650'
cover run-test: commands[0] | sh -c 'rm -f nosetests.xml'
cover run-test: commands[1] | coverage erase
cover run-test: commands[2] | nose2 -C --coverage osmclient
....................................
----------------------------------------------------------------------
Ran 36 tests in 10.378s

OK
Name                                          Stmts   Miss  Cover
-----------------------------------------------------------------
osmclient/__init__.py                             0      0   100%
osmclient/cli_commands/__init__.py                0      0   100%
osmclient/cli_commands/alarms.py                 87     53    39%
osmclient/cli_commands/k8scluster.py            128     76    41%
osmclient/cli_commands/metrics.py                31     18    42%
osmclient/cli_commands/netslice_instance.py     119     56    53%
osmclient/cli_commands/netslice_ops.py           51     25    51%
osmclient/cli_commands/netslice_template.py     113     51    55%
osmclient/cli_commands/nfpkg.py                 209     93    56%
osmclient/cli_commands/ns.py                    185    143    23%
osmclient/cli_commands/nslcm.py                 194    138    29%
osmclient/cli_commands/nslcm_ops.py              68     49    28%
osmclient/cli_commands/nspkg.py                 137     64    53%
osmclient/cli_commands/other.py                  11      3    73%
osmclient/cli_commands/packages.py               89     39    56%
osmclient/cli_commands/pdus.py                  117     74    37%
osmclient/cli_commands/rbac.py                  221    131    41%
osmclient/cli_commands/repo.py                  205    103    50%
osmclient/cli_commands/sdnc.py                  104     53    49%
osmclient/cli_commands/subscriptions.py          59     29    51%
osmclient/cli_commands/utils.py                  52     38    27%
osmclient/cli_commands/vca.py                   154     16    90%
osmclient/cli_commands/vim.py                   183     67    63%
osmclient/cli_commands/vnf.py                   114     80    30%
osmclient/cli_commands/wim.py                   101     56    45%
osmclient/client.py                              27     21    22%
osmclient/common/__init__.py                      0      0   100%
osmclient/common/exceptions.py                    6      0   100%
osmclient/common/http.py                         71     58    18%
osmclient/common/package_handling.py             28     20    29%
osmclient/common/package_tool.py                441    396    10%
osmclient/common/print_output.py                 47     36    23%
osmclient/common/sol004_package.py               36     17    53%
osmclient/common/sol007_package.py               32     15    53%
osmclient/common/sol_package.py                 158    120    24%
osmclient/common/test/test_utils.py              36      0   100%
osmclient/common/utils.py                        80     54    32%
osmclient/common/wait.py                         84     64    24%
osmclient/scripts/__init__.py                     0      0   100%
osmclient/scripts/osm.py                        183    162    11%
osmclient/scripts/tests/tests_vca.py            100      0   100%
osmclient/scripts/tests/tests_vim.py             62      0   100%
osmclient/sol005/__init__.py                      0      0   100%
osmclient/sol005/client.py                      101     71    30%
osmclient/sol005/http.py                        160    137    14%
osmclient/sol005/k8scluster.py                  118    101    14%
osmclient/sol005/ns.py                          366    338     8%
osmclient/sol005/nsd.py                         124    103    17%
osmclient/sol005/nsi.py                         208    189     9%
osmclient/sol005/nst.py                         127    107    16%
osmclient/sol005/osmrepo.py                     309    260    16%
osmclient/sol005/package.py                      63     50    21%
osmclient/sol005/pdud.py                         93     78    16%
osmclient/sol005/project.py                      74     61    18%
osmclient/sol005/repo.py                         69     56    19%
osmclient/sol005/role.py                        117    103    12%
osmclient/sol005/sdncontroller.py                97     80    18%
osmclient/sol005/subscription.py                 71     58    18%
osmclient/sol005/tests/test_osmrepo.py           13      0   100%
osmclient/sol005/tests/test_vca.py              117      0   100%
osmclient/sol005/user.py                        143    131     8%
osmclient/sol005/vca.py                          73      0   100%
osmclient/sol005/vim.py                         160    141    12%
osmclient/sol005/vnf.py                          56     46    18%
osmclient/sol005/vnfd.py                        207    181    13%
osmclient/sol005/wim.py                         142    123    13%
-----------------------------------------------------------------
TOTAL                                          7131   4832    32%

cover run-test: commands[3] | coverage report '--omit=*tests*'
Name                                          Stmts   Miss  Cover
-----------------------------------------------------------------
osmclient/__init__.py                             0      0   100%
osmclient/cli_commands/__init__.py                0      0   100%
osmclient/cli_commands/alarms.py                 87     53    39%
osmclient/cli_commands/k8scluster.py            128     76    41%
osmclient/cli_commands/metrics.py                31     18    42%
osmclient/cli_commands/netslice_instance.py     119     56    53%
osmclient/cli_commands/netslice_ops.py           51     25    51%
osmclient/cli_commands/netslice_template.py     113     51    55%
osmclient/cli_commands/nfpkg.py                 209     93    56%
osmclient/cli_commands/ns.py                    185    143    23%
osmclient/cli_commands/nslcm.py                 194    138    29%
osmclient/cli_commands/nslcm_ops.py              68     49    28%
osmclient/cli_commands/nspkg.py                 137     64    53%
osmclient/cli_commands/other.py                  11      3    73%
osmclient/cli_commands/packages.py               89     39    56%
osmclient/cli_commands/pdus.py                  117     74    37%
osmclient/cli_commands/rbac.py                  221    131    41%
osmclient/cli_commands/repo.py                  205    103    50%
osmclient/cli_commands/sdnc.py                  104     53    49%
osmclient/cli_commands/subscriptions.py          59     29    51%
osmclient/cli_commands/utils.py                  52     38    27%
osmclient/cli_commands/vca.py                   154     16    90%
osmclient/cli_commands/vim.py                   183     67    63%
osmclient/cli_commands/vnf.py                   114     80    30%
osmclient/cli_commands/wim.py                   101     56    45%
osmclient/client.py                              27     21    22%
osmclient/common/__init__.py                      0      0   100%
osmclient/common/exceptions.py                    6      0   100%
osmclient/common/http.py                         71     58    18%
osmclient/common/package_handling.py             28     20    29%
osmclient/common/package_tool.py                441    396    10%
osmclient/common/print_output.py                 47     36    23%
osmclient/common/sol004_package.py               36     17    53%
osmclient/common/sol007_package.py               32     15    53%
osmclient/common/sol_package.py                 158    120    24%
osmclient/common/test/test_utils.py              36      0   100%
osmclient/common/utils.py                        80     54    32%
osmclient/common/wait.py                         84     64    24%
osmclient/scripts/__init__.py                     0      0   100%
osmclient/scripts/osm.py                        183    162    11%
osmclient/sol005/__init__.py                      0      0   100%
osmclient/sol005/client.py                      101     71    30%
osmclient/sol005/http.py                        160    137    14%
osmclient/sol005/k8scluster.py                  118    101    14%
osmclient/sol005/ns.py                          366    338     8%
osmclient/sol005/nsd.py                         124    103    17%
osmclient/sol005/nsi.py                         208    189     9%
osmclient/sol005/nst.py                         127    107    16%
osmclient/sol005/osmrepo.py                     309    260    16%
osmclient/sol005/package.py                      63     50    21%
osmclient/sol005/pdud.py                         93     78    16%
osmclient/sol005/project.py                      74     61    18%
osmclient/sol005/repo.py                         69     56    19%
osmclient/sol005/role.py                        117    103    12%
osmclient/sol005/sdncontroller.py                97     80    18%
osmclient/sol005/subscription.py                 71     58    18%
osmclient/sol005/tests/test_osmrepo.py           13      0   100%
osmclient/sol005/tests/test_vca.py              117      0   100%
osmclient/sol005/user.py                        143    131     8%
osmclient/sol005/vca.py                          73      0   100%
osmclient/sol005/vim.py                         160    141    12%
osmclient/sol005/vnf.py                          56     46    18%
osmclient/sol005/vnfd.py                        207    181    13%
osmclient/sol005/wim.py                         142    123    13%
-----------------------------------------------------------------
TOTAL                                          6969   4832    31%
cover run-test: commands[4] | coverage html -d ./cover '--omit=*tests*'
Wrote HTML report to ./cover/index.html
cover run-test: commands[5] | coverage xml -o coverage.xml '--omit=*tests*'
Wrote XML report to coverage.xml

✔ OK pylint in 1 minute, 12.9 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_v14.0/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_v14.0
pylint installed: astroid==3.1.0,certifi==2023.7.22,charset-normalizer==3.3.0,click==8.1.7,coverage==7.3.1,dill==0.3.8,enum34==1.1.10,idna==3.4,isort==5.13.2,Jinja2==3.1.2,jsonpath-ng==1.6.0,lxml==5.1.0,MarkupSafe==2.1.3,mccabe==0.7.0,mock==5.1.0,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@a54dbc2b3c8db303b7615ef25f76695ca12b9eab,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@92048832dded6b9a86936b89019c42b6451422f5#egg=osmclient,packaging==23.2,platformdirs==4.2.0,ply==3.11,prettytable==3.9.0,pyang==2.5.3,pyangbind==0.8.3.post1,pylint==3.1.0,python-magic==0.4.27,PyYAML==6.0.1,regex==2023.12.25,requests==2.31.0,six==1.16.0,tomli==2.0.1,tomlkit==0.12.4,typing_extensions==4.10.0,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.8
pylint run-test-pre: PYTHONHASHSEED='1237415249'
pylint run-test: commands[0] | pylint -E osmclient/

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