Mercurial > kallithea
annotate MANIFEST.in @ 7277:0cf121eae2fe
tests: fix caching issue in test_ip_restriction_git
Following test failure is observed in
TestVCSOperations.test_ip_restriction_git:
―――――――――――――― TestVCSOperations.test_ip_restriction_git ――――――――――――――――――
kallithea/tests/other/test_vcs_operations.py:584: in test_ip_restriction_git
assert re.search(r'\b403\b', stderr)
E assert None
E + where None = <function search at 0x7fb9772da578>('\\b403\\b', "Cloning into '/tmp/kallithea-test-SZhXDz/vcs_operations-krPNvZ'...\n")
E + where <function search at 0x7fb9772da578> = re.search
------------------------- Captured stdout call ----------------------------
*** CMD git clone http://test_admin:test12@127.0.0.1:45291/vcs_test_git /tmp/kallithea-test-SZhXDz/vcs_operations-krPNvZ ***
stderr: "Cloning into '/tmp/kallithea-test-SZhXDz/vcs_operations-krPNvZ'...\n"
The test is setting up IP restrictions, verifying that access is no longer
possible, then clears the restriction. There already were sleeps after
clearing the restrictions, in order for the cache to expire and have the
setting take effect.
But there was no sleep on the enabling of the IP restriction, allowing
situations where the code would still run without restriction, and thus
allow the access, failing the test.
The failure has only been observed on test_ip_restriction_git, but the
change is also made for test_ip_restriction_hg.
The existing sleeps after restriction clearing are moved up to the 'finally'
clause to make it clear to which code they belong.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Sun, 06 May 2018 21:30:09 +0200 |
parents | dba4e770d4b6 |
children | b70ad5c7e706 |
rev | line source |
---|---|
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
1 include .coveragerc |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
2 include Apache-License-2.0.txt |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
3 include CONTRIBUTORS |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
4 include COPYING |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
5 include Jenkinsfile |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
6 include LICENSE-MERGELY.html |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
7 include LICENSE.md |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
8 include MIT-Permissive-License.txt |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
9 include README.rst |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
10 include dev_requirements.txt |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
11 include development.ini |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
12 include pytest.ini |
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
13 include requirements.txt |
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
14 include tox.ini |
7191
dba4e770d4b6
make-release: cleanup and fix bitrot
Mads Kiilerich <mads@kiilerich.com>
parents:
7099
diff
changeset
|
15 include package.json |
1078
2d7a94f3eaae
added docs to manifest, updated setup script
Marcin Kuzminski <marcin@python-works.com>
parents:
1077
diff
changeset
|
16 recursive-include docs * |
1143
0e6035a85980
added changes made in production branch back into beta
Marcin Kuzminski <marcin@python-works.com>
parents:
1078
diff
changeset
|
17 recursive-include init.d * |
6017
7894a440e134
db: add Alembic "migration environment"
Søren Løvborg <sorenl@unity3d.com>
parents:
6015
diff
changeset
|
18 recursive-include kallithea/alembic * |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
19 include kallithea/bin/ldap_sync.conf |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
20 include kallithea/lib/paster_commands/template.ini.mako |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
21 recursive-include kallithea/i18n * |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
22 recursive-include kallithea/public * |
7099
1969f7dfb6b0
move package.json to root directory
domruf <dominikruf@gmail.com>
parents:
7080
diff
changeset
|
23 recursive-include node_modules/bootstrap * |
4186
7e5f8c12a3fc
First step in two-part process to rename directories to kallithea.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1512
diff
changeset
|
24 recursive-include kallithea/templates * |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
25 recursive-include kallithea/tests/fixtures * |
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
26 recursive-include kallithea/tests/scripts * |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
27 include kallithea/tests/models/test_dump_html_mails.ref.html |
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
28 include kallithea/tests/performance/test_vcs.py |
4987
ff08d3cf9aef
manifest: include (almost) all repo files in the release tar
Mads Kiilerich <madski@unity3d.com>
parents:
4569
diff
changeset
|
29 include kallithea/tests/vcs/aconfig |
6790
8cea7986ed79
manifest: update file name list - for example, fix the path to the template.ini.mako config template
Mads Kiilerich <mads@kiilerich.com>
parents:
6555
diff
changeset
|
30 recursive-include scripts * |