summaryrefslogtreecommitdiff
path: root/ironicclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Fix the functional testsDmitry Tantsur2021-03-191-0/+12
| | | | | | | | | | We somehow manage to merge a patch that breaks them. Import the required code from change Ibb8c4676f653c36978bd0c9815ddf7eb80fa8670. Make sure we run functional tests on ironicclient/tests changes. Change-Id: I94e2b3d9ae669f2522f42879dd3ee3bd78b73c77 Co-Authored-By: Kyrylo Romanenko <kromanenko@mirantis.com>
* Merge "Add tests for 'baremetal port create' command"4.6.1Zuul2021-03-011-0/+75
|\
| * Add tests for 'baremetal port create' commandKyrylo Romanenko2020-09-081-0/+75
| | | | | | | | | | | | | | | | | | | | Add tests for options: --extra --pxe-enabled --local-link-connection Change-Id: Idf70f8b24df6439a6a4ece9c840d904a4bcb8a8a Partial-Bug: #1566329
* | Remove lower-constraints jobRiccardo Pittau2020-12-163-10/+8
|/ | | | | | | | | As discussed during the upstream ironic community meeting on Monday Dec 14 2020, the lower-constraints job is being removed. Also fix functional tests. Change-Id: Iafad733ac813da65ceb1864cb24af65e924732b7
* Fix expected exception message in one testVladyslav Drok2020-08-121-1/+1
| | | | | | It seems to have changed recently. Change-Id: Ie84f5d9c3d657a49d4c443efdd695d69f5150142
* Check import orderRiccardo Pittau2020-04-212-2/+2
| | | | | | | | | | Restore pep 8check for import order. Set flake8-import-order version to 0.17.1 Full py3 compatible version. Add all Python3 modules to stdlib list. Also includes fix to an enum34 dependency bug. Change-Id: I989a84e362a18225c6f79580b22bb028d3e265ff
* Stop using six libraryRiccardo Pittau2019-12-186-53/+33
| | | | | | | | | | 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
* Remove the ironic commandJulia Kreger2019-08-2010-1368/+0
| | | | | | | | | | | | | | | | | The ironic command is dead, long live the OSC baremetal command. Also removed the json_respose tests, which seemed ot be geared to checking json returned data on the command line. For ironic these tests seemed to be very explicit for our CLI where as OSC should be covering the return data handling, the only real end effect is field level expectation enforcement in the functional test... which seems excessive and un-needed. Story: 1726605 Task: 11974 Depends-on: https://review.opendev.org/677183 Change-Id: I3e3ae416a65d8e01956434ba51bd3187ab001f80
* Add allocation update API2.8.0Madhuri Kumari2019-06-061-0/+29
| | | | | | | | | | This patch adds the following OSC commands: * baremetal allocation set * baremetal allocation unset Change-Id: Id7c1c46a66d19c782af917f48d6bdb82193da73b Story: 2005126 Task: 29797
* Run jobs under python2 and python3Iury Gregory Melo Ferreira2019-03-155-11/+23
| | | | | | | | | | | | | -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 "Move to zuulv3"Zuul2019-03-111-49/+0
|\
| * Move to zuulv3Iury Gregory Melo Ferreira2019-03-111-49/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To move ironicclient legacy jobs to zuulv3 the the following changes were necessary: - Change `tox.ini` to pass envrioment variables - Clean `post_test_hook.sh` to avoid legacy variables (`$USER` and `$BASE`), removing `generate_testr_results` function since we only get `testrepository.subunit` in logs and the results of the tests are present in job-output file. - Convert `post_test_hook.sh` and `run_functional.sh` into `playbooks/functional/run.yaml` to run after the setup. Change-Id: I6a5b3f82c238083b66bdf6f379092260d367d82d
* | Deploy templates: client supportMark Goddard2019-03-012-0/+234
|/ | | | | | | | | Adds OSC support for the deploy templates API. Change-Id: I0f2f37e840449ee41f747e2a43ed6f53c927094e Depends-On: https://review.openstack.org/631845 Story: 1722275 Task: 28678
* Allocation API: client API and CLIDmitry Tantsur2019-02-162-0/+213
| | | | | | | | | Adds the Python API to create/list/view/delete allocations, as well as the OpenStackClient commands. Change-Id: Ib97ee888c4a7b6dfa38934f02372284aa4c781a0 Story: #2004341 Task: #28028
* Support for conductors exposed from APIKaifeng Wang2018-12-122-0/+63
| | | | | | | | | | Adds conductor resource to the CLI, the support to list and show conductor resource, and filter nodes by conductor field. Story: 1724474 Task: 28066 Change-Id: I9644b9b1bbe2f4f5aa6e80a6bb7ab9b0a4663a6f
* Support node's deploy_step fieldRuby Loo2018-07-112-0/+2
| | | | | | | | | | | | Adds support for a node's ``deploy_step`` (read-only) field. The deploy step indicates which step is being performed during the deployment/provisioning of a node. It is available starting with Bare Metal API version 1.44. Depends-On: https://review.openstack.org/#/c/579968/ Change-Id: I93ac628bca0822a9a359926389543f7db7fb3e56 Story: #1753128 Task: #22925
* 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-117-11/+12
|/ | | | | | The OSC plugin tests are also refactored to use one driver_name variable. Change-Id: I5cc6976b306d866c0d84706581ddf235e05dc322
* Accept None as a result of node validation in functional testHironori Shiina2017-12-181-1/+1
| | | | | | | | A result of node validation can be None when a driver has no implementation of an interface. This patch accepts None as a result of node validation in the JSON scehma test. Change-Id: Ic36d855f30ca59c6ac8be01e49f8d21db7c9b052
* Switch the deprecated "ironic" CLI to "latest" API version by defaultDmitry Tantsur2017-11-024-19/+20
| | | | | | | | 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
* Make functional tests on JSON output debugableDmitry Tantsur2017-10-261-21/+17
| | | | | | | | The way its implemented does not allow why exactly the schema validation failed. This patch simplies the code by allowing the exception to simply propagate to the test runner. Change-Id: Ic825624138ab4f764df9fb300a357680febc4563
* Set the default API version of OSC CLI to "latest"Dmitry Tantsur2017-10-252-43/+41
| | | | | | | | | | | 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
* Use generic user for both zuul v2 and v3Nam Nguyen Hoai2017-10-171-3/+3
| | | | | | | Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: I7db56d052012b107e1e63ab81e5d3bf6090f7d2f
* flake8: Enable some off-by-default checksJohn L. Villalovos2017-09-071-1/+1
| | | | | | | | | | | | Enable the following off-by-default checks: * [H204] Use assert(Not)Equal to check for equality. * [H205] Use assert(Greater|Less)(Equal) for comparison. * [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in mock.patch/mock.patch.object calls Fix code that failed [H205] and [H210] Change-Id: I7a553e7d40e328f37757fb504a098776cb9bf97c
* Merge "Add basic tests for OSC plugin baremetal driver commands"Jenkins2017-08-302-0/+67
|\
| * Add basic tests for OSC plugin baremetal driver commandsKyrylo Romanenko2017-07-312-0/+67
| | | | | | | | | | | | | | | | | | Add smoke tests for commands: openstack baremetal driver list, openstack baremetal driver show. Change-Id: I7334e55fbf600190cbd7d4de086a73178bf83b4b Partial-Bug: #1566329
* | Merge "Pass os_identity_api_version into functional tests"Jenkins2017-08-282-24/+17
|\ \
| * | Pass os_identity_api_version into functional testsKyrylo Romanenko2017-07-312-24/+17
| | | | | | | | | | | | | | | | | | | | | | | | Add 'os_identity_api_version' to keystone_v3_conf_settings. Deduplicate excessive _ironic_osc method. Change-Id: I9b93ec8a299d3a69629bf294d23d1b1d9e23660e Closes-Bug: #1646837
* | | Merge "Add test for set/unset node target_raid_config"Jenkins2017-08-062-0/+48
|\ \ \
| * | | Add test for set/unset node target_raid_configKyrylo Romanenko2017-08-032-0/+48
| | |/ | |/| | | | | | | | | | Change-Id: I4957d06d3fe1a88930d30a4d29a379e18ef37c1d Related-Bug: #1619052
* | | Merge "Create port with specific port group UUID in OSC"Jenkins2017-08-041-0/+18
|\ \ \ | |_|/ |/| |
| * | Create port with specific port group UUID in OSCKyrylo Romanenko2017-06-091-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Add test to create a port with specific portgroup UUID using --port-group option in ironicclient OSC plugin. Change-Id: I0678899098d78c2a5f6cc0557254b8635020703d Partial-Bug: #1632646
* | | Log warning when API version is not specified for the ironic toolDmitry Tantsur2017-07-212-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Log warning when API version is not specified for the OSC plugin"Jenkins2017-07-132-2/+22
|\ \ \ | |_|/ |/| |
| * | Log warning when API version is not specified for the OSC pluginMario Villaplana2017-06-192-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 basic tests for OSC plugin baremetal chassis commandsKyrylo Romanenko2017-06-012-0/+143
| |/ |/| | | | | | | | | | | | | | | | | | | | | Add smoke tests for commands: openstack baremetal chassis delete, openstack baremetal chassis list, openstack baremetal chassis show, openstack baremetal chassis set, openstack baremetal chassis unset. Change-Id: Ie953a786f92539cfd5195cd8601360da63cea356 Partial-Bug: #1566329
* | Merge "Add testcases for OSC baremetal port group commands"Jenkins2017-05-222-0/+195
|\ \
| * | Add testcases for OSC baremetal port group commandsSofiiaAndriichenko2017-02-162-0/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for the following commands: openstack baremetal port group create openstack baremetal port group list openstack baremetal port group delete openstack baremetal port group show openstack baremetal port group set openstack baremetal port group unset Partial-Bug: #1632646 Co-Authored-By: Kyrylo Romanenko <kromanenko@mirantis.com> Change-Id: I12478596cfa551bb79e597e948b531cbec0eed84
* | | Merge "Add sanity tests for baremetal power state commands"Jenkins2017-05-101-0/+58
|\ \ \
| * | | Add sanity tests for baremetal power state commandsKyrylo Romanenko2016-11-241-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add sanity testcases for commands: openstack baremetal node reboot, openstack baremetal node power on, openstack baremetal node power off. Change-Id: I24bc2dcd1ef27d918b072ea686d53c0c8aa8b7ab Partial-Bug: #1642597
* | | | Deduplicate method in OSC functional testsKyrylo Romanenko2017-04-053-20/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move construct_cmd method to base of functional tests. Also fix typo in method name and refactor this method. Change-Id: I352e7a4bcf439d290d6c1a31145d285102743eca
* | | | Merge "Add tests for node list and show with specific fields"Jenkins2017-03-211-0/+137
|\ \ \ \
| * | | | Add tests for node list and show with specific fieldsKyrylo Romanenko2017-03-131-0/+137
| | | | | | | | | | | | | | | | | | | | Change-Id: I2a8c699f1c50106cc85f8d97dc212941e28ad094
* | | | | Merge "Add negative tests for baremetal node commands"Jenkins2017-03-201-0/+89
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add negative tests for baremetal node commandsRodion Promyshlennikov2017-03-131-0/+89
| |/ / / | | | | | | | | | | | | Change-Id: I56e64cc37ffbce448dfef3c9dc34c909c308c7b2
* | | | Merge "Verify JSON response of chassis commands"Jenkins2017-03-031-0/+74
|\ \ \ \ | |_|_|/ |/| | |
| * | | Verify JSON response of chassis commandsKyrylo Romanenko2016-12-151-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test JSON response output to console for commands: chassis-list, chassis-show, chassis-create, chassis-update, chassis-node-list. Partial-Bug: #1555680 Change-Id: Ib04d41a3f72af8c4783eff826641084774c927c6
* | | | Merge "Add VIFs commands to help test"Jenkins2017-03-011-0/+3
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add VIFs commands to help testKyrylo Romanenko2017-02-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test presence of next subcommands in help output: node-vif-attach node-vif-detach node-vif-list Change-Id: I5e6e8b590dd3e2fa7f8497c18a62b2f0e7ab923b Related-Bug: #1662966