7 Commits

Author SHA1 Message Date
Dmitry Tantsur
db277272a0 Switch functional tests to the fake-hardware hardware type
The OSC plugin tests are also refactored to use one driver_name variable.

Change-Id: I5cc6976b306d866c0d84706581ddf235e05dc322
2018-06-11 15:34:26 +02:00
Dmitry Tantsur
c534b9465d Set the default API version of OSC CLI to "latest"
Now the default of OSC is the negotiated maximum version understood
by both the server and the client. The value of "1" is now equivalent
to "latest" as well.

This change also cleans up unit tests for the OSC plugin.

Change-Id: I489fee937a356b523eb35379dce3631195132fe5
Closes-Bug: #1671145
2017-10-25 17:59:52 +02:00
Jenkins
38fcb64ea5 Merge "Add test for set/unset node target_raid_config" 2017-08-06 16:51:02 +00:00
Kyrylo Romanenko
1375c2ed81 Add test for set/unset node target_raid_config
Change-Id: I4957d06d3fe1a88930d30a4d29a379e18ef37c1d
Related-Bug: #1619052
2017-08-03 14:56:53 +03:00
Mario Villaplana
a99fbeeb1b Log warning when API version is not specified for the OSC plugin
At the Pike PTG, an issue was brought up regarding the use of an old API
version in the ironic OpenStack CLI plugin. [0]

It was suggested that we begin printing a warning whenever the default
OSC API version is used and later default to using the latest API
version when --os-baremetal-api-version is unspecified.

This patch adds the warning discussed above.

[0] https://etherpad.openstack.org/p/ironic-pike-ptg-operations L30

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Partial-Bug: #1671145
Change-Id: I0cf4e737595405b7f9beff76a72ffd26e07e6277
2017-06-19 16:46:56 +02:00
Kyrylo Romanenko
53df9f9940 Add tests for maintenance mode commands
Basic functional tests for commands:
baremetal node maintenance set,
baremetal node maintenance unset.

Change-Id: Id7d49cc03b70def159e1a282b45fc65e836e538c
2016-11-17 15:09:52 +00:00
Rodion Promyshlennikov
ea7c719f28 Add basic tests for OSC plugin baremetal node commands
Add testcases for commands:
openstack baremetal node create,
openstack baremetal node delete,
openstack baremetal node list,
openstack baremetal node show,
openstack baremetal node set,
openstack baremetal node unset.

Change-Id: I32d9e33a868f2224d179f3d16de19f62b85d535e
Partial-Bug: #1566329
2016-11-07 12:39:35 +00:00