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

zhmcclient / python-zhmcclient / test-3496 / 8
81%
master: 80%

Build:
Build:
LAST BUILD BRANCH: andy/fix-feature-enabled
DEFAULT BRANCH: master
Ran 16 Apr 2025 05:11PM UTC
Files 57
Run time 3s
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

16 Apr 2025 04:56PM UTC coverage: 80.848% (+0.03%) from 80.816%
test-3496.8

push

github

andy-maier
Fixed and improved methods for FW/API features; Mock support API features

* Added list_firmware_features() to the Cpc and Partition classes. The firmware
  feature data is cached. The method lists the enabled firmware features
  regardless of the HMC/SE version and regardless of whether the firmware
  feature is available. If the HMC/SE version does not support firmware
  features yet (2.14 and HMC API version 2.23), an empty list is returned.

* Added firmware_feature_enabled() to the Cpc and Partition classes, in order
  to test for whether a specific firmware feature is enabled. The firmware
  feature data is cached, and the cache data structure is optimized for fast
  lookup of the feature name.

* Deprecated the feature_enabled() method of the Cpc and Partition classes,
  because it is too complex to use. Use the new firmware_feature_enabled()
  method instead.

* The list_api_features() method of the Cpc and Console classes had cached the
  API feature data. This was a problem because the use of the 'name' filter
  can create different results. The method no longer caches the API feature
  data.

* Added api_feature_enabled() to the Cpc and Console classes, in order
  to test for whether a specific API feature is enabled (=available). The
  API feature data is cached, and the cache data structure is optimized for
  fast lookup of the feature name.

* Added zhmcclient_mock support for the "List CPC API Features" and
  "List Console API Features" operations.

* Changed the data structure of the cached firmware feature data or API
  feature data to be a set of feasture names, for faster lookup when testing
  for features.

* Renamed get_features() in the _utils.py module to get_api_features() and
  optimized its parameters: 'session' and 'base_uri' have been replaced by a
  single 'obj' parameter.

* Added get_firmware_features() in the _utils.py module.

* Extended the unit and end2end testcases accordingly.

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

8983 of 11111 relevant lines covered (80.85%)

0.81 hits per line

Source Files on job macos-latest,3.8,latest - test-3496.8
  • Tree
  • List 57
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • f4d7c8f5 on github
  • Prev Job for on stable_1.20 (#test-3490.10)
  • Next Job for on stable_1.20 (#test-3528.10)
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