python-zhmcclient icon indicating copy to clipboard operation
python-zhmcclient copied to clipboard

Unit tests for properties that can be set to null

Open andy-maier opened this issue 8 years ago • 1 comments

Make sure that properties that can be set to null at the zhmcclient API have corresponding unit tests.

As of z14 (2.14.0) and for the currently supported HMC operations in the zhmcclient (2.16.1.dev18 + PR #398), the following properties (or sub-fields thereof) can be set to null.

Unless otherwise stated, the property is set to null using the "Update <Resource> Properties" operation.

  • Partition object:
    • partition-id
    • boot-network-device
    • boot-ftp-host
    • boot-ftp-username
    • boot-ftp-password
    • boot-ftp-insfile
    • boot-removable-media
    • boot-removable-media-type
    • boot-storage-device
    • boot-logical-unit-number
    • boot-world-wide-port-name
    • boot-iso-image-name
    • boot-iso-ins-file
    • crypto-configuration (read-only, set to null via "Decrease Crypto Adapter Configuration" operation)
    • ssc-ipv4-gateway
    • ssc-ipv6-gateway
    • ssc-master-userid
    • ssc-master-pw
  • NIC element:
    • vlan-id
    • vlan-type (new with z14)
  • Logical Partition object:
    • ssc-network-info subfields (before z14)
      • vlan-id
      • static-ip-info
    • ssc-gateway-info (before z14)
    • zaware-gateway-info
  • Image Activation Profile object:
    • ssc-network-info subfields (new with z14)
      • vlan-id
      • static-ip-info
    • group-profile-uri
    • zaware-gateway-info (new with z14)
  • User object:
    • userid-on-ldap-server
    • default-group-uri
  • User Role object:
    • associated-system-defined-user-role-uri
  • User Pattern object:
    • ldap-server-definition-uri
    • template-name-override
    • domain-name-restrictions
  • LDAP Server Definition object:
    • connection-port
    • backup-hostname-ipaddr
    • bind-distinguished-name
    • bind-password

andy-maier avatar Sep 11 '17 10:09 andy-maier

Implementation status:

  • Partition object: DONE in PR #xxxx
  • NIC element: DEFERRED, depends on migration to pytest
  • Logical Partition object: DEFERRED, depends on migration to pytest
  • Image Activation Profile object: DONE in PR #xxxx
  • User object: DEFERRED, depends on migration to pytest
  • User Role object: DEFERRED, depends on migration to pytest
  • User Pattern object: DEFERRED, depends on migration to pytest
  • LDAP Server Definition object: DEFERRED, depends on migration to pytest
  • zhmcclient mock support: DEFERRED, depends on migration to pytest

andy-maier avatar Sep 11 '17 11:09 andy-maier