python -m pip install --upgrade pip Requirement already satisfied: pip in ./venv/lib/python3.11/site-packages (24.1.2) python -m pip install -r requirements.txt Requirement already satisfied: ibm_cloud_sdk_core<4.0.0,>=3.19.2 in ./venv/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (3.20.1) Requirement already satisfied: requests<2.32.3,>=2.31.0 in ./venv/lib/python3.11/site-packages (from ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (2.32.2) Requirement already satisfied: urllib3<3.0.0,>=2.1.0 in ./venv/lib/python3.11/site-packages (from ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (2.2.2) Requirement already satisfied: python-dateutil<3.0.0,>=2.8.2 in ./venv/lib/python3.11/site-packages (from ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (2.9.0.post0) Requirement already satisfied: PyJWT<3.0.0,>=2.8.0 in ./venv/lib/python3.11/site-packages (from ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (2.8.0) Requirement already satisfied: six>=1.5 in ./venv/lib/python3.11/site-packages (from python-dateutil<3.0.0,>=2.8.2->ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (1.16.0) Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (3.7) Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm_cloud_sdk_core<4.0.0,>=3.19.2->-r requirements.txt (line 1)) (2024.6.2) python -m pip install -r requirements-dev.txt Requirement already satisfied: coverage<8.0.0,>=7.3.2 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 1)) (7.5.4) Requirement already satisfied: pylint<4.0.0,>=3.0.0 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 2)) (3.2.3) Requirement already satisfied: pytest<8.0.0,>=7.4.2 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 3)) (7.4.4) Requirement already satisfied: pytest-cov<5.0.0,>=4.1.0 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 4)) (4.1.0) Requirement already satisfied: responses<1.0.0,>=0.23.3 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 5)) (0.25.3) Requirement already satisfied: black<25.0.0,>=24.0.0 in ./venv/lib/python3.11/site-packages (from -r requirements-dev.txt (line 6)) (24.4.2) Requirement already satisfied: platformdirs>=2.2.0 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (4.2.2) Requirement already satisfied: astroid<=3.3.0-dev0,>=3.2.2 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (3.2.2) Requirement already satisfied: isort!=5.13.0,<6,>=4.2.5 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (5.13.2) Requirement already satisfied: mccabe<0.8,>=0.6 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (0.7.0) Requirement already satisfied: tomlkit>=0.10.1 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (0.12.5) Requirement already satisfied: dill>=0.3.6 in ./venv/lib/python3.11/site-packages (from pylint<4.0.0,>=3.0.0->-r requirements-dev.txt (line 2)) (0.3.8) Requirement already satisfied: iniconfig in ./venv/lib/python3.11/site-packages (from pytest<8.0.0,>=7.4.2->-r requirements-dev.txt (line 3)) (2.0.0) Requirement already satisfied: packaging in ./venv/lib/python3.11/site-packages (from pytest<8.0.0,>=7.4.2->-r requirements-dev.txt (line 3)) (24.1) Requirement already satisfied: pluggy<2.0,>=0.12 in ./venv/lib/python3.11/site-packages (from pytest<8.0.0,>=7.4.2->-r requirements-dev.txt (line 3)) (1.5.0) Requirement already satisfied: requests<3.0,>=2.30.0 in ./venv/lib/python3.11/site-packages (from responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (2.32.2) Requirement already satisfied: urllib3<3.0,>=1.25.10 in ./venv/lib/python3.11/site-packages (from responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (2.2.2) Requirement already satisfied: pyyaml in ./venv/lib/python3.11/site-packages (from responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (6.0.1) Requirement already satisfied: click>=8.0.0 in ./venv/lib/python3.11/site-packages (from black<25.0.0,>=24.0.0->-r requirements-dev.txt (line 6)) (8.1.7) Requirement already satisfied: mypy-extensions>=0.4.3 in ./venv/lib/python3.11/site-packages (from black<25.0.0,>=24.0.0->-r requirements-dev.txt (line 6)) (1.0.0) Requirement already satisfied: pathspec>=0.9.0 in ./venv/lib/python3.11/site-packages (from black<25.0.0,>=24.0.0->-r requirements-dev.txt (line 6)) (0.12.1) Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.11/site-packages (from requests<3.0,>=2.30.0->responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.11/site-packages (from requests<3.0,>=2.30.0->responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (3.7) Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.11/site-packages (from requests<3.0,>=2.30.0->responses<1.0.0,>=0.23.3->-r requirements-dev.txt (line 5)) (2024.6.2) python -m pip install -e . Obtaining file:///Users/swadhinkumardhal/go/src/opensource/platform-services-python-sdk Installing build dependencies: started Installing build dependencies: finished with status 'done' Checking if build backend supports build_editable: started Checking if build backend supports build_editable: finished with status 'done' Getting requirements to build editable: started Getting requirements to build editable: finished with status 'done' Preparing editable metadata (pyproject.toml): started Preparing editable metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: ibm-cloud-sdk-core<4.0.0,>=3.19.2 in ./venv/lib/python3.11/site-packages (from ibm-platform-services==0.54.1) (3.20.1) Requirement already satisfied: requests<2.32.3,>=2.31.0 in ./venv/lib/python3.11/site-packages (from ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (2.32.2) Requirement already satisfied: urllib3<3.0.0,>=2.1.0 in ./venv/lib/python3.11/site-packages (from ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (2.2.2) Requirement already satisfied: python-dateutil<3.0.0,>=2.8.2 in ./venv/lib/python3.11/site-packages (from ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (2.9.0.post0) Requirement already satisfied: PyJWT<3.0.0,>=2.8.0 in ./venv/lib/python3.11/site-packages (from ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (2.8.0) Requirement already satisfied: six>=1.5 in ./venv/lib/python3.11/site-packages (from python-dateutil<3.0.0,>=2.8.2->ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (1.16.0) Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (3.7) Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.11/site-packages (from requests<2.32.3,>=2.31.0->ibm-cloud-sdk-core<4.0.0,>=3.19.2->ibm-platform-services==0.54.1) (2024.6.2) Building wheels for collected packages: ibm-platform-services Building editable for ibm-platform-services (pyproject.toml): started Building editable for ibm-platform-services (pyproject.toml): finished with status 'done' Created wheel for ibm-platform-services: filename=ibm_platform_services-0.54.1-0.editable-py3-none-any.whl size=9757 sha256=0bb566caf67c0d9c55b51388c3db9c0878fa2212880e5615c30827616e6ef1b0 Stored in directory: /private/var/folders/4w/l2n6bt3s5gj4q3k5fxs5r3sr0000gn/T/pip-ephem-wheel-cache-4el2relv/wheels/48/7f/98/e3d20f1e061a8b730d011f8773327b0dfffa4fa07b46f04560 Successfully built ibm-platform-services Installing collected packages: ibm-platform-services Attempting uninstall: ibm-platform-services Found existing installation: ibm-platform-services 0.54.1 Uninstalling ibm-platform-services-0.54.1: Successfully uninstalled ibm-platform-services-0.54.1 Successfully installed ibm-platform-services-0.54.1 python -m pytest --cov=ibm_platform_services test/unit ============================= test session starts ============================== platform darwin -- Python 3.11.9, pytest-7.4.4, pluggy-1.5.0 rootdir: /Users/swadhinkumardhal/go/src/opensource/platform-services-python-sdk plugins: cov-4.1.0 collected 2126 items test/unit/test_case_management_v1.py ................................... [ 1%] .................................. [ 3%] test/unit/test_catalog_management_v1.py ................................ [ 4%] ........................................................................ [ 8%] ........................................................................ [ 11%] ........................................................................ [ 14%] ........................................................................ [ 18%] ........................................................................ [ 21%] ..... [ 21%] test/unit/test_common.py . [ 21%] test/unit/test_context_based_restrictions_v1.py ........................ [ 23%] ........................................................................ [ 26%] ....... [ 26%] test/unit/test_enterprise_billing_units_v1.py .......................... [ 28%] ........ [ 28%] test/unit/test_enterprise_management_v1.py ............................. [ 29%] .................................................... [ 32%] test/unit/test_enterprise_usage_reports_v1.py .............. [ 32%] test/unit/test_global_catalog_v1.py .................................... [ 34%] ............................................. [ 36%] test/unit/test_global_search_v2.py ........ [ 37%] test/unit/test_global_tagging_v1.py .................................... [ 38%] ......... [ 39%] test/unit/test_iam_access_groups_v2.py ................................. [ 40%] ........................................................................ [ 44%] ........................................................................ [ 47%] ........................................................................ [ 50%] ...... [ 51%] test/unit/test_iam_identity_v1.py ...................................... [ 52%] ........................................................................ [ 56%] ........................................................................ [ 59%] ........................................................................ [ 63%] ........................................................................ [ 66%] ................................................... [ 68%] test/unit/test_iam_policy_management_v1.py ............................. [ 70%] ........................................................................ [ 73%] ........................................................................ [ 77%] ......................................... [ 78%] test/unit/test_ibm_cloud_shell_v1.py .... [ 79%] test/unit/test_open_service_broker_v1.py ............................... [ 80%] .... [ 80%] test/unit/test_partner_billing_units_v1.py ........................ [ 81%] test/unit/test_partner_usage_reports_v1.py ................. [ 82%] test/unit/test_resource_controller_v2.py ............................... [ 84%] ........................................................................ [ 87%] ...................................................... [ 90%] test/unit/test_resource_manager_v2.py .................................. [ 91%] .. [ 91%] test/unit/test_usage_metering_v4.py ...... [ 92%] test/unit/test_usage_reports_v4.py ..................................... [ 93%] ..................................................................... [ 97%] test/unit/test_user_management_v1.py ................................... [ 98%] ........................... [100%] ---------- coverage: platform darwin, python 3.11.9-final-0 ---------- Name Stmts Miss Cover ---------------------------------------------------------------------------- ibm_platform_services/__init__.py 23 0 100% ibm_platform_services/case_management_v1.py 1188 96 92% ibm_platform_services/catalog_management_v1.py 4501 186 96% ibm_platform_services/common.py 14 0 100% ibm_platform_services/context_based_restrictions_v1.py 1549 184 88% ibm_platform_services/enterprise_billing_units_v1.py 583 31 95% ibm_platform_services/enterprise_management_v1.py 966 39 96% ibm_platform_services/enterprise_usage_reports_v1.py 431 51 88% ibm_platform_services/global_catalog_v1.py 2420 129 95% ibm_platform_services/global_search_v2.py 145 10 93% ibm_platform_services/global_tagging_v1.py 557 41 93% ibm_platform_services/iam_access_groups_v2.py 3251 314 90% ibm_platform_services/iam_identity_v1.py 4732 367 92% ibm_platform_services/iam_policy_management_v1.py 4096 552 87% ibm_platform_services/ibm_cloud_shell_v1.py 209 122 42% ibm_platform_services/open_service_broker_v1.py 670 56 92% ibm_platform_services/partner_billing_units_v1.py 632 38 94% ibm_platform_services/partner_usage_reports_v1.py 476 45 91% ibm_platform_services/resource_controller_v2.py 1997 81 96% ibm_platform_services/resource_manager_v2.py 428 21 95% ibm_platform_services/usage_metering_v4.py 207 26 87% ibm_platform_services/usage_reports_v4.py 2301 204 91% ibm_platform_services/user_management_v1.py 650 39 94% ibm_platform_services/version.py 1 0 100% ---------------------------------------------------------------------------- TOTAL 32027 2632 92% ============================= 2126 passed in 5.16s ============================= python -m pylint ibm_platform_services test/unit test/integration examples -------------------------------------------------------------------- Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) black --check ibm_platform_services test/unit test/integration examples All done! ✨ 🍰 ✨ 92 files would be left unchanged.