summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Have `delete --all` imply `--versions` for the CLITim Burke2020-10-161-3/+2
| | | | Change-Id: Id5a6d4cef3d4ed76c897a099a62a4ba3ed8f8dab
* Merge "Close connections created when calling module-level functions"Zuul2020-10-152-2/+5
|\
| * Close connections created when calling module-level functionsTim Burke2020-10-132-2/+5
| | | | | | | | | | | | | | | | Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com> Change-Id: Id62e63afc6f2ffa32eb8640787c78559481050f9 Related-Change: I200ad0cdc8b7999c3f5521b9a822122bd18714bf Related-Bug: #1873435 Closes-Bug: #1838775
* | Merge "tests: Make test_delete_container_versions less flakey"Zuul2020-10-141-1/+1
|\ \
| * | tests: Make test_delete_container_versions less flakeyTim Burke2020-09-211-1/+1
| |/ | | | | | | | | | | | | Hammering that test in a tight loop, I'd often see failures due to ordering issues. Make the delete single-threaded to avoid that. Change-Id: Iff45be32a7c3f258214cce78001fd33ad0a39b8c
* | Merge "Add cacert test config option"Zuul2020-09-234-2/+15
|\ \
| * | Add cacert test config optionTim Burke2020-04-134-2/+15
| | | | | | | | | | | | Change-Id: I3936f862e0fef176cad34f277598b136a40de1eb
* | | Include transaction ID in ClientException.__str__Tim Burke2020-09-091-0/+17
| |/ |/| | | | | | | | | | | | | | | | | It's fairly annoying getting a traceback in swift's probe tests then only having a URL and status code to go searching for in logs. Leave the shell.py output untouched, though, since we output the transaction ID on a new line anyway. Change-Id: Idb849848ec08b6c04812b088467c9a687c2a7e27
* | Speed up test_lazy_connectionsTim Burke2020-07-281-1/+1
| | | | | | | | | | | | It doesn't really need to sleep a full second. Change-Id: Ida80f0c5a983edb33a93662badb6aa1a25f9a27c
* | Clean up some warningsTim Burke2020-06-171-26/+26
| | | | | | | | Change-Id: Iae149533d04c7b173c4ef88fb775f5fe13c16466
* | Application credential support follow-upTim Burke2020-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the recent v3applicationcredentials patch, if you have your environment variables set up to work with python-openstackclient using swiftclient's v1password plugin, swiftclient won't work: $ env | egrep '^(OS|ST)_' ST_KEY=testing ST_USER=test:tester OS_AUTH_URL=http://saio/auth/v1.0 ST_AUTH=http://saio/auth/v1.0 OS_USERNAME=test:tester OS_AUTH_TYPE=v1password OS_PASSWORD=testing $ openstack object store account show +------------+----------------------------+ | Field | Value | +------------+----------------------------+ | Account | AUTH_test | | Bytes | 0 | | Containers | 11 | | Objects | 0 | +------------+----------------------------+ $ swift stat Only "v3applicationcredential" is supported for --os-auth-type We don't really want to allow (and mostly ignore) arbitrary OS_AUTH_TYPE values, though -- there are a whole bunch of plugins we don't remotely support. But it seems OK to allow any of the password plugins; while we won't actually use them (currently), we provide roughly equivalent functionality. Handful of other drive-bys: * Use a None sentinel to determine whether keystoneauth1 is installed instead of trying to catch a NameError. * Clarify error state when keystoneauth1 is not installed. * Fix a typo: "sses" -> "sess". Change-Id: Id7ea9c3ea8278ae86a04d057a472a8f8a87b8eae Related-Change: I9190e5e7e24b6a741970fa0d0ac792deccf73d25
* | Merge "Support v3 application credentials auth."Zuul2020-05-132-0/+103
|\ \
| * | Support v3 application credentials auth.Charles Hsu2020-04-162-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use keystoneauth1 application credential plugin and session to fetch a token and endpoint catalog url. $ swift --os-auth-url http://172.16.1.2:5000/v3 --auth-version 3\ --os-application-credential-id THE_ID \ --os-application-credential-secret THE_SECRET \ --os-auth-type v3applicationcredential auth Change-Id: I9190e5e7e24b6a741970fa0d0ac792deccf73d25 Closes-Bug: 1843901 Closes-Bug: 1856635
* | | Fixed capability discovery endpoint hardcodeIvan Kolodyazhny2020-04-241-0/+32
|/ / | | | | | | | | | | | | | | | | | | It fixes get_capabilities() method to process correctly endpoints like: 'https://<ip>:<port>/v1', 'https://<ip>:<port>/swift/v1'. Co-Authored-By: Daniel Cech <dcech@mirantis.com> Change-Id: Ib4037d0b49da1bce959947100629370805f510d5 Closes-bug: #1712358
* | Change recommended test config to use auth_uriTim Burke2020-04-131-8/+2
|/ | | | | | | ...instead of piecing it together from auth_host, auth_port, auth_ssl, auth_prefix, and (sort of, sometimes) auth_version. Change-Id: Ie9c36e778d6a03f905899074d7136b767812ea11
* Improve `list --versions` outputTim Burke2020-04-101-5/+48
| | | | | | | | | | Have `--versions` imply `--long` and add a new column for version_id. Also, have version-aware listings show all versions as "null" on old Swifts that don't support object versioning (or when object versioning is not enabled). Change-Id: I0e009bce2471d1c140ac9b83700591cb355fee3f
* object versioning featuresClay Gerrard2020-04-082-31/+448
| | | | | | | | | | * add --versions to list * add --versions to delete * add --version-id to stat * add --version-id to delete * add --version-id to download Change-Id: I89802064921778fee7efe57c7d60c976cdde3a27
* Add test for bulk-delete-attempt-counter fixTim Burke2019-11-151-1/+21
| | | | | | Change-Id: Ifdeefeb4a5a3fc6895bd6cda695684de02f8c602 Related-Change: If4af9141fe4f3436a4e9e0e2dfc24c6ec7292996 Related-Bug: #1852808
* v1auth: support endpoint_data_for() apiTim Burke2019-11-063-62/+208
| | | | | | | | ...so we can be used with openstacksdk. Also, add a few functests that use openstacksdk. Change-Id: Ie6987f5de48914ec8932254cde79a973a0264877
* Rename "tests" directory to be "test" like in the swift repoTim Burke2019-11-0613-0/+12224
In addition to being less confusing for devs, this lets us actually run tempauth tests in swiftclient dsvm jobs. The job definition (over in the swift repo) specifies test/sample.conf, which does not exist in this repo. As a result, those tests would skip with SKIPPING FUNCTIONAL TESTS DUE TO NO CONFIG Change-Id: I558dbf9a657d442e6e19468e543bbec855129eeb