This patch uses the newly created DPMObjectId config object to
introduce validation for the cpc_object_id config option.
The config option still accepts both, upper and lower case, but
takes care of converting that value to lower case when used in the
code. The HMC web services only supports lower case object-ids.
Change-Id: I63bd5cdc699bde64151a7bf047e1349a7f509f3f
Closes-Bug: #1663369
This patch adds a new DPMObjectId configuraiton object and
corresponding type to os-dpm. This new configuration object
represents a DPM object id. It inlcudes validation if the
given config value has the correct object-id format.
It allows upper and lower case values to be defined, however
internally it converts everything to lower case (which is required by
the hmc webservices).
Example for a valid object-id:
fa1f2466-12df-311a-804c-4ed2cc1d656b
Change-Id: I6b446f9634a018e005e112cf1e3f9cc7f6fb4a1b
The test case skeleton was copied from networking-dpm project.
We missed to rename the test class 'TestNetworkingDpm'. This patch
renames that class to 'TestConfig'
Change-Id: I3e9d701e34f89eb87ba91e433dd47b5400b8455d
Reason for the change is that the HMC API book does not
mention anywhere that the format of the ID is a UUID, and
the name of the resource property is "object-id".
This change set changes the name of the DPM config option
"cpc_uuid" to "cpc_object_id", and updates the unit testcase
accordingly.
Change-Id: I9f4b7dbbdbb19d00c6f0752c028a7462c2bbee3e
Partial-Bug: 1659304
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
This change updates the help text for the DPM option group and
for all of the common DPM options, to be more consistent, and
to use the official z Systems terminology.
Change-Id: I3652615676aef83c32142a73908d712a944647a9
Partial-Bug: 1659201
Signed-off-by: Andreas Maier <maiera@de.ibm.com>