From f76ac7aaa320861318efc41858ba3f6bd499e096 Mon Sep 17 00:00:00 2001 From: Ivan Koveshnikov Date: Thu, 15 Mar 2018 01:20:03 +0500 Subject: [PATCH] func tests: mark test TestPurge as expected to fail until #788 is solved --- tempesta_fw/t/functional/cache/test_purge.py | 32 +++++++++++--------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/tempesta_fw/t/functional/cache/test_purge.py b/tempesta_fw/t/functional/cache/test_purge.py index 10a93bf74..6d4a59d30 100644 --- a/tempesta_fw/t/functional/cache/test_purge.py +++ b/tempesta_fw/t/functional/cache/test_purge.py @@ -1,7 +1,8 @@ """Functional tests of caching different methods.""" from __future__ import print_function -from helpers import tf_cfg, deproxy, chains +import unittest +from helpers import tf_cfg, chains from testers import functional __author__ = 'Tempesta Technologies, Inc.' @@ -21,20 +22,23 @@ class TestPurge(functional.FunctionalTest): def chains(self): uri = '/page.html' - result = [# All cacheable method to the resource must be cached - chains.proxy(method='GET', uri=uri), - chains.proxy(method='HEAD', uri=uri), - chains.cache(method='GET', uri=uri), - chains.cache(method='HEAD', uri=uri), - - chains.cache(method='PURGE', uri=uri), - # All cached responses was removed, expect re-caching them - chains.proxy(method='GET', uri=uri), - chains.proxy(method='HEAD', uri=uri), - chains.cache(method='GET', uri=uri), - chains.cache(method='HEAD', uri=uri) - ] + result = [ + # All cacheable method to the resource must be cached + chains.proxy(method='GET', uri=uri), + chains.proxy(method='HEAD', uri=uri), + chains.cache(method='GET', uri=uri), + chains.cache(method='HEAD', uri=uri), + + chains.cache(method='PURGE', uri=uri), + # All cached responses was removed, expect re-caching them + chains.proxy(method='GET', uri=uri), + chains.proxy(method='HEAD', uri=uri), + chains.cache(method='GET', uri=uri), + chains.cache(method='HEAD', uri=uri) + ] return result + @unittest.expectedFailure def test_purge(self): + """"Issue #788 must be resolved to make the test pass""" self.generic_test_routine(self.config, self.chains())