summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/object
Commit message (Collapse)AuthorAgeFilesLines
* Before writing object data to stdout, re-open it in binary modeTim Burke2019-04-101-2/+20
| | | | | | | Otherwise, you can hit TypeErrors on Python3. Change-Id: I9a891508886feddac3982ce593bd95130392e035 Closes-Bug: 1775482
* Use flake8-import-order pluginAkihiro Motoki2017-08-172-0/+2
| | | | | | | | | | | | | | | | In reviews we usually check import grouping but it is boring. By using flake8-import-order plugin, we can avoid this. It enforces loose checking so it sounds good to use it. This flake8 plugin is already used in tempest. Note that flake8-import-order version is pinned to avoid unexpected breakage of pep8 job. Setup for unit tests of hacking rules is tweaked to disable flake8-import-order checks. This extension assumes an actual file exists and causes hacking rule unit tests. Change-Id: I12b596820727aeeb379bee16c2bc993dee9eb637
* Allow objects to be streamed to stdoutHonza Pokorny2017-07-052-0/+47
| | | | Change-Id: Icd8de6b2122fe77926d93da9bda08f56c3672a7a
* Add option "--name" to command "openstack object create"Rajasi Kulkarni2016-09-262-0/+24
| | | | | | | | | | | Option "--name" can be used to set as the object name of the file to be uploaded in the container. Similar to option "--object-name" in command "swift upload". Added unit test case to ensure an exception is raised when using option "--name" for uploading multiple objects. Change-Id: Ied7827841f6ca1cf9d4b48e304cbe5d62eda38ab Closes-Bug: #1607972
* move unit tests to new "unit" test moduleSteve Martinelli2016-09-087-0/+1404
this will better isolate the unit tests from the functional tests. unfortunately, the "integration" tests had to be lumped into the "unit" tests since we need the separation in testr.conf Change-Id: Ifd12198c1f90e4e3c951c73bfa1884ab300d8ded