summaryrefslogtreecommitdiff
path: root/ironicclient/tests/functional/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Stop using six libraryRiccardo Pittau2019-12-181-9/+4
| | | | | | | | | | Since we've dropped support for Python 2.7, it's time to look at the bright future that Python 3.x will bring and stop forcing compatibility with older versions. This patch removes the six library from requirements, not looking back. Change-Id: I4b60638bb0268e5d1cf54fdf7d61964082536f4f
* Run jobs under python2 and python3Iury Gregory Melo Ferreira2019-03-151-1/+2
| | | | | | | | | | | | | -Switch functional job to run under python3 -Create a functional job to run under python2 -Create a tempest job to run under python2 -Create tox env to run functional tests under python3 -Validate if `USE_PYTHON3` is set to `True` to call the correct env for tests -Remove hardcoded path for client when running functional tests - Update tests failures to work for python2 and python3 Change-Id: I55abc999f6f397b171d05fd9e9b39d833ca95e55
* Merge "Allow to use none auth in functional tests"2.4.0Zuul2018-06-181-10/+10
|\
| * Allow to use none auth in functional testsVladyslav Drok2018-05-181-10/+10
| | | | | | | | | | | | | | | | | | | | 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
* | Switch functional tests to the fake-hardware hardware typeDmitry Tantsur2018-06-111-1/+1
|/ | | | | | The OSC plugin tests are also refactored to use one driver_name variable. Change-Id: I5cc6976b306d866c0d84706581ddf235e05dc322
* Switch the deprecated "ironic" CLI to "latest" API version by defaultDmitry Tantsur2017-11-021-1/+3
| | | | | | | | 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
* Pass os_identity_api_version into functional testsKyrylo Romanenko2017-07-311-23/+16
| | | | | | | | Add 'os_identity_api_version' to keystone_v3_conf_settings. Deduplicate excessive _ironic_osc method. Change-Id: I9b93ec8a299d3a69629bf294d23d1b1d9e23660e Closes-Bug: #1646837
* Log warning when API version is not specified for the ironic toolDmitry Tantsur2017-07-211-2/+5
| | | | | | | | | | | | | | 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
* Log warning when API version is not specified for the OSC pluginMario Villaplana2017-06-191-2/+2
| | | | | | | | | | | | | | | | | 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 UUIDKyrylo Romanenko2017-02-021-0/+2
| | | | | | | | Add test to create a port with specific port group UUID using --portgroup option in ironicclient. Change-Id: Ib5124cd787e8504e61a8615a69937866c6b0b0b6 Partial-Bug: #1562035
* Merge "Functional tests for port groups in ironicclient"Jenkins2017-02-011-1/+59
|\
| * Functional tests for port groups in ironicclientKyrylo Romanenko2017-01-251-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Change os_tenant_name to os_project_name in tests configuration script"Jenkins2017-01-251-2/+2
|\ \
| * | Change os_tenant_name to os_project_name in tests configuration scriptKyrylo Romanenko2017-01-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 soft reboot/poweroff power states.Tang Chen2017-01-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Describe possible exception in docstringKyrylo Romanenko2016-12-161-0/+1
| |/ |/| | | | | | | | | | | Add CommandFailed exception to docstring of delete_node method for python-ironicclient functional tests. Change-Id: I6ba84579b9ff4ed0d29da33c8ab012bb772b0e83
* | Use identity api version 3 for OSC plugin testsKyrylo Romanenko2016-12-121-0/+16
|/ | | | | | | | | 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
* Use ConfigParser instead of SafeConfigParser in Python 3qinchunhua2016-09-201-1/+6
| | | | | | | | | | | 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
* Merge "Add CLI tests to check JSON response body"Jenkins2016-07-281-2/+4
|\
| * Add CLI tests to check JSON response bodyKyrylo Romanenko2016-07-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Negative tests for testing actions with ChassisSergii Turivnyi2016-06-241-6/+9
|/ | | | | | | | 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
* Merge "Add test for chassis-node-list"Jenkins2016-06-231-1/+9
|\
| * Add test for chassis-node-listsandriichenko2016-06-071-1/+9
| | | | | | | | | | Change-Id: If35dad99a8e3cdd169827bd84dbe25fa0e83d031 Closes-Bug: #1563745
* | Add sanity tests for testing actions with PortSergey Turivnyi2016-06-061-15/+54
| | | | | | | | | | | | | | | | | | 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
* | Merge "Replace deprecated tempest-lib with tempest"Jenkins2016-05-201-2/+2
|\ \
| * | Replace deprecated tempest-lib with tempestKyrylo Romanenko2016-05-191-2/+2
| |/ | | | | | | | | | | | | | | | | 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
* | Fix typo in docstring of assertTableHeaders methodKyrylo Romanenko2016-04-251-1/+1
|/ | | | Change-Id: I79d5204a9749d55fa1229417a2b04735d1520456
* Merge "Allow functional tests to work with Keystone v3"Jenkins2016-03-021-2/+20
|\
| * Allow functional tests to work with Keystone v3Vladyslav Drok2016-02-011-2/+20
| | | | | | | | | | | | Closes-bug: #1540287 Change-Id: Ia8f1d41c828dd922559bf8fbcd1b331b0247faf1
* | Add sanity tests for testing actions with ChassisSergey Turivnyi2016-02-191-1/+35
|/ | | | | | | | | 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
* Add Sanity tests for testing actions with DriverSergii Turivnyi2015-12-181-0/+14
| | | | | | | | 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
* Add sanity tests for testing actions with NodeSergey Turivnyi2015-11-261-39/+119
| | | | | | | | | | | | | | 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
* Introduce tempest-lib to functional testsAnton Arefiev2015-10-301-0/+161
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