31 Commits

Author SHA1 Message Date
Zuul
a49938dad2 Merge "Allow to use none auth in functional tests" 2018-06-18 23:41:29 +00:00
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
Vladyslav Drok
40a87d534f Allow to use none auth in functional tests
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
2018-05-18 08:57:22 +00:00
Dmitry Tantsur
28560398fa Switch the deprecated "ironic" CLI to "latest" API version by default
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
2017-11-02 10:05:15 +01:00
Kyrylo Romanenko
fab6a8bfef Pass os_identity_api_version into functional tests
Add 'os_identity_api_version' to keystone_v3_conf_settings.
Deduplicate excessive _ironic_osc method.

Change-Id: I9b93ec8a299d3a69629bf294d23d1b1d9e23660e
Closes-Bug: #1646837
2017-07-31 17:17:45 +03:00
Dmitry Tantsur
cdae0fb045 Log warning when API version is not specified for the ironic tool
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
2017-07-21 10:50:17 +02: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
4d24d4b093 Add test to create a port with specific port group UUID
Add test to create a port with specific port group UUID
using --portgroup option in ironicclient.

Change-Id: Ib5124cd787e8504e61a8615a69937866c6b0b0b6
Partial-Bug: #1562035
2017-02-02 17:00:16 +00:00
Jenkins
3992c5ddb6 Merge "Functional tests for port groups in ironicclient" 2017-02-01 13:08:28 +00:00
Jenkins
b8020abd4b Merge "Change os_tenant_name to os_project_name in tests configuration script" 2017-01-25 17:17:41 +00:00
Kyrylo Romanenko
e8daa4795c Functional tests for port groups in ironicclient
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
2017-01-25 18:05:31 +02:00
Tang Chen
249215e3d5 Add soft reboot/poweroff power states.
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
2017-01-18 15:06:35 +00:00
Kyrylo Romanenko
5edcdf0d60 Change os_tenant_name to os_project_name in tests configuration script
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
2017-01-18 14:15:31 +00:00
Kyrylo Romanenko
03acb13940 Describe possible exception in docstring
Add CommandFailed exception to docstring of delete_node
method for python-ironicclient functional tests.

Change-Id: I6ba84579b9ff4ed0d29da33c8ab012bb772b0e83
2016-12-16 12:16:18 +00:00
Kyrylo Romanenko
c100a552f5 Use identity api version 3 for OSC plugin tests
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
2016-12-12 17:31:55 +02:00
qinchunhua
e7d88230b0 Use ConfigParser instead of SafeConfigParser in Python 3
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
2016-09-20 03:40:43 +00:00
Jenkins
aa7b87c8d3 Merge "Add CLI tests to check JSON response body" 2016-07-28 12:11:07 +00:00
Kyrylo Romanenko
28dc9331b6 Add CLI tests to check JSON response body
Test JSON response output to console for commands:
node-list,
node-show,
node-validate,
node-show-states,
node-create,
node-update.

Change-Id: Id1ebff7cedb6e5b9f657d869d71f49de270a5ef3
Partial-Bug: #1555680
2016-07-26 12:58:04 +03:00
Sergii Turivnyi
a7fc7901a7 Negative tests for testing actions with Chassis
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
2016-06-24 17:58:08 +03:00
Jenkins
7548aca0ab Merge "Add test for chassis-node-list" 2016-06-23 03:10:21 +00:00
sandriichenko
e9cd32f7e9 Add test for chassis-node-list
Change-Id: If35dad99a8e3cdd169827bd84dbe25fa0e83d031
Closes-Bug: #1563745
2016-06-07 11:31:31 -04:00
Sergey Turivnyi
a0fc05956f Add sanity tests for testing actions with Port
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
2016-06-06 14:37:48 +00:00
Jenkins
ff3967a07e Merge "Replace deprecated tempest-lib with tempest" 2016-05-20 16:05:19 +00:00
Kyrylo Romanenko
693e1d27bd Replace deprecated tempest-lib with tempest
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
2016-05-19 10:00:40 +00:00
Kyrylo Romanenko
deae37ae26 Fix typo in docstring of assertTableHeaders method
Change-Id: I79d5204a9749d55fa1229417a2b04735d1520456
2016-04-25 19:22:17 +03:00
Jenkins
36589d51b1 Merge "Allow functional tests to work with Keystone v3" 2016-03-02 18:40:13 +00:00
Sergey Turivnyi
d9c5967086 Add sanity tests for testing actions with Chassis
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
2016-02-19 13:37:39 +00:00
Vladyslav Drok
1e69e44835 Allow functional tests to work with Keystone v3
Closes-bug: #1540287

Change-Id: Ia8f1d41c828dd922559bf8fbcd1b331b0247faf1
2016-02-01 15:56:43 +02:00
Sergii Turivnyi
324efd9037 Add Sanity tests for testing actions with Driver
Smoke tests for the Ironic CLI commands which checks basic actions
with driver command: driver-list, driver-show, driver-properties.

Change-Id: Ibf81f97c1092817abae08e4d19fb55966e94f299
Closes-Bug: #1527515
2015-12-18 11:46:00 +02:00
Sergey Turivnyi
41d0f8ff83 Add sanity tests for testing actions with Node
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
2015-11-26 16:37:12 +00:00
Anton Arefiev
1ced89b9e9 Introduce tempest-lib to 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
2015-10-30 09:21:40 +00:00