diff options
author | Alistair Coles <alistairncoles@gmail.com> | 2022-04-19 14:03:39 +0100 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2022-06-01 21:46:41 -0700 |
commit | 5d9f1f009c96e3049941d804b848f3166caac747 (patch) | |
tree | da6e88e256dc61fda1479cd7079632684ad9d7bf /doc | |
parent | 0c8a0886649f86570f935abce9feec9ab2261fcd (diff) | |
download | swift-5d9f1f009c96e3049941d804b848f3166caac747.tar.gz |
s3api tests: allow AWS credential file loading
When switching the s3api cross-compatibility tests' target between a
Swift endpoint and an S3 endpoint, allow specifying an AWS CLI style
credentials file as an alternative to editing the swift 'test.conf'
file.
Change-Id: I5bebca91821552d7df1bc7fa479b6593ff433925
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/development_guidelines.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/source/development_guidelines.rst b/doc/source/development_guidelines.rst index d6cc90b55..979a728e0 100644 --- a/doc/source/development_guidelines.rst +++ b/doc/source/development_guidelines.rst @@ -184,6 +184,26 @@ using config files found in ``$HOME/my_tests`` and policy 'silver':: SWIFT_TEST_POLICY=silver tox -e func +S3 API cross-compatibility tests +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The cross-compatibility tests in directory `test/s3api` are intended to verify +that the Swift S3 API behaves in the same way as the AWS S3 API. They should +pass when run against either a Swift endpoint (with S3 API enabled) or an AWS +S3 endpoint. + +To run against an AWS S3 endpoint, the `/etc/swift/test.conf` file must be +edited to provide AWS key IDs and secrets. Alternatively, an AWS CLI style +credentials file can be loaded by setting the ``SWIFT_TEST_AWS_CONFIG_FILE`` +environment variable, e.g.:: + + SWIFT_TEST_AWS_CONFIG_FILE=~/.aws/credentials nosetests ./test/s3api + +.. note:: + When using ``SWIFT_TEST_AWS_CONFIG_FILE``, the region defaults to + ``us-east-1`` and only the default credentials are loaded. + + ------------ Coding Style ------------ |