Commit Graph

13 Commits

Author SHA1 Message Date
Andreas Scheuring 5e74551f60 Validation for cpc_object_id config option
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
2017-04-20 11:34:44 +02:00
Andreas Scheuring b66d960537 Add DPMObjectId configuration object
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
2017-04-20 11:34:44 +02:00
sreeteja a915761d30 Hidden password parameter from log file
closes-Bug: 1670626

Change-Id: I09a20975a5f61a98ea3f0bd41e7e41c633da3ac7
2017-04-18 06:46:41 +00:00
Andreas Scheuring 8b9bc4aa8b Rename test class
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
2017-03-08 09:44:47 +01:00
Andreas Maier 94d8e2293f Changed name of cpc_uuid config option to cpc_object_id
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>
2017-01-26 16:47:24 +01:00
Andreas Maier 5b243174b2 Updated help text for common DPM config options.
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>
2017-01-26 15:26:50 +01:00
Andreas Scheuring 1b7ffe979f remove obsolete default test
Change-Id: Ibf0c07247a1b90b9a6f8a074aea9ff44b0a7c9fc
2017-01-17 15:05:18 +01:00
Andreas Scheuring 345b2cd601 Tests for testing config
Change-Id: Ib3cecd40ff897ffbc654fd07e750f585da3ec598
2017-01-17 15:02:39 +01:00
Andreas Scheuring 320a2e9cf3 renamed register_opts method
Change-Id: Idd997e10a0edd8bd89e9b087957aae5048adcc1a
2017-01-17 14:49:09 +01:00
Andreas Scheuring f7318be1bf Rename default testcase
Change-Id: Ice4068a6ee162d3dcc0d6bdc173bcfd38babb0b9
2017-01-17 14:49:09 +01:00
Andreas Scheuring 7b77974a66 Make config a python package
Change-Id: I65c11ade875d40e9c7ac7fe7b558ca8942116911
2017-01-17 14:49:09 +01:00
Andreas Scheuring f0e51d40e2 Add common dpm config
* hmc
* hmc_username
* hmc_password
* cpc_uuid

Change-Id: I2517f00057a4d3d18b82691c9f7c5578c976bc55
Closes-Bug: #1656287
2017-01-13 14:49:47 +01:00
Andreas Scheuring 399bfb3e58 Inital cookiecutter commit
Closes-Bug: #1656286
Change-Id: Ie71dd6c4efa9afd977c38ceff4cc7306b9aec68b
2017-01-13 13:37:33 +01:00