summaryrefslogtreecommitdiff
path: root/cinderclient/tests/test_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix order of arguments in assertEqual"Jenkins2014-08-281-1/+1
|\
| * Fix order of arguments in assertEqualKIYOHIRO ADACHI2014-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests used incorrect order assertEqual(observed, expected). The correct order expected by testtools is... def assertEqual(self, expected, observed, message=''): """Assert that 'expected' is equal to 'observed'. :param expected: The expected value. :param observed: The observed value. :param message: An optional message to include in the error. """ The string length of the sum of the results of repr(expected) and repr(observed) is greater than 70, then, MismatchError message is changed, as below. Ex.: raise mismatch_error MismatchError: !=: reference = '_123456789_123456789_bar' actual = '_123456789_123456789_123456789_123456789_123456789' Change-Id: Id02ddfb2ca03df7f432cff67a7bed182cccc4924 Closes-Bug: #1259292
* | Replace httpretty with requests-mockJamie Lennox2014-08-251-9/+9
|/ | | | | Blueprint: http-mock-testing Change-Id: I0cc96b54be6f32436e3c3b6a2edd0fc50e98d8e3
* Fix version discovery and auth_pluginsHaneef Ali2014-07-011-1/+32
| | | | | | | | | | V3Client support added version discovery and session supports. Most of the external auth system doesn't support this. This fix bypasses version discovery if the idenity service doesn't support that. Session is used only if no external auth plugin is used Change-Id: Ia84a2ad45940d35c5ef740727f5f7477c72ea9d4 Closes-Bug: #1333961
* Merge "Ambiguous option error should not appear if Arg is SUPPRESS"Jenkins2014-05-081-2/+45
|\
| * Ambiguous option error should not appear if Arg is SUPPRESSJuan Manuel Olle2014-04-161-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to backward compatibility there are arguments hidden. For example: --tenant-id and --tenant_id On those case the abbreviation mechanism if a user enter --tenant throw that there is an ambiguity but the helps only show --tenant-id as an optional argument. This change remove this ambiguity if one of them is hidden. Change-Id: I413f1ebafc68b3e02b5abadce1608e6d48207b01 Closes-Bug: #1252457
* | Update help strings for cinder clientDiane Fleming2014-04-231-3/+3
|/ | | | | | | | | | Make text consistent and clear. Add periods to end of sentences. Adjust test suite for change Closes-Bug: #1275881 Change-Id: I1dfde51636e8dc4b42e4c4810c27c1c4ac513d82
* Sync with global requirementsMonty Taylor2013-08-061-0/+13
| | | | Change-Id: Iccc824fef7dc7ae5675d6528a1ea33566e5f7eef
* Revert "Use exceptions from oslo"John Griffith2013-07-151-1/+1
| | | | | | This reverts commit a7cce08eab5e2e42275b84bd56127bd09b00f5bf Change-Id: I6c0047adbc33d0d6b5890f11853974578c36c78c
* Use exceptions from osloAlessio Ababilov2013-07-011-1/+1
| | | | | | | | | These exceptions can be used in novaclient, keystoneclient, glanceclient, and other client projects. Partially implements: blueprint common-client-library Change-Id: I43918316622b1c1d722872fe30199db6a3a7bb76
* python3: fix imports compatibilityChuck Short2013-06-121-2/+2
| | | | | | | | | | | | | Python3 reorganized the standard library and moved several functions to different modules. Six provides a consistent interface to them through the fake six.moves module. However, the urlparse, urllib2, etc modules have been combined into one module which Six does not support so do it the old fashioned way. Change-Id: Ieb7cc7ee2a4a97807873cfe2fc3fa0a5cf3c3980 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Start Gating on Pyflakes and HackingDirk Mueller2013-06-091-1/+0
| | | | | | | | Instead of globally ignoring Pyflakes and Hacking warnings, only blacklist those that occur frequently and fix the others. Start gating on those checks. Change-Id: Ice032c16d445ef08ef018bcdc5c221ab3c323755
* Move tests into cinderclient package.Monty Taylor2013-05-201-0/+68
tests/__init__.py implies a package in the global namespace called tests. That's not what these are - they're tests in the cinderclient namespace. Change-Id: I29c95bcd8747c3f5f21d5d900879c9b6b1c9a963