changeset 859:6bb9d77670bd

Tests bugfixes
author Devel 2
date Wed, 24 Jan 2018 10:35:07 +0100
parents 5eb20e7371dc
children 1c3bc5ba2772
files stress-tester/src/test/java/com/passus/st/client/http/filter/HttpBasicAuthLoginFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCounterFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFormFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpHostRewriterFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpLogoutFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMarkFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMatchFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMessageModificationFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMvelFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSessionCookieFilterTest.java stress-tester/src/test/java/com/passus/st/client/http/filter/HttpZoneFilterTest.java
diffstat 13 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpBasicAuthLoginFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpBasicAuthLoginFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -119,7 +119,7 @@
 
     @Test
     public void testConfigureAndFilterOutbound() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: basicLogin\n"
                 + "      applyIf:\n"
                 + "          \"@req.uri\": {$contains: \"index2\"}\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCounterFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCounterFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -42,7 +42,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: counter\n"
                 + "      name: 'filter x'\n"
                 + "      limit: 3\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -141,7 +141,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: csrf\n"
                 + "      extract:\n"
                 + "        header: \"csrf-header\"\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFormFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpCsrfFormFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -65,7 +65,7 @@
 
     @Test
     public void testConfigure() throws IOException, NodeException {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: csrfForm\n"
                 + "      inputName: '_token'\n"
                 + "      contentTypesToScan: ['text/html', 'application/xhtml+xml', 'application/xml']\n";
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpHostRewriterFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpHostRewriterFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -82,7 +82,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: host\n"
                 + "      hostMap:\n"
                 + "        \"example.com\": \"example.org:8088\"\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpLogoutFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpLogoutFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -83,7 +83,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: logout\n"
                 + "      invalidateSession: false\n"
                 + "      applyIf: {\"@req.uri\": \"/logout\"}\n";
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMarkFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMarkFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -48,7 +48,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: marker\n"
                 + "      rules:\n"
                 + "        - category: category1\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMatchFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMatchFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -93,7 +93,7 @@
 
     @Test
     public void testConfigureAndFilterOutbound() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: matcher\n"
                 + "      matches:\n"
                 + "          '@req.uri': {$contains: 'test'}\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMessageModificationFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMessageModificationFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -158,7 +158,7 @@
 
     @Test(enabled = true)
     public void testConfigureAndFilterOutbound() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: modifyMessage\n"
                 + "      operations:\n"
                 + "        removeHeader: Header1\n"
@@ -209,7 +209,7 @@
 
     @Test(enabled = true)
     public void testComplexExpression() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: modifyMessage\n"
                 + "      operations:\n"
                 + "        setQueryParam: \n"
@@ -237,7 +237,7 @@
                 .header("Header1", "Header1Value1")
                 .build();
 
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: modifyMessage\n"
                 + "      applyIf:\n"
                 + "        \"@req.uri\": /path/test\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMvelFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpMvelFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -38,7 +38,7 @@
     public void testConfigure() throws Exception {
         File file = ResourceUtils.getFile("mvel/return1.mvel");
 
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "  - type: mvel\n"
                 + "    dir: out\n"
                 + "    script: return -1\n";
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpScopeModificationFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -206,7 +206,7 @@
 
     @Test
     public void testSetGlobalParamOperation_Extractors() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: modifyScope\n"
                 + "      operations:\n"
                 + "        setGlobalParam: \n"
@@ -232,7 +232,7 @@
 
     @Test
     public void testConfiguration() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: modifyScope\n"
                 + "      dir: both\n"
                 + "      operations:\n"
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSessionCookieFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpSessionCookieFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -251,7 +251,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: session\n"
                 + "      sessionCookieNames: [aaa, bbb]\n"
                 + "      removeInvalidSessionId: true\n";
--- a/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpZoneFilterTest.java	Wed Jan 24 10:28:04 2018 +0100
+++ b/stress-tester/src/test/java/com/passus/st/client/http/filter/HttpZoneFilterTest.java	Wed Jan 24 10:35:07 2018 +0100
@@ -50,7 +50,7 @@
 
     @Test
     public void testConfigure() throws Exception {
-        String filterConfig = "filters:\n"
+        String filterConfig = "httpFilters:\n"
                 + "    - type: zone\n"
                 + "      zones:\n"
                 + "        \"zone1\": {req.url: {$contains: \"test\"}}\n";