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

zhmcclient / zhmc-ansible-modules / test-2773
44%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2025 10:18PM UTC
Jobs 30
Files 38
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

23 Aug 2025 02:12PM UTC coverage: 42.03% (+0.2%) from 41.831%
test-2773

push

github

andy-maier
Tolerate referenced objects without access permission

Details:

* Fixed that resource objects for which the user has no access permission but
  that are referenced via URIs in other objects do not cause errors anymore.
  Such cases are now tolerated and the referenced objects are shown with their
  URI, with name "(unknown)" and with 'None' for their properties in any module
  results that show objects. (issue #1173)

* This was done by adding lookup support in the common.py module:

  - A constant UNKNOWN_NAME = "(unknown)" that defines what is shown for the
    name of such objects.

  - Functions object_from_uri(), object_name(), object_properties() that
    look up a resource object from a single URI by constructing it locally
    and then pulling its properties, if needed. The object_name() and
    object_properties() functions implement the behavior described above.

  - A class ObjectsByUriCache that look up resource objects from a single URI
    or list of URIs by listing all resource objects on a particular manager.
    The properties are pulled only when needed.

* The following modules were changed to use this new lookup support:

  - zhmc_crypto_attachment.py with state=attached, when showing the conflicting
    domains.

  - zhmc_partition.py with all states that show the partition in the result,
    when showing attached storage groups.

  - zhmc_user.py and zhmc_user_list.py with all states that show users in
    the result, when showing objects referenced by the user, such as:
    User roles, user pattern, user template, password rule, LDAP server
    definition, primary and backup MFA server definition, and default group.

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

59 of 169 new or added lines in 5 files covered. (34.91%)

6 existing lines in 4 files now uncovered.

2700 of 6424 relevant lines covered (42.03%)

12.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
0.0% plugins/modules/zhmc_crypto_attachment.py
17
50.94
0.48% plugins/modules/zhmc_user_list.py
18
58.18
0.22% plugins/modules/zhmc_user.py
30
42.47
3.53% plugins/module_utils/common.py
39
29.03
-0.22% plugins/modules/zhmc_partition.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% plugins/modules/zhmc_crypto_attachment.py
1
29.03
-0.22% plugins/modules/zhmc_partition.py
1
50.94
0.48% plugins/modules/zhmc_user_list.py
3
58.18
0.22% plugins/modules/zhmc_user.py
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest,3.9,minimum - test-2773.1 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
2 macos-latest,3.13,minimum - test-2773.2 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
3 ubuntu-latest,3.11,latest - test-2773.3 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
4 macos-latest,3.9,minimum - test-2773.4 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
5 ubuntu-latest,3.9,ansible - test-2773.5 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
6 macos-latest,3.11,latest - test-2773.6 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
7 macos-latest,3.13,latest - test-2773.7 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
8 macos-latest,3.10,latest - test-2773.8 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
9 macos-latest,3.10,minimum - test-2773.9 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
10 ubuntu-latest,3.10,latest - test-2773.10 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
11 ubuntu-latest,3.13,ansible - test-2773.11 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
12 ubuntu-latest,3.13,minimum - test-2773.12 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
13 macos-latest,3.11,minimum - test-2773.13 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
14 ubuntu-latest,3.9,latest - test-2773.14 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
15 macos-latest,3.11,ansible - test-2773.15 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
16 macos-latest,3.9,latest - test-2773.16 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
17 macos-latest,3.9,ansible - test-2773.17 23 Aug 2025 11:18PM UTC 38
41.96
GitHub Action Run
18 ubuntu-latest,3.12,minimum - test-2773.18 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
19 macos-latest,3.12,minimum - test-2773.19 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
20 ubuntu-latest,3.10,minimum - test-2773.20 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
21 ubuntu-latest,3.12,ansible - test-2773.21 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
22 ubuntu-latest,3.13,latest - test-2773.22 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
23 ubuntu-latest,3.11,ansible - test-2773.23 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
24 macos-latest,3.13,ansible - test-2773.24 23 Aug 2025 11:18PM UTC 38
41.95
GitHub Action Run
25 macos-latest,3.12,latest - test-2773.25 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
26 ubuntu-latest,3.10,ansible - test-2773.26 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
27 macos-latest,3.10,ansible - test-2773.27 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
28 macos-latest,3.12,ansible - test-2773.28 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
29 ubuntu-latest,3.11,minimum - test-2773.29 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
30 ubuntu-latest,3.12,latest - test-2773.30 23 Aug 2025 11:18PM UTC 38
41.94
GitHub Action Run
Source Files on build test-2773
  • Tree
  • List 38
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7eb560ed on github
  • Prev Build on master (#TEST-2768)
  • Next Build on master (#TEST-2784)
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