You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2016/11/02 16:44:46 UTC

[trafficserver-qa] 04/04: Add example case using feature_requirements

This is an automated email from the ASF dual-hosted git repository.

jacksontj pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver-qa.git

commit 7e99eb3802d052d7eca87b3b9fb94f9008dc940b
Author: Thomas Jackson <ja...@gmail.com>
AuthorDate: Tue Nov 1 08:39:46 2016 -0700

    Add example case using feature_requirements
---
 examples/environment_cases.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/examples/environment_cases.py b/examples/environment_cases.py
index 6f202f6..d119959 100644
--- a/examples/environment_cases.py
+++ b/examples/environment_cases.py
@@ -51,6 +51,15 @@ class OverrideConfigureFlags(tsqa.test_cases.EnvironmentCase):
     }
 
 
+class FeatureRequirement(tsqa.test_cases.CloneEnvironmentCase):
+    '''
+    CloneEnvironmentCase will clone an environment (instead of building). You can
+    declare dependencies on various features in trafficserver based on the output
+    from traffic_layout. If the requirements aren't met your test will be skipped
+    '''
+    feature_requirements = {'TS_HAS_WCCP': 0}
+
+
 class ConfiguredCase(tsqa.test_cases.EnvironmentCase):
     '''
     This is the trivial example of a TestCase. The parent class (in this case
@@ -75,6 +84,3 @@ class ConfiguredCase(tsqa.test_cases.EnvironmentCase):
             'proxy.config.log.squid_log_enabled': 1,
             'proxy.config.log.squid_log_is_ascii': 1,
         })
-
-
-

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.