summaryrefslogtreecommitdiff
path: root/heatclient
Commit message (Collapse)AuthorAgeFilesLines
* Accept sha256 hash for swift tempurlTakashi Kajinami2022-07-181-1/+1
| | | | | | | | | | | Since swiftclient 4.0.1, sha256 is used when generating tempurl signature[1]. This change extends the regex pattern to assert signatues so that it can accept both sha1(old) and sha256(current). [1] https://review.opendev.org/c/openstack/python-swiftclient/+/845157 Change-Id: I1589adbe4501b1c678f197b9c0f67b716c341b2d
* Merge "Remove six"Zuul2022-06-1337-227/+180
|\
| * Remove sixTakashi Kajinami2022-05-0937-227/+180
| | | | | | | | | | | | | | This library no longer supports Python 2, thus usage of six can be removed. Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
* | Encode urls in unit testsPavlo Shchelokovskyy2022-06-132-3/+6
|/ | | | | | | | currently several unit tests are failing when path from where they run contains url-quotable characters like '@', which apparently is possile in e.g. Jenkins. Change-Id: I44eab3f4a384a27f34e4066651baafa6a9489f49
* Replace deprecated import of ABCs from collectionsTakashi Kajinami2021-12-161-3/+3
| | | | | | | | ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. Closes-Bug: #1936667 Change-Id: Ie312cb884537ec541bf2111fe8a647e939b6519e
* Fix test and lower constraintsrabi2021-12-161-1/+1
| | | | | | | This fixes failures for PyYAML new version and lower constraints. Change-Id: Iba863242365c4be63495600b741513c2ca0ea9b0
* Replace oslo_utils.fnmatch with fnmatch2.4.0Takashi Kajinami2021-07-061-2/+1
| | | | | | | | | | | The oslo_utils.fnmatch module was added to solve an issue in py2.7 but it is no longer required because py2.7 is no longer supported. The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's fnmatch module should be used instead. [1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b Change-Id: I95535adeb45363500b3ed9729bb61cb4308d23b9
* Merge "Stop to use the __future__ module."2.3.0Zuul2020-11-161-2/+0
|\
| * Stop to use the __future__ module.Hervé Beraud2020-06-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: Ifbca4f0b72663e026a92061c213e728cf755772c
* | Python 3.9: base64.encodestring is removedThomas Goirand2020-10-161-1/+1
| | | | | | | | | | | | | | We should use base64.encodebytes instead, which is avaiable since Python 3.2. Change-Id: Ic945aff08d00bf2e602964cb1e25ea045e645b17
* | [goal] Migrate testing to ubuntu focalGhanshyam Mann2020-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. - noqa for pep8 C901 check. Closes-Bug: #1886298 Story: #2007865 Task: #40186 [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal Change-Id: I67b4957cea1ccbd5cdc0314d2eaddef0c24f7dfc
* | Native Zuul v3 version of the functional legacy jobvictoria-em2.2.1Luigi Toscano2020-08-192-51/+2
| | | | | | | | | | | | | | | | | | | | | | Pretty straightforward conversion, and remove the old scripts which are not needed anymore. Also, even though OS_TENANT_NAME is still exported, read OS_PROJECT_NAME as first choice. Depends-On: https://review.opendev.org/746235 Change-Id: I51314da6d6bf0467308f3598fa9e666655e286d0
* | Use unittest.mock instead of third party mockjacky062020-05-0627-29/+43
|/ | | | | | | 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: I5cf252c1a22977d3c87898e723e5001cc87a0d87
* Update hacking for Python3ussuri-em2.1.0Andreas Jaeger2020-03-318-11/+14
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: I82c745f5b1236844deec4538be84037a64eebeee
* Merge "Add files-container option for stack create and update"Zuul2020-02-214-31/+91
|\
| * Add files-container option for stack create and updaterabi2018-08-294-31/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If files-container option is specified: - All template/env files would be fetched by the heat engine relative to the files_container and no local files other than the root template would be sent to server. - Relative path of environment files would be sent in the environment_files list. Also adds the option to template validate. Change-Id: I1a703ab8798a003365be650886bb78be5af472b7 Story: #1755453 Task: 19319
* | Merge "Allow to set poll interval to OSC stack create"Zuul2020-02-212-1/+28
|\ \
| * | Allow to set poll interval to OSC stack createPavlo Shchelokovskyy2019-09-252-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In certain scenarios the default poll interval of 5s used by `openstack stack create --wait` command is too short. Setting the poll interval was supported in heat CLI with `heat stack-create --poll N` but is missing in OSC plugin. This patch adds an optional argument `--poll N` (N defaults to 5) to the `openstack stack create` command. Change-Id: Id279d92ea890032f280e453b795ede2818ffbb8c Story: 2004863 Task: 29106
* | | Merge "Cleanup of .keys() from dict_object.keys() *in* operator"Zuul2020-02-214-4/+4
|\ \ \
| * | | Cleanup of .keys() from dict_object.keys() *in* operatorjacky062019-12-054-4/+4
| |/ / | | | | | | | | | Change-Id: I49bb58e5dc2618ee02424315e4e3bf1057a77068
* | | Remove dependency on mox3Zane Bitter2020-02-101-5/+0
| | | | | | | | | | | | Change-Id: Ie6017be8293b36d1aedfb5cce7b76c85a8b95b63
* | | Remove mox usage from test_shellZane Bitter2020-02-102-291/+121
| | | | | | | | | | | | Change-Id: I4e1dbb55dbc01ebf18ca80aa63ae492a1a8f47ae
* | | tests: Convert 'test_resources' to mockStephen Finucane2020-01-301-38/+23
| | | | | | | | | | | | | | | | | | | | | This is the smaller of the two. Change-Id: I2a483698209e7c4ba2da074ffd7b9466f17937e2 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | tests: Pre-mox removal cleanupStephen Finucane2020-01-301-43/+47
|/ / | | | | | | | | | | | | | | Move some stuff around in order to make the later migration easier to parse. Change-Id: I1404a5b23fd1852be9d04661c2a0ba12c4bb78ec Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | Merge "Ignore not found when delete in test"Zuul2019-09-051-1/+8
|\ \
| * | Ignore not found when delete in testricolin2019-02-031-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Ignore not found when delete stack or stack snapshot in tests. Story: #1737100 Task: #19354 Change-Id: I6c980b68023b33dc318c5d9506c2cac5866c4924
* | | Merge "Update stack_id clearify for heat client functions"1.18.0Zuul2019-08-053-16/+34
|\ \ \
| * | | Update stack_id clearify for heat client functionsricolin2019-08-033-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | most of our client major function require stack_id. We should provide more specific information (at lest in function description) to clearify that it's allowed to feed in stack name to `stack_id` too. For example, both `heat.stacks.get($Stack_UUID)` and `heat.stacks.get($Stack_Name)` works. Change-Id: I4428097140e0391a77679f5c69e00966f249efd7
* | | | Fix unit testsZane Bitter2019-06-241-1/+1
| | | | | | | | | | | | | | | | Change-Id: I44bbafa95d6eeb3550aac5b480391a3fc7ddaef5
* | | | Fix missing print formatzhufl2019-05-212-3/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | This is to: 1. Add missing print format for "%(hook_type)". 2. Add ws between words in log message "notavailable". Change-Id: Iaee8697c95f66bff0536db9a266158a3cbc89412
* | | Set Content-Type header explictly for SessionClientRabi Mishra2019-03-152-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SessionClient is subclassed from keystoneauth LegacyJsonAdapter. LegacyJsonAdapter does not set the Content-Type explicitly and results in decodeing issues in some cases. Change-Id: Idf23022b394607c332490331fc4b216de6ff1313 Story: 2005237 Task: 30027
* | | Merge "Set X-Region-Name in header when using SessionClient"Zuul2018-12-191-0/+4
|\ \ \
| * | | Set X-Region-Name in header when using SessionClientrabi2018-09-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't seem to set the header for region name when using session client. It's used to look for service endpoints in the catalog. Change-Id: I10cfdfb88b3f09e4ceb69b1020e82c4eba733804 Story: #2003806 Task: 26550
* | | | Merge "Replace deprecated "decodestring()" by "decodebytes()""Zuul2018-11-281-8/+8
|\ \ \ \
| * | | | Replace deprecated "decodestring()" by "decodebytes()"Vu Cong Tuan2018-11-021-8/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | decodestring() is deprecated alias of decodebytes() https://docs.python.org/3/library/base64.html#base64.decodestring The same has been done for nova: https://review.openstack.org/#/c/610401/ Change-Id: Ie069aaaff1646a70f3717fc6f9c7252949c4e5fd
* | | | Merge "Load files from adopt file when adopt stack"Zuul2018-11-204-9/+76
|\ \ \ \ | |/ / / |/| | |
| * | | Load files from adopt file when adopt stackricolin2018-07-204-9/+76
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Add files from adopt file into create fields. This allow us to adopt nested stack which the template defined in files. Story: #1700744 Task: #17263 Change-Id: I2b473791186949d49be59ee790185b3e394c7000
* | | Don't change pyyaml behaviorMehdi Abaakouk2018-09-041-4/+13
| |/ |/| | | | | | | | | | | | | | | | | | | When an application load heatclient, the default pyyaml behavior change. This ensures only heatclient use it's custom pyyaml stuffs. This currently breaks the telemetry gate if the tempest heat plugin is loaded with the telemetry. Change-Id: I5d7d1a1999e762f2285a0effc081252570f24de8
* | Merge "Enable some off-by-default checks"Zuul2018-07-201-2/+1
|\ \
| * | Enable some off-by-default checksblue552017-06-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some of the available checks are disabled by default, like: [H106] Don’t put vim configuration in source files [H203] Use assertIs(Not)None to check for None Change-Id: I815f189258356cb911d1e232b6f53c864e53c602
* | | Merge "Add heat CLI test for stack-show"Zuul2018-07-132-0/+12
|\ \ \
| * | | Add heat CLI test for stack-showGeorgy Dyuldin2018-03-262-0/+12
| | |/ | |/| | | | | | | Change-Id: I35b17be14438e6de6fffd0396bab9989ef812a2a
* | | Merge "Fix log_http_request function in http module"Zuul2018-07-051-1/+4
|\ \ \
| * | | Fix log_http_request function in http moduleliyi2018-02-011-1/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I043f90541c8d2d604f3edb4e7ea082ec8adb4b25 Closes-Bug: #1746669
* | | | Merge "Update the documentation link for doc migration"Zuul2018-06-291-1/+1
|\ \ \ \
| * | | | Update the documentation link for doc migrationlingyongxu2018-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is proposed according to the Direction 10 of doc migration. https://etherpad.openstack.org/p/doc-migration-tracking Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com> Change-Id: I9675af92149ab126534f541534b50a02688e5337
* | | | | Handle token_endpoint auth type in osc pluginrabi2018-06-111-1/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There can be situations where the auth_type=token_endpoint, we should use the appropriate attributes from the auth plugin when creating heatclient. Change-Id: Ic929f6ceaa92002eb2b3443934d1f541758e4dda Closes-Bug: #1632341
* | | | Mark stacks returned by get loadedThomas Herve2018-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling stacks.get, mark the returning stacks as loaded, so that attribute retrieval works right away. If not, any getattr on the Stack will call get() which will request the stack again (and ignore things like resolve_outputs). Change-Id: I3a3f25aa0c6f88e7e4274107c0578fd30dc9f155 Related-Bug: #1774958
* | | | Use assertRegex instead of assertRegexpMatchesVu Cong Tuan2018-04-111-17/+17
| |/ / |/| | | | | | | | | | | | | | | | | In Python3, assertRegexpMatches & assertNotRegexpMatches are deprecated in favor of assertRegex and assertNotRegex Change-Id: Ied56eda65800d72105ef2e2b683c6ce71cda6c4c
* | | Merge "Document osc CLI"Zuul2018-03-011-9/+10
|\ \ \