Extend DFC's HTTP[S] support with JWT support 06/118606/1
authorKrzysztof Gajewski <krzysztof.gajewski@nokia.com>
Thu, 18 Feb 2021 10:15:11 +0000 (11:15 +0100)
committerKrzysztof Gajewski <krzysztof.gajewski@nokia.com>
Thu, 18 Feb 2021 10:37:42 +0000 (11:37 +0100)
- CSIT tests

Issue-ID: DCAEGEN2-2536
Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com>
Change-Id: I617f31486a605476ab3b53f7bd14818b344b9019

plans/dcaegen2-collectors-datafile/Functional-suite/testplan.txt
tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite/FuncSingleFileFtp.robot
tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite/FuncSingleFileHttp.robot
tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/HttpVariousConnectionTypes.robot [moved from tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/HttpsVariousConnectionTypes.robot with 82% similarity]
tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot [new file with mode: 0755]
tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot [deleted file]
tests/dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite/StrictHostChecking.robot

index cb9aecf..25a7d8c 100755 (executable)
@@ -3,4 +3,4 @@
 dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite
 dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite
 dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite
-dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite
+dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite
index cecb8d1..bb70b50 100755 (executable)
@@ -109,3 +109,5 @@ Set Default Environment Variables
     Set Environment Variable        HTTP_SIMS               http-https-server0:80
     Set Environment Variable        HTTPS_SIMS              http-https-server0:443
     Set Environment Variable        HTTPS_SIMS_NO_AUTH      http-https-server0:8080
+    Set Environment Variable        HTTP_JWT_SIMS           http-https-server0:32000
+    Set Environment Variable        HTTPS_JWT_SIMS          http-https-server0:32100
index f279391..f96c2f9 100755 (executable)
@@ -112,3 +112,5 @@ Set Default Environment Variables
     Set Environment Variable        HTTP_SIMS               http-https-server0:80
     Set Environment Variable        HTTPS_SIMS              http-https-server0:443
     Set Environment Variable        HTTPS_SIMS_NO_AUTH      http-https-server0:8080
+    Set Environment Variable        HTTP_JWT_SIMS           http-https-server0:32000
+    Set Environment Variable        HTTPS_JWT_SIMS          http-https-server0:32100
@@ -22,16 +22,29 @@ Verify single event with single 1MB file with HTTPS connection (basic authentica
 
 Verify single event with single 1MB file HTTPS connection (client certificate authentication). From event poll to published file
     [TAGS]                         DFC_FUNCTIONAL_41
-    [Documentation]                Verify single event with single HTTPS (basic authentication) 5MB file from event poll to published file.
+    [Documentation]                Verify single event with single 1MB file HTTPS connection (client certificate authentication). From event poll to published file
     Verify Single Event From Event Poll To Published File   1    --tc403    HTTPS
 
 
 Verify single event with single 1MB file HTTPS (no authentication). From event poll to published file
     [TAGS]                         DFC_FUNCTIONAL_42
-    [Documentation]                Verify single event with single HTTPS (basic authentication) 50MB file from event poll to published file.
+    [Documentation]                Verify single event with single 1MB file HTTPS (no authentication). From event poll to published file
     Verify Single Event From Event Poll To Published File   1   --tc404    HTTPS
 
 
+Verify single event with single 1MB file with HTTP JWT. From event poll to published file
+    [TAGS]                         DFC_FUNCTIONAL_43
+    [Documentation]                Verify single event with single 1MB file with HTTP JWT. From event poll to published file
+    ${cli_cmd_output}=              Run Process             ${DFC_ROOT}/../dfc-containers-clean.sh           stderr=STDOUT
+    Verify Single Event From Event Poll To Published File   1    --tc303    HTTP
+
+
+Verify single event with single 1MB file with HTTPS JWT. From event poll to published file
+    [TAGS]                         DFC_FUNCTIONAL_44
+    [Documentation]                Verify single event with single 1MB file with HTTPS JWT. From event poll to published file
+    ${cli_cmd_output}=              Run Process             ${DFC_ROOT}/../dfc-containers-clean.sh           stderr=STDOUT
+    Verify Single Event From Event Poll To Published File   1    --tc405    HTTPS
+
 
 *** Keywords ***
 Verify Single Event From Event Poll To Published File
@@ -93,3 +106,5 @@ Set Default Environment Variables
     Set Environment Variable        HTTP_SIMS               http-https-server0:80
     Set Environment Variable        HTTPS_SIMS              http-https-server0:443
     Set Environment Variable        HTTPS_SIMS_NO_AUTH      http-https-server0:8080
+    Set Environment Variable        HTTP_JWT_SIMS           http-https-server0:32000
+    Set Environment Variable        HTTPS_JWT_SIMS          http-https-server0:32100
diff --git a/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot b/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot
new file mode 100755 (executable)
index 0000000..b4fa271
--- /dev/null
@@ -0,0 +1,2 @@
+*** Settings ***
+Documentation    DFC HTTP/HTTPS various connection types test suite. Single event with single file.
diff --git a/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot b/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot
deleted file mode 100755 (executable)
index dac245f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-*** Settings ***
-Documentation    DFC HTTPS various connection types test suite. Single event with single file.
index 9baf11f..61f689d 100755 (executable)
@@ -93,6 +93,8 @@ Setup Strict Host Key Checking Test
     Set Environment Variable        HTTP_SIMS               http-https-server0:80
     Set Environment Variable        HTTPS_SIMS              http-https-server0:443
     Set Environment Variable        HTTPS_SIMS_NO_AUTH      http-https-server0:8080
+    Set Environment Variable        HTTP_JWT_SIMS           http-https-server0:32000
+    Set Environment Variable        HTTPS_JWT_SIMS          http-https-server0:32100
 
     ${cli_cmd_output}=              Run Process     ./simulators-start.sh    cwd=${SIMGROUP_ROOT}
     Log To Console                  Simulator-start: