SuccessConsole Output

[osmclient-stage_2-merge_paas] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
✔ OK black in 7.324 seconds
black create: /tmp/.tox/black
black installdeps: black
black installed: black==23.7.0,click==8.1.6,mypy-extensions==1.0.0,packaging==23.1,pathspec==0.11.1,platformdirs==3.9.1,tomli==2.0.1
black run-test-pre: PYTHONHASHSEED='707283380'
black run-test: commands[0] | black --check --diff osmclient/
All done! ✨ 🍰 ✨
81 files would be left unchanged.

✔ OK flake8 in 10.025 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8
flake8 develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_paas
flake8 installed: flake8==6.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@a61aedcc60f5125b509b995a1e327cf009954637#egg=osmclient,pycodestyle==2.10.0,pyflakes==3.0.1
flake8 run-test-pre: PYTHONHASHSEED='4129133136'
flake8 run-test: commands[0] | flake8 osmclient/ setup.py

✔ OK safety in 20.691 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_paas
safety installed: certifi==2023.5.7,charset-normalizer==3.1.0,click==8.1.3,dparse==0.6.3,idna==3.4,Jinja2==3.1.2,MarkupSafe==2.1.2,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@a61aedcc60f5125b509b995a1e327cf009954637#egg=osmclient,packaging==23.1,prettytable==3.7.0,pycurl==7.45.2,python-magic==0.4.27,PyYAML==6.0.1,requests==2.30.0,ruamel.yaml==0.17.32,ruamel.yaml.clib==0.2.7,safety==2.3.4,tomli==2.0.1,urllib3==2.0.2,verboselogs==1.7,wcwidth==0.2.6
safety run-test-pre: PYTHONHASHSEED='2216033469'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

                               /$$$$$$            /$$
                              /$$__  $$          | $$
           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$
          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$
         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$
          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$
          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$
         |_______/  \_______/|__/     \_______/   \___/   \____  $$
                                                          /$$  | $$
                                                         |  $$$$$$/
  by pyup.io                                              \______/

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

 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 v2.3.4 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /home/jenkins/workspace/osmclient-stage_2-merge_paas
  -> /tmp/.tox/safety/lib/python3.10/site-packages

  Using non-commercial database
  Found and scanned 24 packages
  Timestamp 2023-07-21 17:46:17
  3 vulnerabilities found
  0 vulnerabilities ignored

+==============================================================================+
 VULNERABILITIES FOUND 
+==============================================================================+

-> Vulnerability found in setuptools version 59.6.0
   Vulnerability ID: 52495
   Affected spec: <65.5.1
   ADVISORY: Python Packaging Authority (PyPA) setuptools before 65.5.1
   allows remote attackers to cause a denial of service via HTML in a crafted
   package or custom PackageIndex page. There is a Regular Expression Denial of
   Service (ReDoS) in package_index.py.https://pyup.io/posts/pyup-discovers-
   redos-vulnerabilities-in-top-python-packages
   CVE-2022-40897
   For more information, please visit https://pyup.io/v/52495/f17


-> Vulnerability found in requests version 2.30.0
   Vulnerability ID: 58755
   Affected spec: >=2.3.0,<2.31.0
   ADVISORY: Requests 2.31.0 includes a fix for CVE-2023-32681: Since
   Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to
   destination servers when redirected to an HTTPS endpoint. This is a product
   of how we use 'rebuild_proxies' to reattach the 'Proxy-Authorization' header
   to requests. For HTTP connections sent through the tunnel, the proxy will
   identify the header in the request itself and remove it prior to forwarding
   to the destination server. However when sent over HTTPS, the 'Proxy-
   Authorization' header must be sent in the CONNECT request as the proxy has no
   visibility into the tunneled request. This results in Requests forwarding
   proxy credentials to the destination server unintentionally, allowing a
   malicious actor to potentially exfiltrate sensitive information.
   CVE-2023-32681
   For more information, please visit https://pyup.io/v/58755/f17


-> 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, please visit https://pyup.io/v/51499/f17

 Scan was completed. 3 vulnerabilities were found. 

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

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

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

  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, 8.559 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_paas
cover installed: bitarray==2.7.6,certifi==2023.5.7,charset-normalizer==3.1.0,click==8.1.3,coverage==7.2.5,enum34==1.1.10,idna==3.4,Jinja2==3.1.2,lxml==4.9.3,MarkupSafe==2.1.2,mock==5.0.2,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@2a767f63133a640cc8f3db1a6ddc796c8a88a14f,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@a61aedcc60f5125b509b995a1e327cf009954637#egg=osmclient,packaging==23.1,prettytable==3.7.0,pyang==2.5.3,pyangbind==0.8.2,pycurl==7.45.2,python-magic==0.4.27,PyYAML==6.0.1,regex==2023.6.3,requests==2.30.0,six==1.16.0,urllib3==2.0.2,verboselogs==1.7,wcwidth==0.2.6
cover run-test-pre: PYTHONHASHSEED='3921013865'
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 53 tests in 10.459s

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                 214     98    54%
osmclient/cli_commands/ns.py                    201    162    19%
osmclient/cli_commands/nslcm.py                 194    138    29%
osmclient/cli_commands/nslcm_ops.py              68     49    28%
osmclient/cli_commands/nspkg.py                 142     69    51%
osmclient/cli_commands/other.py                  11      3    73%
osmclient/cli_commands/packages.py               92     42    54%
osmclient/cli_commands/pdus.py                  117     74    37%
osmclient/cli_commands/rbac.py                  212    124    42%
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                  51     37    27%
osmclient/cli_commands/vca.py                   154     16    90%
osmclient/cli_commands/vim.py                   184     71    61%
osmclient/cli_commands/vnf.py                   120     90    25%
osmclient/cli_commands/wim.py                   101     56    45%
osmclient/client.py                              32     25    22%
osmclient/common/__init__.py                      0      0   100%
osmclient/common/exceptions.py                    6      0   100%
osmclient/common/http.py                         69     38    45%
osmclient/common/package_handling.py             28     20    29%
osmclient/common/package_tool.py                441    393    11%
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     51    36%
osmclient/common/wait.py                         84     64    24%
osmclient/scripts/__init__.py                     0      0   100%
osmclient/scripts/osm.py                        185    163    12%
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                      102     72    29%
osmclient/sol005/http.py                        151    130    14%
osmclient/sol005/k8scluster.py                  118    101    14%
osmclient/sol005/ns.py                          367    339     8%
osmclient/sol005/nsd.py                         125    104    17%
osmclient/sol005/nsi.py                         209    190     9%
osmclient/sol005/nst.py                         128    108    16%
osmclient/sol005/osmrepo.py                     309    260    16%
osmclient/sol005/package.py                      64     51    20%
osmclient/sol005/pdud.py                         94     79    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                        129    117     9%
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                        208    182    12%
osmclient/sol005/wim.py                         142    123    13%
osmclient/v1/__init__.py                          0      0   100%
osmclient/v1/client.py                           54      9    83%
osmclient/v1/key.py                              18     18     0%
osmclient/v1/ns.py                              118     89    25%
osmclient/v1/nsd.py                              27      8    70%
osmclient/v1/package.py                          34     17    50%
osmclient/v1/tests/test_ns.py                    22      0   100%
osmclient/v1/tests/test_nsd.py                   20      1    95%
osmclient/v1/tests/test_package.py               15      0   100%
osmclient/v1/tests/test_vnf.py                   26      0   100%
osmclient/v1/tests/test_vnfd.py                  20      1    95%
osmclient/v1/utils.py                             9      4    56%
osmclient/v1/vca.py                              27     27     0%
osmclient/v1/vim.py                             184    162    12%
osmclient/v1/vnf.py                              24      3    88%
osmclient/v1/vnfd.py                             25      6    76%
-----------------------------------------------------------------
TOTAL                                          7723   5145    33%

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                 214     98    54%
osmclient/cli_commands/ns.py                    201    162    19%
osmclient/cli_commands/nslcm.py                 194    138    29%
osmclient/cli_commands/nslcm_ops.py              68     49    28%
osmclient/cli_commands/nspkg.py                 142     69    51%
osmclient/cli_commands/other.py                  11      3    73%
osmclient/cli_commands/packages.py               92     42    54%
osmclient/cli_commands/pdus.py                  117     74    37%
osmclient/cli_commands/rbac.py                  212    124    42%
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                  51     37    27%
osmclient/cli_commands/vca.py                   154     16    90%
osmclient/cli_commands/vim.py                   184     71    61%
osmclient/cli_commands/vnf.py                   120     90    25%
osmclient/cli_commands/wim.py                   101     56    45%
osmclient/client.py                              32     25    22%
osmclient/common/__init__.py                      0      0   100%
osmclient/common/exceptions.py                    6      0   100%
osmclient/common/http.py                         69     38    45%
osmclient/common/package_handling.py             28     20    29%
osmclient/common/package_tool.py                441    393    11%
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     51    36%
osmclient/common/wait.py                         84     64    24%
osmclient/scripts/__init__.py                     0      0   100%
osmclient/scripts/osm.py                        185    163    12%
osmclient/sol005/__init__.py                      0      0   100%
osmclient/sol005/client.py                      102     72    29%
osmclient/sol005/http.py                        151    130    14%
osmclient/sol005/k8scluster.py                  118    101    14%
osmclient/sol005/ns.py                          367    339     8%
osmclient/sol005/nsd.py                         125    104    17%
osmclient/sol005/nsi.py                         209    190     9%
osmclient/sol005/nst.py                         128    108    16%
osmclient/sol005/osmrepo.py                     309    260    16%
osmclient/sol005/package.py                      64     51    20%
osmclient/sol005/pdud.py                         94     79    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                        129    117     9%
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                        208    182    12%
osmclient/sol005/wim.py                         142    123    13%
osmclient/v1/__init__.py                          0      0   100%
osmclient/v1/client.py                           54      9    83%
osmclient/v1/key.py                              18     18     0%
osmclient/v1/ns.py                              118     89    25%
osmclient/v1/nsd.py                              27      8    70%
osmclient/v1/package.py                          34     17    50%
osmclient/v1/tests/test_ns.py                    22      0   100%
osmclient/v1/tests/test_nsd.py                   20      1    95%
osmclient/v1/tests/test_package.py               15      0   100%
osmclient/v1/tests/test_vnf.py                   26      0   100%
osmclient/v1/tests/test_vnfd.py                  20      1    95%
osmclient/v1/utils.py                             9      4    56%
osmclient/v1/vca.py                              27     27     0%
osmclient/v1/vim.py                             184    162    12%
osmclient/v1/vnf.py                              24      3    88%
osmclient/v1/vnfd.py                             25      6    76%
-----------------------------------------------------------------
TOTAL                                          7561   5145    32%
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, 13.988 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2-merge_paas/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/workspace/osmclient-stage_2-merge_paas
pylint installed: astroid==2.15.6,bitarray==2.7.6,certifi==2023.5.7,charset-normalizer==3.1.0,click==8.1.3,coverage==7.2.5,dill==0.3.6,enum34==1.1.10,idna==3.4,isort==5.12.0,Jinja2==3.1.2,lazy-object-proxy==1.9.0,lxml==4.9.3,MarkupSafe==2.1.2,mccabe==0.7.0,mock==5.0.2,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@2a767f63133a640cc8f3db1a6ddc796c8a88a14f,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@a61aedcc60f5125b509b995a1e327cf009954637#egg=osmclient,packaging==23.1,platformdirs==3.9.1,prettytable==3.7.0,pyang==2.5.3,pyangbind==0.8.2,pycurl==7.45.2,pylint==2.17.4,python-magic==0.4.27,PyYAML==6.0.1,regex==2023.6.3,requests==2.30.0,six==1.16.0,tomli==2.0.1,tomlkit==0.11.8,typing_extensions==4.7.1,urllib3==2.0.2,verboselogs==1.7,wcwidth==0.2.6,wrapt==1.15.0
pylint run-test-pre: PYTHONHASHSEED='1476969304'
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 :)