df0b7e5737
Configure the replica server in the test to use a short PRC timeout. The instability appears to arise as follows. In starting the replica Congress instance: If Congress API process starts before Congress policy engine process, the call to check Congress started is processed by the API process, which makes an RPC call to the policy engine process. But the policy engine process may be a bit slower to start. In that case, the RPC call may never reach the policy engine process even if the policy engine process starts up just a few seconds later. So the call times out according to the default 60 seconds, by which point the entire retry period of the test is used up and the test fails. In this fix, the RPC timeout is set to a short 10 seconds on the replica instance. That way, if the policy engine has not started by the time of the first RPC call, the RPC call would time out with time remaining on the test retry period for further retry. The test retry period is also increased because occassionally the replica policy engine takes longer than the allotted 60s to start up. Change-Id: Ied8c95c4a60a3b6ea2c617fdfe94d4d7cf7a5822 |
||
---|---|---|
congress_tempest_plugin | ||
doc/source | ||
playbooks/legacy | ||
releasenotes | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
__init__.py | ||
babel.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
congress-tempest-plugin
Tempest Plugin for Congress project. This project covers Tempest tests for Congress project.
- Free software: Apache license
- Documentation: https://docs.openstack.org/congress-tempest-plugin/latest
- Release notes: https://docs.openstack.org/releasenotes/congress/
- Source: https://git.openstack.org/cgit/openstack/congress-tempest-plugin
- Bugs: https://bugs.launchpad.net/congress
Tempest Integration
To list all Congress tempest cases, go to tempest directory, then run:
$ testr list-tests congress
To run congress tempest plugin tests using tox, go to tempest directory, then run:
$ tox -eall-plugin congress
And, to run a specific test:
$ tox -eall-plugin congress_tempest_plugin.tests.scenario.test_congress_basic_ops.TestPolicyBasicOps.test_policy_basic_op