Skip to content

Instantly share code, notes, and snippets.

@ntata
Created May 6, 2016 19:35
Show Gist options
  • Save ntata/f8fd698dad99d49f7fd2667f97082e3b to your computer and use it in GitHub Desktop.
Save ntata/f8fd698dad99d49f7fd2667f97082e3b to your computer and use it in GitHub Desktop.
1 Tempest Plugin for Swift Functional Tests
2
3 This is an in-repo tempest plugin i.e. the plugin resides inside the swift repo
4 and requires to install swift inorder to install the plugin.
5
6 Directory Structre:~
7 The tempest plugin that resides at swift/test/tempest/ uses a symbolic link
8 to functional tests that reside at swift/test/functional. By this, we eliminate
9 the possibility of ostestr to pickup probe and unit tests when the top level
10 diretory of the tests i.e. swift/test is passed to test_discovery module.~
11 Further, we keep the path to Swift's functional tests intact and let them be
12 invoked normally using testr from the swift root diretory.
13
14 Alternatively, we can move the functional tests to under the tempest test to
15 avoid creation of symlink. In this case, we have to update the impotr paths of
16 all the functional tests and the functional tests path in testr config
17
18 Current implementation does not include any additional configurations for~
19 enabling tempest to invoke and successfully run Swift'd functional tests. If~
20 there is a need to add more config apart from what is offered in tempest.conf,
21 we need to create a config.py under swift/test/tempest and pass its object to~
22 the functional tests. Currently, the user credentials for running functional~
23 tests are picked up from /etc/swift/test.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment