Commit Graph

8 Commits

Author SHA1 Message Date
ricolin 76891d4a99 Remove ReloadOnSighupTest
Most jobs now run with apache+uwsgi, so the test has no significance.
Also we don't test it anymore.

Depends-On: I022077c92bc10e908c7fe549ed555ad0194e0704
Change-Id: I6d6e025f60867e5128704f54e5e793762f6c1b8a
2018-01-26 17:51:00 -05:00
rabi 4f17a957a4 Fix some functional tests for py3
This fixes test_reload_on_sighup and test_stack_outputs
for py3.

Change-Id: Ibfb8f4eca0391b13bfec7c1e7352f8c31f8adb84
2017-03-28 13:00:19 +00:00
Thomas Herve 3a7aee527e Fix config file management in tests
This fixes some tests that tried to set options on python3.

Change-Id: Ib2cd36b318b4f8487045c5142fa3c200db61bc79
2017-02-24 10:43:56 +00:00
rabi 6ef5fa9adc Make API services with apache the default
Run api services with httpd+mod_wsgi in devstack.
This also skips sighup tests conditionally.

Change-Id: I6631f1fecb906ae0c4bb96a2f868117eff045aa0
Closes-Bug: #1656617
2017-01-15 11:53:25 +05:30
Peter Razumovsky 48387e92a0 Fix race condition in reload_on_sighup functional
Race condition appears in next situation:

  1. First thread calls _set_config_value for one section.
  2. Second thread calls _set_config_value for another section.
  3. First thread. Config option value set, calls
     open(self.config_file, 'wb'), which erases all file content.
  4. Second thread. In previous point moment second thread tries to
     set config option value to self.config_file, which is empty (see 3).
     So, NoSectionError exception raised.

This patch adds ten retries for setting option value, if NoSectionError
raised, i.e. try to wait until self.config_file is busy.

Change-Id: Ic54ea287ebe4724511f75d42677cae5dfdec4e57
Closes-bug: #1535766
2016-03-15 17:58:31 +00:00
Rabi Mishra 25becbcbf4 Add config entries to skip integration tests
This adds options to skip scenario and functional tests.
You can either skip the complete set of tests or list of specific
tests.

Following new config options are added:

`skip_scenario_tests` -  Skip all scenario tests
`skip_functional_tests` - Skip all functional tests
`skip_functional_test_list` - List of functional tests to skip
`skip_scenario_test_list` - List of scenario tests to skip
`skip_test_stack_action_list` - List of actions in tests to skip

Change-Id: I7a5233f5db1f065ccee5a97408c72203c108a656
Depends-On: I25c5e853f0499b88f2803b077d19e132140908f1
2015-08-07 07:29:20 +00:00
Oleksii Chuprykov 205fe94b87 Wait until child process will be killed
It might take a wile to kill worker after receiving of sighup because
of worker can be busy at the time, so the check of the workers count
can be failed during some amount of time.
Add timeout for checking.

Change-Id: Ibdd29b07960b2f765b03ea9458b6e85cd6786fd0
Closes-bug: #1472531
2015-07-13 12:53:26 +03:00
tyagi 2cf8aa6fad Update wsgi.py to support reload from conf on SIGHUP
These changes are taken from the glance wsgi.py from where
heat wsgi.py originated. These changes are to support reload
of the service with new configuration parameters when SIGHUP
is received.

The reload of conf will only work if the server is running
with workers. If workers is 0 then it wont reload.

Co-Authored-By: Tetiana Lashchova <tlashchova@mirantis.com>
Change-Id: I7fd391209591c149fb95136d92dd1d82cfb7a6de
Closes-Bug: #1449807
Closes-Bug: #1276694
2015-07-06 17:27:28 +03:00