summaryrefslogtreecommitdiff
path: root/ironicclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Allow several nodes for most node actions"HEAD5.2.0masterZuul2023-05-082-152/+282
|\
| * Allow several nodes for most node actionsDmitry Tantsur2023-02-282-152/+282
| | | | | | | | | | | | | | | | This saves the users from writing scripts with "-f value -c uuid" or similar. It is also faster since OSC initialisation takes significant time (up to several seconds). Change-Id: I8ec6da97dc30d97764655b52b712c95f6c22c76a
* | Accept configdrive as a JSON fileDmitry Tantsur2023-03-022-0/+30
|/ | | | Change-Id: I32171ce0d61af00b7d242d455221a903692976f0
* Fix wrong assertion methodsTakashi Natsume2022-09-181-2/+2
| | | | | | | | | Replace 'has_calls' with 'assert_has_calls'. Change-Id: I075919e633aa93486270f872465940ae569b48ab Stroy: 2010306 Task: 46339 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* Avoid using 'foo' as invalid JSON test dataSteve Baker2022-03-011-1/+1
| | | | | | | | | | | Downstream test environments appear to have a file called 'foo' either created out-of-band, or created by tests executed in a non-deterministic order. This changes the test data to very invalid json which is unlikely to be a filename, ensuring the expected codepath is tested. Change-Id: I88ed81337c6e2d724b3cf4ddf90e0d60fa052d1c
* Merge "Validate path when passing a config-drive"4.11.0Zuul2022-01-041-1/+11
|\
| * Validate path when passing a config-driveFelix Huettner2021-08-271-1/+11
| | | | | | | | | | | | | | | | | | | | Currently when --config-drive should point to a file or directory the command silently uses the path as a configdrive if this file/directory does not exist. This is not easily understandable for the user as no error message appears. Change-Id: I92d8ce2a61f459ce14335bfb05424dc883dbc4d1
* | Add node history supportJulia Kreger2021-12-012-0/+68
| | | | | | | | | | | | | | | | | | Adds support for rest API version 1.78, which covers the node history feature. Story: 2002980 Task: 43319 Change-Id: I6edbc38353a4b2f7b0a758108bc91cc9fb72a29d
* | Merge "Add support for fields in drivers CLI"4.9.0Zuul2021-09-232-1/+147
|\ \
| * | Add support for fields in drivers CLITadeas Kot2021-08-302-1/+147
| |/ | | | | | | | | | | | | | | | | | | | | | | This commit add support for fields selector to the driver CLI. * ``openstack baremetal driver list --fields <field> [<field> ...]`` * ``openstack baremetal driver show <driver_name> --fields <field> [<field> ...]`` Depends-On: https://review.opendev.org/c/openstack/ironic/+/804416 Story: 1674775 Task: 43043 Change-Id: I2d691feec876f6978d5075e779ea465ed660f09e
* | Fix distribution compatability for configdrive buildJulia Kreger2021-09-151-3/+40
|/ | | | | | | | | | | | | | | | | | | | Previously, the configuration drive generation code made use of ``genisoimage``, however ``genisoimage`` is not shipped universally on all linux distributions, and largely has been replaced in distributions with other forks, as the tooling has evolved, forked, and changed over the past quarter century. We now attempt to utilize multiple different commands, including the original ``mkisofs`` command and the newer ``xorrisofs`` command when attempting to generate the ISO image, falling back until one works. Credit goes to I720f25921f8e52f20a631f238a528dedf65a91c6 for the base pattern in OpenstackSDK. Story: 2009230 Task: 43328 Change-Id: Ic732c2e6c77474e0d5b701c47758959c3511743b
* Merge "Add support for changing 'boot_mode' and 'secure_boot' states"4.8.0Zuul2021-08-242-0/+124
|\
| * Add support for changing 'boot_mode' and 'secure_boot' statesCenne2021-08-132-0/+124
| | | | | | | | | | | | | | Story: 2008567 Task: 41709 depends-on: https://review.opendev.org/c/openstack/ironic/+/800084 Change-Id: I2937ea924ccc4ca6e9ab5599aa02e3c078c166b3
* | Include BIOS registry fields in bios setting list commandBob Fournier2021-08-062-5/+77
|/ | | | | | | | | | | | | | Add new params to the 'baremetal node bios setting list' command to include support for the BIOS registry. The '--long' option will retrieve and display the additonal BIOS registry fields, the '--fields' option will retrieve and display selected fields. The header names when the '--long' or '--fields' options are not used match the existing functionality. Note that the 'baremetal node bios setting show' includes these fields by default with no changes. Change-Id: I9d6d2e42879e12cce8e1f2111be1a27f1a251de2
* Add support for 'boot_mode' and 'secure_boot' node resource fieldsCenne2021-07-262-2/+7
| | | | | | Story: 2008567 Task: 41709 Change-Id: Idde66fc37d5395e02ad95e6bf5342b555b479b8e
* Merge "Add missing unit tests for provision state commands"Zuul2021-06-111-0/+185
|\
| * Add missing unit tests for provision state commandsTang Chen2021-02-121-0/+185
| | | | | | | | | | | | | | There are several missing unit tests for provision state commands. This patch adds them. Change-Id: Ie5b08f682f3cb8fbc5016cb02e689bb1934798f3
* | Merge "Fix --fields network_data"Zuul2021-03-221-0/+1
|\ \
| * | Fix --fields network_dataDmitry Tantsur2021-03-171-0/+1
| | | | | | | | | | | | Change-Id: Id1c6f1a69161e3ddbb83c9229aa9be84a0c8c02d
* | | 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
* | | Merge "Support YAML files wherever JSON files are accepted"4.6.0Zuul2021-02-171-6/+13
|\ \ \
| * | | Support YAML files wherever JSON files are acceptedDmitry Tantsur2021-02-161-6/+13
| | |/ | |/| | | | | | | Change-Id: I98ca7ee19399dfa0499c5db71257dddb64a3cf61
* | | Clearer error message when unable to parse JSONDmitry Tantsur2021-02-161-1/+1
|/ / | | | | | | | | | | Using a non-existing file currently results in a cryptic message. Change-Id: I0489380d3a3ac1c9286e754c488df68f2b85c22f
* | Merge "Add 'deploy steps' for provisioning API"Zuul2021-02-122-12/+43
|\ \
| * | Add 'deploy steps' for provisioning APIAija Jauntēva2021-01-132-12/+43
| | | | | | | | | | | | | | | | | | | | | Story: 2008043 Task: 41409 Depends-On: https://review.opendev.org/c/openstack/ironic/+/768353 Change-Id: I6adffcf304ca090ff551280f3ec4c9d09a5537d8
* | | Support setting automated_clean to FalseDmitry Tantsur2020-12-231-0/+25
|/ / | | | | | | Change-Id: I683d3e2342142d6c87c4b270ccaf82445d22e9ef
* | 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
* Merge "Allow to pass global request id for remaining objects"Zuul2020-08-242-9/+21
|\
| * Allow to pass global request id for remaining objectsVladyslav Drok2020-06-232-9/+21
| | | | | | | | | | | | | | | | | | This change also allows passing ironic API microversion in places where it was not possible previously, for consistency. Story: 2007611 Task: 39602 Change-Id: I08a1d2227138e1c57ce865f159d0fc68ae95d8f0
* | Fix expected exception message in one testVladyslav Drok2020-08-121-1/+1
| | | | | | | | | | | | It seems to have changed recently. Change-Id: Ie84f5d9c3d657a49d4c443efdd695d69f5150142
* | Merge "Add port-uuid parameter to node vif attach"Zuul2020-06-291-0/+12
|\ \
| * | Add port-uuid parameter to node vif attachTzu-Mainn Chen2020-06-261-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | vif_attach has the capability to attach to a specific baremetal port. This change provides an explicit (and optional) parameter for the baremetal port UUID. Change-Id: Ie2bedda11ccf479db0cbc3dc51f100ae49f81bc2
* | | Merge "Allow to pass global request id in node methods"Zuul2020-06-251-14/+35
|\ \ \ | | |/ | |/|
| * | Allow to pass global request id in node methodsVladyslav Drok2020-06-231-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change also allows passing ironic API microversion in places where it was not possible previously, for consistency. Story: 2007611 Task: 39602 Change-Id: Ib364456c0fa9f09002750131615d97f4f9d0a4de
* | | Merge "Add global_request_id into the base client methods"Zuul2020-06-241-17/+52
|\ \ \ | |/ /
| * | Add global_request_id into the base client methodsVladyslav Drok2020-05-151-17/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change also allows passing os_ironic_api_version into create and delete methods, which was not possible previously. Story: 2007611 Task: 39602 Change-Id: I28e094df8ca0b1921fb8b6d503e8d09dfff064d7
* | | Merge "Allow to pass additional arguments into adapter"Zuul2020-06-242-2/+45
|\ \ \ | |/ / | | / | |/ |/|
| * Allow to pass additional arguments into adapterVladyslav Drok2020-05-152-2/+45
| | | | | | | | | | | | | | | | | | | | | | This change allows to pass additional_headers and global_request_id to keystoneauth's Adapter constructor. Also SessionClient now makes use of them while doing HTTP requests (apart from version negotitaion requests). Story: 2007611 Task: 39602 Change-Id: I75cb9311bf44cbf7f6f8737d1d37b2be503be3f9
* | Merge "Add `network_data` ironic node attribute support"Zuul2020-06-022-2/+51
|\ \ | |/ |/|
| * Add `network_data` ironic node attribute supportIlya Etingof2020-04-092-2/+51
| | | | | | | | | | | | | | | | | | | | | | Adds support for adding static network configuration to ironic node object by adding ``network-data`` attribute to "node" osc command. Depends-On: https://review.opendev.org/#/c/687910/ Change-Id: I771911cbc2cfaef2cbac841fc76971e042c010c1 Story: 2006691 Task: 37072
* | Get rid of the oslo.serialization dependencyDmitry Tantsur2020-05-042-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | It was used to smoothen out the difference in handling bytes in Python 2 and 3. Now that we only support Python 3, it can be replaced. A side effect of this change is that we no longer accept bytes in JSON. JSON does not support bytes, but this problem has been hidden due to oslo.serialization until now. The configdrive handling has been updated to account for that. Change-Id: I230b55db55bce08d46f5023ad7a3f6501c96d100
* | Use unittest.mock instead of third party mockSean McGinnis2020-04-3024-24/+28
| | | | | | | | | | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I805f5a4a901e410492c543c1857943ffd744ea35 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* | Check import orderRiccardo Pittau2020-04-218-8/+6
|/ | | | | | | | | | 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
* Merge "Add node lessee"Zuul2020-04-082-1/+88
|\
| * Add node lesseeTzu-Mainn Chen2020-04-032-1/+88
| | | | | | | | | | | | | | | | | | Add support to display and update the lessee field of a node. Change-Id: I4d163a6c4514810526cc24a83cb8414640be956e Story: 2006506 Task: 37930 Depends-On: https://review.opendev.org/706864
* | Get rid of the oslo.config requirementDmitry Tantsur2020-04-071-29/+18
|/ | | | | | | | | It is only used to populate the list of supported Session options. Use openstacksdk to create a session with all arguments instead. Since it's already a dependency of osc-lib, this changes adds no new dependencies, while substantially simplifying the code. Change-Id: I6100f94c18cbf3e90d4a6d3ec2a3fc74ebea53a5
* Bump hacking to 3.0.0Dmitry Tantsur2020-03-303-16/+17
| | | | | | | | The new version enables a lot of standard flake8 checks, so a few fixes are required. W503 is disabled as it conflicts with W504 and the latter seems to be preferred nowadays. Change-Id: I7c66f18be46af73a47919deef1f38c1f1d3cc741
* Add --no-retired list optionRiccardo Pittau2020-02-112-0/+46
| | | | | | | This patch adds the --no-retired option to list nodes that are not marked for retirement. Change-Id: If20529e12854e0e6a0a09515f3cbc2fbf3390e03