This change will make possible adding a new functional job running
ironic in noauth mode, and accessing it with none auth plugin from
the tests. There was no decision if such job is needed, but still
seems to be a good thing to keep the code updated to correspond to
what is the intended way of working with noauth ironic.
Change-Id: I48cf37c87fdb74a3b38742a929698c9bd146d7d1
The functional tests were updated to account for the initial state changed
to "enroll" and for new fields appearing in "show" and "update" responses.
Closes-Bug: #1671145
Change-Id: Ida18541fbbc8064868cac0accb6919de08e9f795
At the Pike PTG, an issue was brought up regarding the use of an old API
version in the ironic tool [0]. It was suggested that we begin printing
a warning whenever the default API version is used and later default
to using the latest API version when --ironic-api-version is unspecified.
This patch adds this warning.
[0] https://etherpad.openstack.org/p/ironic-pike-ptg-operations L30
Change-Id: I80d553e4d3b007d8312931019037f495425b5ea5
Partial-Bug: #1671145
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
Add test to create a port with specific port group UUID
using --portgroup option in ironicclient.
Change-Id: Ib5124cd787e8504e61a8615a69937866c6b0b0b6
Partial-Bug: #1562035
Add sanity tests for the following commands:
portgroup-create,
portgroup-delete,
portgroup-list,
portgroup-show,
portgroup-update,
portgroup-port-list.
Portgroup API works since microversion 1.25.
Closes-Bug: #1562035
Change-Id: If629ba39d07c1a999d60c70b343619179bb3447e
Soft reboot/poweroff is now being implemented in Ironic. And the
Ironic driver in Nova should support this new feature. This patch
adds soft reboot and soft poweroff states.
Co-Authored-By: Naohiro Tamura <naohirot@jp.fujitsu.com>
Partial-Bug: #1526226
Change-Id: Icd2859784f3df85c08162c14464bce58067aab1d
Depends-On: I1c9bbd1f11f6a8565607c874b3c99aa10eeb62a5
OS_TENANT_NAME variable is deprecated in Devstack.
Replace it with OS_PROJECT_NAME variable in configuration script
tools/run_functional.sh which generates config dynamically.
Change-Id: I7b2fab37aeae6e37672b9b92f0b5ae49a1b2e2d9
Related-Bug: #1646837
Add CommandFailed exception to docstring of delete_node
method for python-ironicclient functional tests.
Change-Id: I6ba84579b9ff4ed0d29da33c8ab012bb772b0e83
Explicitly use `--os-identity-api-version` option
for Baremetal OSC plugin functional tests
taking it's value from config.
Change-Id: I3eeb7cd029fe440684a5736eeb3b5788d1666a08
Closes-Bug: #1646837
The SafeConfigParser class has been renamed to ConfigParser in Python
3.2 [1]. The alias SafeConfigParser maybe removed in future versions of
Python 3. Use ConfigParser instead of SafeConfigParser in Python 3
[1] http://bugs.python.org/issue10627
Change-Id: I7b550cbd7b5d4c4fe3511c456b5f738030e07d5e
Closes-Bug: #1618666
Negative tests for the Ironic CLI commands which checks actions with
chassis command like show, update, delete either using with arguments
or without arguments.
Change-Id: I7431febddbdf7b064932d208a36f99317145d5e7
Smoke tests for the Ironic CLI commands
which checks basic actions with port command like
create, update, delete etc.
Change-Id: I1a1447d81c28af21b054e9cd4c35f94b39ac0244
Closes-Bug: #1527515
Add tempest to the test-requirements to use exceptions, utils
and output parser from tempest instead of reimplementing them in CLI tests.
Remove tempest-lib from test-requirements.
Change imports in functional tests.
Change-Id: Ide0e2478784e823443264fb36d29365741078625
Smoke tests for the Ironic CLI commands
which checks basic actions with chassis command like
create, update, delete etc.
Change-Id: Ib9d34aca954d25b6074ca785d5c3ac1e06c4297a
Closes-Bug: #1527515
Smoke tests for the Ironic CLI commands
which checks basic actions with node command like
create, update, delete etc.
Add get_table_headers() method that allows to
get table header from cmd output.
Add 'utils' module
Table structure tests have been updated.
Change-Id: If60b3720e9ce9a6a6c7e35880bf3f9c661d6f259
Implements: blueprint ironicclient-functional-tests
Functional test environment uses ironicclient api directly(client managers),
this approach has some cons - it doesn't include cli code. So it would be
better to use tempest-lib for this. It makes call to ironic with Popen,
and has parsing tools.
This change doesn't add new test cases, some helper methods have been added.
blueprint ironicclient-functional-tests
Change-Id: Iee426c65ee227e8b7c32ac94f6cfc1001f94e112