• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhmcclient / python-zhmcclient / test-4447
77%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2026 08:24AM UTC
Jobs 12
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Mar 2026 08:17AM UTC coverage: 77.179% (-0.4%) from 77.588%
test-4447

push

github

web-flow
Improved checking for sensitive properties in logs (#2118)

The following sensitive data is now blanked out that was not blanked out before:

In the HTTP operation logging:
  - "Create SSO Server Definition" operation:
    - `client-secret` request field - OIDC client secret for the SSO server

In the API call logging:
  - SSOServerDefinitionManager.create():
    - `client-secret` property - OIDC client secret for the SSO server

Note that the support for SSO server definitions is new and has not yet
been released. So this is not an externally documented fix.

Details:

* Changed the approach for blanking out sensitive properties in logs for
  API calls and return values: Instead of using the blanked_properties
  argument of the logged_api_call decorator to point to specific properties,
  the blanking out is now done when the string representation of the
  argument or return value has been created, by matching certain
  property names using a regexp in the repr() string of the arguments or
  return values.

  The blanked_properties argument in the logged_api_call decorator still
  exists in case it is needed in the future for additional properties, but
  it is not currently used.

* Changed the approach for blanking out sensitive properties in logs for
  HTTP requests and responses: Instead of checking for a set of specific
  sensitive property names in the dict representation of the request and
  response bodies, the sensitive properties are now detected by matching
  certain property names using a regexp in the JSON string of the body.

* In the test_logging.py unit test module, changed the use of .msg for
  accessing the expanded log message to using .getMessage(). It is not
  clear why that worked before, but getMessage() is the official way to
  get at the expanded log message.

* Improved performance in _log_http_request() and _log_http_response()
  by not executing the code when debug logging is disabled.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>

1825 of 2818 branches covered (64.76%)

Branch coverage included in aggregate %.

37 of 83 new or added lines in 10 files covered. (44.58%)

6 existing lines in 1 file now uncovered.

9474 of 11822 relevant lines covered (80.14%)

9.61 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
46
61.43
-7.86% zhmcclient/_session.py

Uncovered Existing Lines

Lines Coverage ∆ File
6
61.43
-7.86% zhmcclient/_session.py
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest,3.9,latest - test-4447.1 17 Mar 2026 08:34AM UTC 62
77.17
GitHub Action Run
2 windows-latest,3.9,latest - test-4447.2 17 Mar 2026 08:34AM UTC 62
77.17
GitHub Action Run
3 windows-latest,3.9,minimum - test-4447.3 17 Mar 2026 08:34AM UTC 62
77.15
GitHub Action Run
4 macos-latest,3.14,minimum - test-4447.4 17 Mar 2026 08:34AM UTC 62
77.14
GitHub Action Run
5 macos-latest,3.9,latest - test-4447.5 17 Mar 2026 08:34AM UTC 62
77.17
GitHub Action Run
6 ubuntu-latest,3.9,minimum - test-4447.6 17 Mar 2026 08:34AM UTC 62
77.15
GitHub Action Run
7 windows-latest,3.14,latest - test-4447.7 17 Mar 2026 08:34AM UTC 62
77.16
GitHub Action Run
8 ubuntu-latest,3.12,latest - test-4447.8 17 Mar 2026 08:34AM UTC 62
77.16
GitHub Action Run
9 ubuntu-latest,3.14,latest - test-4447.9 17 Mar 2026 08:34AM UTC 62
77.16
GitHub Action Run
10 windows-latest,3.14,minimum - test-4447.10 17 Mar 2026 08:34AM UTC 62
77.14
GitHub Action Run
11 ubuntu-latest,3.14,minimum - test-4447.11 17 Mar 2026 08:34AM UTC 62
77.14
GitHub Action Run
12 macos-latest,3.11,latest - test-4447.12 17 Mar 2026 08:34AM UTC 62
77.16
GitHub Action Run
Source Files on build test-4447
  • Tree
  • List 62
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • c5ad1fa3 on github
  • Prev Build on master (#TEST-4445)
  • Next Build on master (#TEST-4449)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc