Updated test env documentation 55/10955/6
authorBjornMagnussonXA <bjorn.magnusson@est.tech>
Wed, 19 Apr 2023 12:03:49 +0000 (14:03 +0200)
committerBjornMagnussonXA <bjorn.magnusson@est.tech>
Mon, 24 Apr 2023 08:06:07 +0000 (10:06 +0200)
Added support to set target architecture for built/pulled images

Corrected spelling errors

Issue-ID: NONRTRIC-858

Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I74b3cbff591e3ba194f590e8c99b858eafca5828

75 files changed:
test/auto-test/FTC1.sh
test/auto-test/FTC10.sh
test/auto-test/FTC100.sh
test/auto-test/FTC110.sh
test/auto-test/FTC1100.sh
test/auto-test/FTC150.sh
test/auto-test/FTC1800.sh
test/auto-test/FTC1_A1PMS_ADAPTER.sh
test/auto-test/FTC1_RICMEDIATOR.sh
test/auto-test/FTC2001.sh
test/auto-test/FTC2002.sh
test/auto-test/FTC2003.sh
test/auto-test/FTC300.sh
test/auto-test/FTC3000.sh
test/auto-test/FTC3001.sh
test/auto-test/FTC350.sh
test/auto-test/FTC4000.sh
test/auto-test/FTC800.sh
test/auto-test/FTC805.sh
test/auto-test/FTC810.sh
test/auto-test/FTC850.sh
test/auto-test/FTC900.sh
test/auto-test/FTC_HELM_E_RELEASE.sh
test/auto-test/ONAP_UC.sh
test/auto-test/PM_DEMO.sh
test/auto-test/PM_EI_DEMO.sh
test/auto-test/README.md
test/auto-test/override-adapter.sh
test/auto-test/startMR.sh
test/common/README.md
test/common/a1pms_api_functions.sh
test/common/api_curl.sh
test/common/authsidecar_api_functions.sh
test/common/cbs_api_functions.sh [deleted file]
test/common/chartmus_api_functions.sh
test/common/compare_json.py
test/common/cp_api_functions.sh
test/common/cr_api_functions.sh
test/common/dmaapadp_api_functions.sh
test/common/dmaapmed_api_functions.sh
test/common/format_endpoint_stats.sh
test/common/helmmanager_api_functions.sh
test/common/httpproxy_api_functions.sh
test/common/ics_api_functions.sh
test/common/istio_api_functions.sh
test/common/kafkapc_api_functions.sh
test/common/keycloak_api_functions.sh
test/common/kubeproxy_api_functions.sh
test/common/localhelm_api_functions.sh
test/common/mr_api_functions.sh
test/common/ngw_api_functions.sh
test/common/prodstub_api_functions.sh
test/common/pvccleaner_api_functions.sh
test/common/rc_api_functions.sh
test/common/ricmediatorsim_api_functions.sh
test/common/ricsim_api_functions.sh
test/common/sdnc_api_functions.sh
test/common/test_env-onap-jakarta.sh
test/common/test_env-onap-kohn.sh
test/common/test_env-onap-london.sh
test/common/test_env-oran-f-release.sh
test/common/test_env-oran-g-release.sh
test/common/test_env-oran-h-release.sh
test/common/testcase_common.sh
test/cr/README.md
test/cr/app/cr.py
test/http-https-proxy/README.md
test/http-https-proxy/http_proxy.js
test/kafka-procon/main.go
test/kafka-procon/start_local.sh
test/mrstub/README.md
test/mrstub/app/main.py
test/prodstub/README.md
test/prodstub/app/prodstub.py
test/simulator-group/sim-monitor.js

index 4ab8aff..8683a9d 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR DMAAPMR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR DMAAPMR A1PMS RICSIM SDNC NGW KUBEPROXY "
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -151,7 +151,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         if [ $RUNMODE == "KUBE" ]; then
             a1pms_load_config                       ".a1pms_config.json"
         else
-            #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+            #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
             if [ $__httpx == "HTTPS" ]; then
                 use_a1pms_rest_https
             else
@@ -199,7 +199,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         echo "############## Health check ################"
         echo "############################################"
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index e109d83..6fb5003 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" MR CR A1PMS RICSIM CP KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -90,7 +90,7 @@ else
     a1pms_api_put_configuration 200 ".a1pms_config.json"
 fi
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
index a5348a8..f048cdb 100755 (executable)
@@ -31,7 +31,7 @@ if [ $USE_ISTIO -eq 0 ]; then
 else
     KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW KEYCLOAK ISTIO AUTHSIDECAR"
 fi
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -248,7 +248,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         if [ $RUNMODE == "KUBE" ]; then
             a1pms_load_config                       ".a1pms_config.json"
         else
-            #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+            #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
             if [ $__httpx == "HTTPS" ]; then
                 use_a1pms_rest_https
             else
@@ -299,7 +299,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         echo "############## Health check ################"
         echo "############################################"
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index 6d14589..ea3a7f2 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -92,7 +92,7 @@ else
     mr_equal requests_submitted 0
 fi
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 #Check a1pms alive
 a1pms_api_get_status 200
index 749b725..5abaee5 100755 (executable)
@@ -31,7 +31,7 @@ if [ $USE_ISTIO -eq 0 ]; then
 else
     KUBE_INCLUDED_IMAGES="PRODSTUB CR ICS RICSIM CP HTTPPROXY KUBEPROXY NGW KEYCLOAK ISTIO AUTHSIDECAR"
 fi
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index f30f3e9..4d921d8 100755 (executable)
@@ -24,7 +24,7 @@ TC_ONELINE_DESCR="Sample tests of the SDNC A1 controller restconf API using http
 DOCKER_INCLUDED_IMAGES="RICSIM SDNC KUBEPROXY"
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" RICSIM SDNC KUBEPROXY"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=" "
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index d6215c7..ac21238 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="ICS PRODSTUB CR CP NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="ICS PRODSTUB CP CR KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index 9228ee7..3e27282 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="CP CR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR A1PMS RICSIM SDNC NGW KUBEPROXY "
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -100,7 +100,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         fi
 
         start_ric_simulators ricsim_g1 1  STD_2.0.0
-        start_ric_simulators ricsim_g2 1  STD_2.0.0  #APMS will use adapter class towards this sim
+        start_ric_simulators ricsim_g2 1  STD_2.0.0  #A1PMS will use adapter class towards this sim
 
         start_cr 1
 
@@ -125,7 +125,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         if [ $RUNMODE == "KUBE" ]; then
             a1pms_load_config                       ".a1pms_config.json"
         else
-            #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+            #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
             if [ $__httpx == "HTTPS" ]; then
                 use_a1pms_rest_https
             else
@@ -158,7 +158,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         echo "############## Health check ################"
         echo "############################################"
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
@@ -205,7 +205,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
 
         if [[ $interface = *"SDNC"* ]]; then
             sim_contains_str ricsim_g1_1 remote_hosts $SDNC_APP_NAME
-            # Adatper does not go through SDNC
+            # Adapter does not go through SDNC
             sim_contains_str ricsim_g2_1 remote_hosts $A1PMS_APP_NAME
         else
             sim_contains_str ricsim_g1_1 remote_hosts $A1PMS_APP_NAME
index e34d8aa..8761a36 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="CP CR A1PMS RICSIM RICMEDIATORSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR A1PMS RICSIM RICMEDIATORSIM SDNC NGW KUBEPROXY "
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -132,7 +132,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         if [ $RUNMODE == "KUBE" ]; then
             a1pms_load_config                       ".a1pms_config.json"
         else
-            #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+            #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
             if [ $__httpx == "HTTPS" ]; then
                 use_a1pms_rest_https
             else
@@ -168,7 +168,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         echo "############## Health check ################"
         echo "############################################"
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index d94b3d7..651762a 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM ICS PRODSTUB HTTPPROXY NGW KUBEPRO
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" MR CR A1PMS PRODSTUB RICSIM CP ICS HTTPPROXY KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -98,7 +98,7 @@ set_a1pms_trace
 
 set_ics_debug
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
@@ -107,7 +107,7 @@ for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_print $RIC_SIM_PREFIX"_g3_"$i interface
 done
-# Load the polictypes in std
+# Load the policytypes in std
 for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g3_"$i STD_QOS_0_2_0 demo-testdata/STD2/sim_qos.json
index 28afcf4..3e07eea 100755 (executable)
@@ -23,7 +23,7 @@ TC_ONELINE_DESCR="Testing southbound proxy for SDNC - docker only"
 DOCKER_INCLUDED_IMAGES="RICSIM SDNC HTTPPROXY KUBEPROXY"
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=""
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=" "
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index e4a8f79..3268e5b 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CR MR ICS HTTPPROXY KUBEPROXY DMAAPADP"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" CR MR ICS HTTPPROXY KUBEPROXY DMAAPADP"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -117,8 +117,8 @@ done
 
 for ((i=1; i<=$NUM_JOBS; i++))
 do
-    cr_api_check_single_genric_json_event 200 0 joby-data$i '{"msg":"msg-1"}'
-    cr_api_check_single_genric_json_event 200 0 joby-data$i '{"msg":"msg-3"}'
+    cr_api_check_single_generic_json_event 200 0 joby-data$i '{"msg":"msg-1"}'
+    cr_api_check_single_generic_json_event 200 0 joby-data$i '{"msg":"msg-3"}'
 done
 
 cr_contains_str 0 remote_hosts $HTTP_PROXY_APP_NAME
index 0e32eaf..bf8ca5f 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -143,7 +143,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
         if [ $RUNMODE == "KUBE" ]; then
             a1pms_load_config                       ".a1pms_config.json"
         else
-            #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+            #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
             if [ $__httpx == "HTTPS" ]; then
                 use_a1pms_rest_https
             else
@@ -165,7 +165,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
             fi
         fi
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index db0f56d..66b7139 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="ICS DMAAPMED DMAAPADP KUBEPROXY MR DMAAPMR CR KAFKAPC"
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" ICS DMAAPMED DMAAPADP KUBEPROXY MR DMAAPMR CR KAFKAPC"
 
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -243,11 +243,11 @@ done
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-data$i ./tmp/data_for_dmaap_test.json
 done
 
 
@@ -307,11 +307,11 @@ done
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-adp-kafka-data$i ./tmp/data_for_dmaap_test.txt
 done
 
 ## Send json file via message-router to mediator
@@ -365,11 +365,11 @@ done
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
-    cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
+    cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-data$i ./tmp/data_for_dmaap_test.json
 done
 
 if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
@@ -429,11 +429,11 @@ if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
     for ((i=1; i<=$NUM_JOBS; i++))
     do
         cr_index=$(($i%$NUM_CR))
-        cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
-        cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
-        cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
-        cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
-        cr_api_check_single_genric_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
+        cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
+        cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
+        cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
+        cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
+        cr_api_check_single_generic_event_md5_file 200 $cr_index job-med-kafka-data$i ./tmp/data_for_dmaap_test.txt
     done
 fi
 
@@ -450,7 +450,7 @@ mr_api_send_json "/events/unauthenticated.dmaapadp.json" '{"msg":"msg-3"}'
 
 DATA_DELIV_JOBS=7 #Each job will eventually get 5+2 msgs
 
-# Wait for data recetption, adapter
+# Wait for data reception, adapter
 EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
 start_timer "Data delivery adapter, 2 json per job"
 for ((i=0; i<$NUM_CR; i++))
@@ -464,7 +464,7 @@ kafkapc_api_post_msg 200 "unauthenticated.dmaapadp_kafka.text" "text/plain" 'Mes
 kafkapc_api_post_msg 200 "unauthenticated.dmaapadp_kafka.text" "text/plain" 'Message-------3'
 kafkapc_equal topics/unauthenticated.dmaapadp_kafka.text/counters/sent 7 30
 
-# Wait for data recetption, adapter kafka
+# Wait for data reception, adapter kafka
 EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
 start_timer "Data delivery adapter kafka, 2 strings per job"
 for ((i=0; i<$NUM_CR; i++))
@@ -492,7 +492,7 @@ if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
     kafkapc_api_post_msg 200 "unauthenticated.dmaapmed_kafka.text" "text/plain" 'Message-------2'
     kafkapc_equal topics/unauthenticated.dmaapmed_kafka.text/counters/sent 7 30
 
-    # Wait for data recetption, adapter kafka
+    # Wait for data reception, adapter kafka
     EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
     start_timer "Data delivery mediator kafka, 2 strings per job"
     for ((i=0; i<$NUM_CR; i++))
@@ -518,15 +518,15 @@ done
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-0"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-2"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-1"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-3"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------1'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------3'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-0"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-2"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-1"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-3"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------1'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------3'
     if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------0'
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------2'
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------0'
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------2'
     fi
 done
 
@@ -541,7 +541,7 @@ done
 mr_api_send_json "/events/unauthenticated.dmaapadp.json" '{"msg":"msg-5"}'
 mr_api_send_json "/events/unauthenticated.dmaapadp.json" '{"msg":"msg-7"}'
 
-# Wait for data recetption, adapter
+# Wait for data reception, adapter
 EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
 start_timer "Data delivery adapter with $SEC_DELAY seconds delay in consumer, 2 json per job"
 for ((i=0; i<$NUM_CR; i++))
@@ -556,7 +556,7 @@ kafkapc_api_post_msg 200 "unauthenticated.dmaapadp_kafka.text" "text/plain" 'Mes
 kafkapc_api_post_msg 200 "unauthenticated.dmaapadp_kafka.text" "text/plain" 'Message-------7'
 kafkapc_equal topics/unauthenticated.dmaapadp_kafka.text/counters/sent 9 30
 
-# Wait for data recetption, adapter kafka
+# Wait for data reception, adapter kafka
 EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
 start_timer "Data delivery adapter kafka with $SEC_DELAY seconds delay in consumer, 2 strings per job"
 for ((i=0; i<$NUM_CR; i++))
@@ -585,7 +585,7 @@ if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
     kafkapc_api_post_msg 200 "unauthenticated.dmaapmed_kafka.text" "text/plain" 'Message-------6'
     kafkapc_equal topics/unauthenticated.dmaapmed_kafka.text/counters/sent 9 30
 
-    # Wait for data recetption, mediator kafka
+    # Wait for data reception, mediator kafka
     EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
     start_timer "Data delivery mediator kafka with $SEC_DELAY seconds delay in consumer, 2 strings per job"
     for ((i=0; i<$NUM_CR; i++))
@@ -611,15 +611,15 @@ done
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-4"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-6"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-5"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-7"}'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------5'
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------7'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-4"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-med-data$i '{"msg":"msg-6"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-5"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-data$i '{"msg":"msg-7"}'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------5'
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i 'Message-------7'
     if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------4'
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------6'
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------4'
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i 'Message-------6'
     fi
 done
 
index 1426d66..3f50abe 100755 (executable)
@@ -25,7 +25,7 @@ DOCKER_INCLUDED_IMAGES="ICS DMAAPMED DMAAPADP KUBEPROXY MR DMAAPMR CR KAFKAPC HT
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" ICS DMAAPMED DMAAPADP KUBEPROXY MR DMAAPMR CR KAFKAPC HTTPPROXY"
 
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -144,7 +144,7 @@ ics_api_idc_get_type_ids 200 $adp_med_type_list
 start_timer "Create adapter (kafka) jobs: $NUM_JOBS"
 for ((i=1; i<=$NUM_JOBS; i++))
 do
-    # Max buffer timeout for is about 160 sec for Adator jobs"
+    # Max buffer timeout for is about 160 sec for Adapter jobs"
     adp_timeout=$(($i*1000))
     if [[ "$DMAAP_ADP_FEATURE_LEVEL" == *"FILTERSPEC"* ]]; then
         deviation "It is possible to give filter without filtertype without error indication"
@@ -219,7 +219,7 @@ do
     kafkapc_equal topics/unauthenticated.dmaapadp_kafka.text$i/counters/sent 3 30
 done
 
-# Wait for data recetption, adapter kafka
+# Wait for data reception, adapter kafka
 EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$EXPECTED_DATA_DELIV))
 EXPECTED_BATCHES_DELIV=$(($NUM_JOBS/$NUM_CR+$EXPECTED_BATCHES_DELIV))
 
@@ -235,8 +235,8 @@ print_timer
 for ((i=1; i<=$NUM_JOBS; i++))
 do
     cr_index=$(($i%$NUM_CR))
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i  'Message-------1'$i
-    cr_api_check_single_genric_event_md5 200 $cr_index job-adp-kafka-data$i  'Message-------3'$i
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i  'Message-------1'$i
+    cr_api_check_single_generic_event_md5 200 $cr_index job-adp-kafka-data$i  'Message-------3'$i
 done
 
 if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
@@ -255,7 +255,7 @@ if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
         kafkapc_equal topics/unauthenticated.dmaapmed_kafka.text$i/counters/sent 2 30
     done
 
-    # Wait for data recetption, adapter kafka
+    # Wait for data reception, adapter kafka
 
     EXPECTED_DATA_DELIV=$(($NUM_JOBS*2/$NUM_CR+$PREV_DATA_DELIV))
     EXPECTED_BATCHES_DELIV=$(($NUM_JOBS/$NUM_CR+$PREV_BATCHES_DELIV))
@@ -273,8 +273,8 @@ if [[ "$DMAAP_MED_FEATURE_LEVEL" == *"KAFKATYPES"* ]]; then
     for ((i=1; i<=$NUM_JOBS; i++))
     do
         cr_index=$(($i%$NUM_CR))
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i  'Message-------0'$i
-        cr_api_check_single_genric_event_md5 200 $cr_index job-med-kafka-data$i  'Message-------2'$i
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i  'Message-------0'$i
+        cr_api_check_single_generic_event_md5 200 $cr_index job-med-kafka-data$i  'Message-------2'$i
     done
 fi
 
index f3fee12..a9faebc 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -106,7 +106,7 @@ for interface in $TESTED_VARIANTS ; do
 
     set_a1pms_trace
 
-    sleep_wait 120 "Let A1PMS cofiguration take effect"
+    sleep_wait 120 "Let A1PMS configuration take effect"
 
     a1pms_api_get_status 200
 
index d8783ba..5050d42 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="KUBEPROXY CHARTMUS LOCALHELM HELMMANAGER"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index d1ee766..62c6d1d 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -130,7 +130,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
             a1pms_api_put_configuration 200 ".a1pms_config.json"
         fi
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index 24ef2b6..1346d69 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -125,7 +125,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
 
         start_cr 1
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index f977d14..f03199e 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -116,7 +116,7 @@ fi
 start_sdnc
 controller_api_wait_for_status_ok 200 ricsim_g1_1
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
index 54c4b3a..a8c09cb 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -140,7 +140,7 @@ for __httpx in $TESTED_PROTOCOLS ; do
 
         start_cr 1
 
-        sleep_wait 120 "Let A1PMS cofiguration take effect"
+        sleep_wait 120 "Let A1PMS configuration take effect"
 
         a1pms_api_get_status 200
 
index a85eed2..19891a5 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -82,7 +82,7 @@ else
     a1pms_api_put_configuration 200 ".a1pms_config.json"
 fi
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
@@ -105,7 +105,7 @@ do
     sim_print $RIC_SIM_PREFIX"_g3_"$i interface
 done
 
-# Load the polictypes in osc
+# Load the policytypes in osc
 for ((i=1; i<=$OSC_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g1_"$i 2 testdata/OSC/sim_hw.json
@@ -130,7 +130,7 @@ do
     a1pms_api_get_policy_type 200 20008 testdata/OSC/tsa-a1pms-modified.json
 done
 
-# Load the polictypes in std
+# Load the policytypes in std
 for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g3_"$i STD_QOS_0_2_0 demo-testdata/STD2/sim_qos.json
index 8178551..1b63f61 100755 (executable)
@@ -26,7 +26,7 @@ DOCKER_INCLUDED_IMAGES="" # Not used -  KUBE only test script
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" MR DMAAPMR CR  PRODSTUB KUBEPROXY KAFKAPC"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=" A1PMS RICSIM CP ICS RC SDNC DMAAPMED DMAAPADP"
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -125,7 +125,7 @@ rapp_cat_api_get_services 200 "Emergency-response-app" v1 "Emergency-response-ap
 #Check the number of services
 rc_equal json:services 1
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1_a1pms_api_get_status 200
 
@@ -165,14 +165,14 @@ done
 #Check the number of schemas
 a1pms_equal json:policy-types 1
 
-# Load the polictypes in STD 2
+# Load the policytypes in STD 2
 for ((i=0; i<$STD_NUM_RICS; i++))
 do
    sim_put_policy_type 201 "a1-sim-std2-"$i STD_QOS_0_2_0 testdata/STD2/sim_qos.json
    sim_put_policy_type 201 "a1-sim-std2-"$i STD_QOS2_0.1.0 testdata/STD2/sim_qos2.json
 done
 
-# Load the polictypes in OSC
+# Load the policytypes in OSC
 for ((i=0; i<$OSC_NUM_RICS; i++))
 do
     sim_put_policy_type 201 "a1-sim-osc-"$i 1 testdata/OSC/sim_1.json
@@ -400,12 +400,12 @@ done
 
 for ((i=1; i<=$NUM_JOBS; i++))
 do
-    cr_api_check_single_genric_json_event 200 0 jobx-data$i '{"msg":"msg-0"}'
-    cr_api_check_single_genric_json_event 200 0 jobx-data$i '{"msg":"msg-2"}'
-    cr_api_check_single_genric_json_event 200 0 joby-data$i '{"msg":"msg-1"}'
-    cr_api_check_single_genric_json_event 200 0 joby-data$i '{"msg":"msg-3"}'
-    cr_api_check_single_genric_json_event 200 0 jobz-data$i 'Message-------4'
-    cr_api_check_single_genric_json_event 200 0 jobz-data$i 'Message-------6'
+    cr_api_check_single_generic_json_event 200 0 jobx-data$i '{"msg":"msg-0"}'
+    cr_api_check_single_generic_json_event 200 0 jobx-data$i '{"msg":"msg-2"}'
+    cr_api_check_single_generic_json_event 200 0 joby-data$i '{"msg":"msg-1"}'
+    cr_api_check_single_generic_json_event 200 0 joby-data$i '{"msg":"msg-3"}'
+    cr_api_check_single_generic_json_event 200 0 jobz-data$i 'Message-------4'
+    cr_api_check_single_generic_json_event 200 0 jobz-data$i 'Message-------6'
 done
 
 
index c41c725..9a8f055 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR DMAAPMR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR DMAAPMR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -131,7 +131,7 @@ for interface in $TESTED_VARIANTS ; do
     if [ $RUNMODE == "KUBE" ]; then
         a1pms_load_config                       ".a1pms_config.json"
     else
-        #Temporary switch to http/https if dmaap use. Otherwise it is not possibble to push config
+        #Temporary switch to http/https if dmaap use. Otherwise it is not possible to push config
         if [ $__httpx == "HTTPS" ]; then
             use_a1pms_rest_https
         else
@@ -181,7 +181,7 @@ for interface in $TESTED_VARIANTS ; do
     ## REQ: Synchronize A1 Policy Information in RAN
     #################################################################
 
-    # Load the polictypes in osc
+    # Load the policytypes in osc
     for ((i=1; i<=$OSC_NUM_RICS; i++))
     do
         sim_put_policy_type 201 $RIC_SIM_PREFIX"_g1_"$i 100 demo-testdata/OSC/sim_qos.json
@@ -204,7 +204,7 @@ for interface in $TESTED_VARIANTS ; do
     done
 
 
-    # Load the polictypes in std
+    # Load the policytypes in std
     for ((i=1; i<=$STD_NUM_RICS; i++))
     do
         sim_put_policy_type 201 $RIC_SIM_PREFIX"_g3_"$i STD_QOS_0_2_0 demo-testdata/STD2/sim_qos.json
index 6da3ef5..6e4bd44 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC NGW KUBEPROXY"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -100,7 +100,7 @@ else
     a1pms_api_put_configuration 200 ".a1pms_config.json"
 fi
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
@@ -124,7 +124,7 @@ do
 done
 
 
-# Load the polictypes in osc
+# Load the policytypes in osc
 for ((i=1; i<=$OSC_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g1_"$i 100 demo-testdata/OSC/sim_qos.json
@@ -148,7 +148,7 @@ do
 done
 
 
-# Load the polictypes in std
+# Load the policytypes in std
 for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g3_"$i STD_QOS_0_2_0 demo-testdata/STD2/sim_qos.json
index e252e1d..57bc2cb 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="CP CR MR A1PMS RICSIM SDNC ICS PRODSTUB RC HTTPPROXY KUB
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES=" MR CR A1PMS RC PRODSTUB RICSIM CP ICS SDNC HTTPPROXY KUBEPROXY NGW"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
@@ -117,7 +117,7 @@ rapp_cat_api_put_service 201 "Emergency-response-app" v1 "Emergency-response-app
 
 rapp_cat_api_get_services 200 "Emergency-response-app" v1 "Emergency-response-app" "Emergency-response-app"
 
-sleep_wait 120 "Let A1PMS cofiguration take effect"
+sleep_wait 120 "Let A1PMS configuration take effect"
 
 a1pms_api_get_status 200
 
@@ -126,7 +126,7 @@ for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_print $RIC_SIM_PREFIX"_g3_"$i interface
 done
-# Load the polictypes in std
+# Load the policytypes in std
 for ((i=1; i<=$STD_NUM_RICS; i++))
 do
     sim_put_policy_type 201 $RIC_SIM_PREFIX"_g3_"$i STD_QOS_0_2_0 demo-testdata/STD2/sim_qos.json
index d29c752..30cf27b 100644 (file)
@@ -8,7 +8,9 @@ A few of the bash scripts are so called 'suites', These suite scripts calls a se
 There are two types of scripts, filenames in the format FTCXXX.sh test one or more components of the Non-RT RIC. Filenames in the format SuiteZZZZ.sh tests a number of FTCXXX.sh script as one suite. (XXX is an integer selected from the categories described further below).
 FTC is short for Function Test Case. In addition, there are also other test scripts with other naming format used for demo setup etc (e.g PM_DEMO.sh).
 
-The requirements, in terms of the execution enviroment, to run a script or a suite is to have docker, docker-compose and python3 installed (the scripts warns if not installed). As an option, the scripts can also be executed in a Minikube or Kubernetes installation. The additional requirement is to have a clean minikube/kubernetes installation, perferably with the kube dashboard installed.
+To list all test case files with a s short description, do `grep TC_ONELINE_DESCR *.sh` for a complete list.
+
+The requirements, in terms of the execution environment, to run a script or a suite is to have docker, docker-compose and python3 installed (the scripts warns if not installed). As an option, the scripts can also be executed in a Minikube or Kubernetes installation. The additional requirement is to have a clean minikube/kubernetes installation, preferably with the kube dashboard installed.
 The scripts have been tested to work on both MacOS and Ubuntu using docker. They should work also in git-bash on windows (for docker) but only partly verified. Running using minikube has only been verified on Ubuntu and running on kubernetes has been verified on MacOS and Ubuntu. Successful sample tests has been made on google cloud.
 
 ## Configuration
@@ -20,72 +22,65 @@ If temporary changes are needed to the settings in a profile file, use an overri
 
 A test script, for example FTC1, is executed from the cmd line using the script filename and one or more parameters:
 
- >```./FTC1.sh remote docker --env-file ../common/test_env-oran-cherry.sh```
+ >```./FTC1.sh remote docker --env-file ../common/test_env-oran-h-release.sh```
 
-Note that not is running on a released verion, the parameter "release" shall be included to run the released images.
+Note that this script will use the staging images. Once the release images are available,add the parameter "release" to run with released images.
 
 See the README.md in  `../common/` for all details about available parameters and their meaning.
 
 Each test script prints out the overall result of the tests in the end of the execution.
 
-The test scripts produce quite a number of logs; all container logs, a log of all http/htps calls from the test scripts including the payload, some configuration created during test and also a test case log (same as what is printed on the screen during execution). All these logs are stored in `logs/FTCXXX/`. So each test script is using its own log directory.
+The test scripts produce quite a number of logs; all container logs, a log of all http/https calls from the test scripts including the payload, some configuration created during test and also a test case log (same as what is printed on the screen during execution). All these logs are stored in `logs/FTCXXX/` - basically in a dir with the same name as the script. So each test script is using its own log directory. If the same test is started again, any existing logs will be moved to a subdirectory called `previous`.
 
 To test all components on a very basic level, run the demo test script(s) for the desired release.
 Note that oran tests only include components from oran (exception is the onap sdnc).
-Note that onap test uses components from onap combined with released oran components available at that onap release (e.g. Honolulu contains onap images from honolulu and oran images from cherry)
+Note that onap test uses components from onap combined with released oran components available at that onap release (e.g. London contains onap images from London and oran images (released images from g-release).
 
+In general, the test scripts support the current ongoing release as well as two previous releases.
 
-ORAN CHERRY
-===========
->```./PM_EI_DEMO.sh remote-remove  docker release   --env-file ../common/test_env-oran-cherry.sh```
 
->```./PM_EI_DEMO.sh remote-remove  kube  release --env-file ../common/test_env-oran-cherry.sh```
 
-ORAN D-RELEASE
+ORAN F-RELEASE
 =========
->```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-oran-d-release.sh  --use-release-image SDNC```
+>```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-oran-f-release.sh  --use-release-image SDNC```
 
->```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-oran-d-release.sh  --use-release-image SDNC```
+>```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-oran-f-release.sh  --use-release-image SDNC```
 
-ORAN E-RELEASE
+ORAN G-RELEASE
 =========
->```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-oran-e-release.sh```
-
->```./PM_EI_DEMO.sh remote-remove  kube  release --env-file ../common/test_env-oran-e-release.sh```
+>```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-oran-g-release.sh  --use-release-image SDNC```
 
-ORAN E-RELEASE with nonrtric deployed with helm charts for the "dep" repo
->```../FTC_HELM_E_RELEASE.sh remote-remove  kube  release --env-file ../common/test_env-oran-e-release.sh --override override_ftc_helm_e_release.sh```
+>```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-oran-g-release.sh  --use-release-image SDNC```
 
-ORAN F-RELEASE
+ORAN H-RELEASE - current on master (april 2023)
 =========
->```./PM_EI_DEMO.sh remote-remove  docker  --env-file ../common/test_env-oran-f-release.sh```
-
->```./PM_EI_DEMO.sh remote-remove  kube  --env-file ../common/test_env-oran-f-release.sh```
-
-ONAP GUILIN
-===========
->```./PM_DEMO.sh remote-remove  docker release   --env-file ../common/test_env-onap-guilin.sh```
+>```./PM_EI_DEMO.sh remote-remove  docker  --env-file ../common/test_env-oran-h-release.sh```
 
->```./PM_DEMO.sh remote-remove  kube  release --env-file ../common/test_env-onap-guilin.sh```
+>```./PM_EI_DEMO.sh remote-remove  kube  --env-file ../common/test_env-oran-h-release.sh```
 
-Note that ICS was not available before oran cherry so a test script without ICS is used.
 
-ONAP HONOLULU
+ONAP JAKARTA
 =============
->```./PM_EI_DEMO.sh remote-remove  docker release  --env-file ../common/test_env-onap-honolulu.sh```
+>```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-onap-jakarta.sh```
 
->```./PM_EI_DEMO.sh remote-remove  kube  release --env-file ../common/test_env-onap-honolulu.sh```
+>```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-onap-jakarta.sh```
 
-ONAP ISTANBUL
+
+ONAP KOHN
 =============
->```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-onap-istanbul.sh```
+>```./PM_EI_DEMO.sh remote-remove  docker  release  --env-file ../common/test_env-onap-kohn.sh```
+
+>```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-onap-kohn.sh```
 
->```./PM_EI_DEMO.sh remote-remove  kube  release  --env-file ../common/test_env-onap-istanbul.sh```
 
+ONAP LONDON - current on master (april 2023)
+=============
+>```./PM_EI_DEMO.sh remote-remove  docker  --env-file ../common/test_env-onap-london.sh```
 
+>```./PM_EI_DEMO.sh remote-remove  kube  --env-file ../common/test_env-onap-london.sh```
 ## Test case categories
 
-The test script are number using these basic categories where 0-999 are releated to the policy managment and 1000-1999 are related to information management. 2000-2999 are for southbound http proxy. There are also demo test cases that test more or less all components. These test scripts does not use the numbering scheme below.
+The test script are number using these basic categories where 0-999 are related to the policy management and 1000-1999 are related to information management. 2000-2999 are for southbound http proxy. There are also demo test cases that test more or less all components. These test scripts does not use the numbering scheme below.
 
 The numbering in each series corresponds to the following groupings
 1-99 - Basic sanity tests, A1PMS
@@ -113,6 +108,8 @@ Suites
 To get an overview of the available test scripts, use the following command to print the test script description:
 'grep ONELINE *.sh' in the dir of the test scripts.
 
+
+
 ## Test case file - template
 
 A test script contains a number of steps to verify a certain functionality.
@@ -125,12 +122,14 @@ It is strongly suggested to look at the existing test scripts, it is probably ea
 ```
 #!/bin/bash
 
+<license text>
+
 TC_ONELINE_DESCR="<test case description>"
 
 DOCKER_INCLUDED_IMAGES=<list of used apps in this test case - for docker>
 
 KUBE_INCLUDED_IMAGES=<list of used apps (started by the script) in this test case - for kube>
-KUBE_PRESTARTED_IMAGES=<list of used apps (prestarte - i.e. not started by the script) in this test case - for kube>
+KUBE_PRESTARTED_IMAGES=<list of used apps (pre-started - i.e. not started by the script) in this test case - for kube>
 
 SUPPORTED_PROFILES=<list of supported profile names>
 
@@ -160,7 +159,7 @@ store_logs          END
 
 ## License
 
-Copyright (C) 2020 Nordix Foundation. All rights reserved.
+Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
index 5edb9e6..faef149 100644 (file)
@@ -16,4 +16,4 @@
 ################################################################################
 
 A1PMS_ADAPTER_CLASS=""         # adapter java class
-A1PMS_ADAPTER_POLICY_NAME=""   # policy type for adaper
+A1PMS_ADAPTER_POLICY_NAME=""   # policy type for adapter
index 823a72e..3b4f3db 100755 (executable)
@@ -24,7 +24,7 @@ DOCKER_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC"
 
 #App names to include in the test when running kubernetes, space separated list
 KUBE_INCLUDED_IMAGES="MR DMAAPMR KUBEPROXY KAFKAPC"
-#Prestarted app (not started by script) to include in the test when running kubernetes, space separated list
+#Pre-started app (not started by script) to include in the test when running kubernetes, space separated list
 KUBE_PRESTARTED_IMAGES=""
 
 #Ignore image in DOCKER_INCLUDED_IMAGES, KUBE_INCLUDED_IMAGES if
index 492f204..bd7b0d6 100644 (file)
@@ -1,15 +1,18 @@
 # Introduction #
 
-This dir contains most scripts needed for the auto-test environment. There are scripts with functions to adapt to the apis of the components of the Non-RT RIC; Policy Managerment Service, Information Coordinator Service , A1 simulator as well as other components and simulators. The test environment supports both test with docker and kubernetes.
+This dir contains most scripts needed for the auto-test environment. There are scripts with functions to adapt to the apis of the components of the Non-RT RIC; Policy Management Service, Information Coordinator Service , A1 simulator as well as other components and simulators. The test environment supports both test with docker and kubernetes.
 Some of the scripts can also be used for other kinds of tests, for example basic tests.
 
 ## Overview for common test scripts and files ##
 
+`a1pms_api_functions.sh` \
+Contains functions for adapting towards the Policy Management Service (A1PMS) API.
+
 `api_curl.sh` \
 A common curl based function for the a1pms and ics apis. Also partly used for the Callback receiver and RAPP Catalogue apis.
 
-`cbs_api_function.sh` \
-All functions are implemented in `consul_api_function.sh`.
+`authsidecar_api_functions.sh` \
+Image handling functions for the auth_token_fetch image.
 
 `chartmus_api_functions.sh` \
 Contains functions for managing a Chartmuseum instance.
@@ -20,11 +23,11 @@ Cleans all containers started by the test environment in docker.
 `clean-kube.sh` \
 Cleans all services, deployments, pods, replica set etc started by the test environment in kubernetes.
 
-`compare_json.py` \
-A python script to compare two json obects for equality. Note that the comparsion always sort json-arrays before comparing (that is, it does not care about the order of items within the array). In addition, the target json object may specify individual parameter values where equality is 'dont care'.
+`clean-kube_ns.sh` \
+Cleans all namespaces created by the test environment in kubernetes.
 
-`consul_api_function.sh` \
-Contains functions for managing Consul and CBS.
+`compare_json.py` \
+A python script to compare two json objects for equality. Note that the comparison always sort json-arrays before comparing (that is, it does not care about the order of items within the array). In addition, the target json object may specify individual parameter values where equality is 'don't care'.
 
 `count_json_elements.py` \
 A python script calculate the length of json array or size of a json dictionary'.
@@ -42,16 +45,16 @@ Contains functions for adapting towards the Callback receiver for checking recei
 A python script to create a batch of policies. The script is intended to run in a number of processes to create policies in parallel.
 
 `create_rics_json.py` \
-A python script to create a json file from a formatted string of ric info. Helper for the test enviroment.
+A python script to create a json file from a formatted string of ric info. Helper for the test environment.
 
 `delete_policies_process.py` \
 A python script to delete a batch of policies. The script is intended to run in a number of processes to delete policies in parallel.
 
 `dmaapadp_api_function.sh`
-Contains funnctions for managing the Dmaap Adapter.
+Contains functions for managing the Dmaap Adapter.
 
 `dmaapmed_api_function.sh`
-Contains funnctions for managing the Dmaap Mediator Service.
+Contains functions for managing the Dmaap Mediator Service.
 
 `dmaapmr_api_function.sh`
 All functions are implemented in `mr_api_functions.sh`.
@@ -62,6 +65,9 @@ A script for executing a curl call with a specific url and optional payload. It
 `extract_sdnc_reply.py` \
 A python script to extract the information from an sdnc (A1 Controller) reply json. Helper for the test environment.
 
+`format_endpoint_stats.sh` \
+This script formats API statistics into a test report - data is collected only if the flag `--endpoint-stats` is given to the test script .
+
 `genstat.sh` \
 This script collects container statistics to a file. Works both in docker and kubernetes (only for docker runtime).
 
@@ -74,9 +80,15 @@ Contains functions for managing the Http Proxy.
 `ics_api_functions.sh` \
 Contains functions for adapting towards the Information Coordinator Service API.
 
+`istio_api_functions.sh` \
+Contains functions for istio configurations.
+
 `kafkapc_api_functions.sh` \
 Contains functions for managing the kafka producer/consumer. Kafka is started by the dmaap message router component.
 
+`keycloak_api_functions.sh` \
+Contains functions for keycloak configuration.
+
 `kube_proxy_api_functions.sh` \
 Contains functions for managing the Kube Proxy - to gain access to all services pod inside a kube cluster or all containers in a private docker network.
 
@@ -89,9 +101,6 @@ Contains functions for managing the MR Stub and the Dmaap Message Router
 `ngw_api_functions.sh` \
 Contains functions for managing the Non-RT RIC Gateway
 
-`a1pms_api_functions.sh` \
-Contains functions for adapting towards the Policy Management Service (A1PMS) API, also via dmaap (using a message-router stub interface)
-
 `prodstub_api_functions.sh` \
 Contains functions for adapting towards the Producer stub interface - simulates a producer.
 
@@ -104,6 +113,9 @@ Contains functions for adapting towards the RAPP Catalogue.
 `ricsim_api_functions.sh` \
 Contains functions for adapting towards the RIC (A1) simulator admin API.
 
+`ricmediatorsim_api_functions.sh` \
+Contains functions for adapting towards the ricmediator simulator (A1) API.
+
 `sdnc_api_functions.sh` \
 Contains functions for adaping towards the SDNC (used as an A1 controller).
 
@@ -112,11 +124,11 @@ Common env variables for test in the auto-test dir. All configuration of port nu
 Used by the auto test scripts/suites but could be used for other test script as well. The test cases shall be started with the file for the intended target using command line argument '--env-file'.
 
 `testcase_common.sh` \
-Common functions for auto test cases in the auto-test dir. This script is the foundation of test auto environment which sets up images and enviroment variables needed by this script as well as the script adapting to the APIs.
+Common functions for auto test cases in the auto-test dir. This script is the foundation of test auto environment which sets up images and environment variables needed by this script as well as the script adapting to the APIs.
 The included functions are described in detail further below.
 
 `testengine_config.sh` \
-Configuration file to setup the applications (components and simulators) the test enviroment handles.
+Configuration file to setup the applications (components and simulators) the test environment handles.
 
 `testsuite_common.sh` \
 Common functions for running two or more auto test scripts as a suite.
@@ -125,11 +137,13 @@ Common functions for running two or more auto test scripts as a suite.
 
 Integration a new application to the test environment involves the following steps.
 
-* Choose a short name for the application. Should be a uppcase name. For example, the NonRTRIC Gateway has NGW as short name.
+* Choose a short name for the application. Should be a uppercase name. For example, the NonRTRIC Gateway has NGW as short name.
 This short name shall be added to the testengine_config.sh. See that file for detailed instructions.
 
+Depending if the image is a locally built simulator image or an official image, the following env vara may need to be updated with the app short name: `PROJECT_IMAGES_APP_NAMES  ORAN_IMAGES_APP_NAMES  ORAN_IMAGES_APP_NAMES`.
+
 * Create a file in this directory using the pattern `<application-name>_api_functions.sh`.
-This file must implement the following functions used by the test engine. Note that functions must include the application short name in the function name. If the application does not run in kubernetes, then the last three functions in the list can be omitted.
+This file must implement the following functions used by the test engine. Note that functions must include the application short name in the function name. If the application does not run in kubernetes, then the functions with kube prefix does not need to be implemented.
 
 | Function |
 |--|
@@ -142,16 +156,16 @@ This file must implement the following functions used by the test engine. Note t
 | __<app-short_name>_kube_delete_all |
 | __<app-short_name>_store_docker_logs |
 | __<app-short_name>_initial_setup |
-| __<app-short_name>_statisics_setup |
+| __<app-short_name>_statistics_setup |
 | __<app-short_name>_test_requirements |
 
 In addition, all other functions used for testing of the application shall also be added to the file. For example functions to start the application, setting interface parameters as well as functions to send rest call towards the api of the application and validating the result.
 
-* Add the application variables to api_curl.sh. This file contains a generic function to make rest calls to an api. It also supports switching betweeen direct rest calls or rest calls via messsage router.
+* Add the application variables to api_curl.sh. This file contains a generic function to make rest calls to an api. It also supports switching between direct rest calls or rest calls via message router.
 
 * Create a directory beneath in the simulator-group dir. This new directory shall contain docker-compose files, config files (with or without variable substitutions) and kubernetes resource files.
 
-All docker-compose files and all kubernetes resource files need to defined special lables. These lables are used by the test enginge to identify containers and resources started and used by the test engine.
+All docker-compose files and all kubernetes resource files need to defined special labels. These labels are used by the test engine to identify containers and resources started and used by the test engine.
 
 | Label for docker compose | Description |
 |--|--|
@@ -173,14 +187,41 @@ The script can be started with these arguments
 
 | arg list |
 |--|
-| `remote\|remote-remove docker\|kube --env-file <environment-filename> [release] [auto-clean] [--stop-at-error] [--ricsim-prefix <prefix> ] [--use-local-image <app-nam>+]  [--use-snapshot-image <app-nam>+] [--use-staging-image <app-nam>+] [--use-release-image <app-nam>+] [--use-external-image <app-nam>+] [--image-repo <repo-address>] [--repo-policy local\|remote] [--cluster-timeout <timeout-in-seconds>]  [--print-stats]` |
+| `remote\|remote-remove `
+` docker\|kube `
+` --env-file <environment-filename> `
+` [release] `
+` [auto-clean]`
+` [--stop-at-error]`
+` [--ricsim-prefix <prefix> ]`
+` [--use-local-image <app-nam>+]`
+` [--use-snapshot-image <app-nam>+]`
+` [--use-staging-image <app-nam>+]`
+` [--use-release-image <app-nam>+]`
+` [--use-external-image <app-nam>+]`
+` [--image-repo <repo-address>]`
+` [--repo-policy local\|remote]`
+` [--cluster-timeout <timeout-in-seconds>]`
+` [--print-stats]`
+` [--override <override-environment-filename>]`
+` [--pre-clean]`
+` [--gen-stats]`
+` [--delete-namespaces]`
+` [--delete-containers]`
+` [--endpoint-stats]`
+` [--kubeconfig <config-file>]`
+` [--host-path-dir <local-host-dir>]`
+` [--kubecontext <context-name>]`
+` [--docker-host <docker-host-url>]`
+` [--docker-proxy <host-or-ip>] `
+` ["--target-platform <platform> ]` |
 
 | parameter | description |
 |-|-|
 | `remote` | Use images from remote repositories. Can be overridden for individual images using the '--use_xxx' flags |
 | `remote-remove` | Same as 'remote' but will also try to pull fresh images from remote repositories |
 | `docker` | Use docker environment for test |
-| `kuber` | Use kubernetes environment for test. Requires a kubernetes minikube installation |
+| `kube` | Use kubernetes environment for test. Requires access to a local or remote kubernetes cluster (or or more nodes). For example docker desktop, minikube, external kubernetes cluster, google cloud etc |
 | `--env-file` | The script will use the supplied file to read environment variables from |
 | `release` | If this flag is given the script will use release version of the images |
 | `auto-clean` | If the function 'auto_clean_containers' is present in the end of the test script then all containers will be stopped and removed. If 'auto-clean' is not given then the function has no effect |
@@ -192,15 +233,23 @@ The script can be started with these arguments
 | `--use-release-image` | The script will use images from the nexus release repo for the supplied apps, space separated list of app short names |
 | `--use-external-image` | The script will use images from an external repo for the supplied apps, space separated list of app short names |
 | `--image-repo` |  Url to optional image repo. Only locally built images will be re-tagged and pushed to this repo |
-| `-repo-policy` |  Policy controlling which images to re-tag and push to image repo in param --image-repo. Can be set to 'local' (push only locally built images) or 'remote' (push locally built images and images from nexus repo). Default is 'local' |
+| `--repo-policy` |  Policy controlling which images to re-tag and push to image repo in param --image-repo. Can be set to 'local' (push only locally built images) or 'remote' (push locally built images and images from nexus repo). Default is 'local' |
 | `--cluster-timeout` |  Optional timeout for cluster where it takes time to obtain external ip/host-name. Timeout in seconds |
 | `--print-stats` |  Prints the number of tests, failed tests, failed configuration and deviations after each individual test or config |
 | `--override <file>` |  Override setting from the file supplied by --env-file |
-| `--pre-clean` |  Clean kube resouces when running docker and vice versa |
+| `--pre-clean` |  Clean kube resources when running docker and vice versa |
 | `--gen-stats`  | Collect container/pod runtime statistics |
-| `--delete-namespaces`  | Delete kubernetes namespaces before starting tests - but only those created by the test scripts. Kube mode only. Ignored if running with prestarted apps. |
+| `--delete-namespaces`  | Delete kubernetes namespaces before starting tests - but only those created by the test scripts. Kube mode only. Ignored if running with pre-started apps. |
 | `--delete-containers`  | Delete docker containers before starting tests - but only those created by the test scripts. Docker mode only. |
 | `--endpoint-stats`  | Collect http endpoint statistics |
+| `--kubeconfig`  | Kubernetes config file for kubectl, when running with non local kubernetes |
+| `--host-path-dir`  | Path for storing persistent data in kubernetes. Must be available on all nodes. Default is `/tmp` |
+| `--kubecontext`  | Kubernetes context name for kubectl, when running with non local kubernetes  |
+| `--docker-host`  | Url to docker host, host and port. For non local docker |
+| `--docker-proxy`  | Host or IP of the docker instance, for non local docker |
+| `--target-platform` | Build and pull images for this target platform |
+
+
 | `help` | Print this info along with the test script description and the list of app short names supported |
 
 ## Function: setup_testenvironment ##
@@ -297,1027 +346,1177 @@ Print out the overall result of the executed test cases.
 |--|
 | None |
 
-# Description of functions in chartmus_api_function.sh #
+# Description of functions in a1pms_api_functions.sh #
 
-## Function: start_chart_museum ##
+## General ##
 
-Start the Chart Museum
+Both A1PMS version 1 and 2 are supported. The version is controlled by the env variable `$A1PMS_VERSION` set in the test env file.
+For api function in version 2, an url prefix is added if configured.
+
+## Function: use_a1pms_rest_http ##
+
+Use http for all API calls to the A1PMS. This is the default.
 | arg list |
 |--|
 | None |
 
-## Function: chartmus_upload_test_chart ##
+## Function: use_a1pms_rest_https ##
 
-Upload a package chart to chartmusem
+Use https for all API calls to the A1PMS.
 | arg list |
 |--|
-| `<chart-name>` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<chart-name>` | Name of the chart to upload |
+## Function: use_a1pms_dmaap_http ##
 
-## Function: chartmus_delete_test_chart ##
+Send and receive all API calls to the A1PMS over Dmaap via the MR over http.
+| arg list |
+|--|
+| None |
 
-Delete a chart in chartmusem
+## Function: use_a1pms_dmaap_https ##
+
+Send and receive all API calls to the A1PMS over Dmaap via the MR over https.
 | arg list |
 |--|
-| `<chart-name> [<version>]` |
+| None |
+
+## Function: start_a1pms ##
+
+Start the A1PMS container or corresponding kube resources depending on docker/kube mode.
+| arg list |
+|--|
+| `<logfile-prefix>` |
+| (docker) `PROXY\|NOPROXY <config-file>` |
+| (kube) `PROXY\|NOPROXY <config-file> [ <data-file> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<chart-name>` | Name of the chart to delete |
-| `<version>` | Chart version, default is 0.1.0 |
+| `PROXY` | Configure with http proxy, if proxy is started  |
+| `NOPROXY` | Configure without http proxy  |
+| `<config-file>`| Path to application.yaml  |
+| `<data-file>` | Optional path to application_configuration.json  |
 
-# Description of functions in cp_api_function.sh #
+## Function: stop_a1pms ##
 
-## Function: use_control_panel_http ##
+Stop the a1pms container (docker) or scale it to zero (kubernetes).
+| arg list |
+|--|
+|  None |
 
-Set http as the protocol to use for all communication to the Control Panel
+## Function: start_stopped_a1pms ##
+
+Start a previously stopped a1pms container (docker) or scale it to 1 (kubernetes).
 | arg list |
 |--|
-| None |
+|  None |
 
-## Function: use_control_panel_https ##
+## Function: prepare_a1pms_config ##
 
-Set https as the protocol to use for all communication to the Control Panel
+Function to prepare an a1pms config based on the previously configured (and started simulators). Note that all simulator must be running and the test script has to configure if http or https shall be used for the components (this is done by the functions 'use_simulator_http', 'use_simulator_https', 'use_sdnc_http', 'use_sdnc_https', 'use_mr_http', 'use_mr_https')
 | arg list |
 |--|
-| None |
+| `SDNC|NOSDNC <output-file>` |
 
-## Function: start_control_panel ##
+| parameter | description |
+| --------- | ----------- |
+| `SDNC` | Configure with controller |
+| `NOSDNC` | Configure without controller |
+| `<output-file>` | The path to the json output file containing the prepared config. This file is used in 'a1pms_load_config'  |
 
-Start the Control Panel container
+## Function: a1pms_load_config ##
+
+Load the config into a config map (kubernetes only).
 | arg list |
 |--|
-| None |
+|  `<data-file>` |
 
-# Description of functions in cr_api_functions.sh #
+| parameter | description |
+| --------- | ----------- |
+|  `<data-file>` | Path to application_configuration.json  |
 
-## Function: use_cr_http ##
+## Function: set_a1pms_debug ##
 
-Use http for getting event from CR.  The admin API is not affected. This is the default.
+Configure the A1PMS log on debug level. The A1PMS must be running.
 | arg list |
 |--|
 | None |
 
-## Function: use_cr_https ##
+## Function: set_a1pms_trace ##
 
-Use https for getting event from CR. The admin API is not affected.
-Note: Not yet used as callback event is not fully implemented/deciced.
+Configure the A1PMS log on trace level. The A1PMS must be running.
 | arg list |
 |--|
 | None |
 
-## Function: start_cr ##
+## Function: use_a1pms_retries ##
 
-Start the Callback Receiver container in docker or kube depending on start mode.
+Configure the A1PMS to make up-to 5 retries if an API call returns any of the specified http return codes.
 | arg list |
 |--|
-| None |
+| `[<response-code>]*` |
 
-## Function: cr_equal ##
+## Function: check_a1pms_logs ##
 
-Tests if a variable value in the Callback Receiver (CR) simulator is equal to a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
-See the 'cr' dir for more details.
+Check the A1PMS log for any warnings and errors and print the count of each.
 | arg list |
 |--|
-| `<cr-path-id> <variable-name> <target-value> [ <timeout-in-sec> ]` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<cr-path-id>` |  Variable index to CR |
-| `<variable-name>` | Variable name in the CR  |
-| `<target-value>` | Target value for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+## Function: a1pms_equal ##
 
-## Function: cr_greater_or_equal ##
-Tests if a variable value in the Callback Receiver (CR) simulator is equal to or greater than a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to or greater than the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+Tests if the array length of a json array in the A1PMS simulator is equal to a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the array length is equal to the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the array length becomes equal to the target value or not.
 See the 'cr' dir for more details.
+
 | arg list |
 |--|
-| `<cr-path-id>  <variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<cr-path-id>` |  Variable index to CR |
-| `<variable-name>` | Variable name in the CR  |
-| `<target-value>` | Target value for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+| `<variable-name>` | Relative url. Example 'json:policy_types' - checks the json array length of the url /policy_types  |
+| `<target-value>` | Target value for the length  |
+| `<timeout-in-sec>` | Max time to wait for the length to reach the target value  |
 
-## Function: cr_contains_str ##
+## Function: a1pms_api_get_policies ##
 
-Tests if a variable value in the CR contains a target string.
-Without the timeout, the test sets pass or fail immediately depending on if the variable contains the target string or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value contains the target string or not.
-See the 'a1-interface' repo for more details.
+Test of GET '/policies' or V2 GET '/v2/policy-instances' and optional check of the array of returned policies.
+To test the response code only, provide the response code parameter as well as the following three parameters.
+To also test the response payload add the 'NOID' for an expected empty array or repeat the last five/seven parameters for each expected policy.
 
 | arg list |
 |--|
-| `<cr-path-id>  <variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <policy-type-id>\|NOTYPE [ NOID \| [<policy-id> <ric-id> <service-id> EMPTY\|<policy-type-id> <template-file>]*]` |
 
+| arg list V2 |
+|--|
+| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <policy-type-id>\|NOTYPE [ NOID \| [<policy-id> <ric-id> <service-id> EMPTY\|<policy-type-id> <transient> <notification-url> <template-file>]*]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<cr-path-id>` |  Variable index to CR |
-| `<variable-name>` | Variable name in the CR  |
-| `<target-value>` | Target substring for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+| `<response-code>` | Expected http response code |
+| `<ric-id>` | Id of the ric  |
+| `NORIC` | Indicator that no ric is provided  |
+| `<service-id>` | Id of the service  |
+| `NOSERVICE` | Indicator that no service id is provided  |
+| `<policy-type-id>` |  Id of the policy type |
+| `NOTYPE` | Indicator that no type id is provided  |
+| `NOID` |  Indicator that no policy id is provided - indicate empty list of policies|
+| `<policy-id>` |  Id of the policy |
+| `EMPTY` |  Indicate for the special empty policy type |
+| `transient` |  Transient, true or false |
+| `notification-url` |  Url for notifications |
+| `<template-file>` |  Path to the template file for the policy (same template used when creating the policy) |
 
-## Function: cr_read ##
+## Function: a1pms_api_get_policy ##
+
+Test of GET '/policy' or V2 GET '/v2/policies/{policy_id}' and optional check of the returned json payload.
+To test the the response code only, provide the expected response code and policy id.
+To test the contents of the returned json payload, add a path to the template file used when creating the policy.
 
-Reads the value of a variable in the CR simulator. The value is intended to be passed to a env variable in the test script.
-See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<cr-path-id> <variable-name>` |
+| `<response-code>  <policy-id> [<template-file>]` |
+
+| arg list V2|
+|--|
+| `<response-code> <policy-id> [ <template-file> <service-name> <ric-id> <policytype-id>\|NOTYPE <transient> <notification-url>\|NOURL ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<cr-path-id>` |  Variable index to CR |
-| `<variable-name>` | Variable name in the CR  |
+| `<response-code>` | Expected http response code |
+| `<policy-id>` |  Id of the policy |
+| `<template-file>` |  Path to the template file for the policy (same template used when creating the policy) |
+| `<service-id>` | Id of the service  |
+| `<ric-id>` | Id of the ric  |
+| `<policy-type-id>` |  Id of the policy type |
+| `NOTYPE` | Indicator that no type id is provided  |
+| `transient` |  Transient, true or false |
+| `notification-url` |  Url for notifications |
 
-## Function: cr_delay_callback ##
+## Function: a1pms_api_put_policy ##
 
-Function to configure write delay on callbacks. Delay given in seconds. Setting remains until removed.
+Test of PUT '/policy' or V2 PUT '/policies'.
+If more than one policy shall be created, add a count value to indicate the number of policies to create. Note that if more than one policy shall be created the provided policy-id must be numerical (will be used as the starting id).
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id> [<delay-in-seconds>]`|
+| `<response-code> <service-name> <ric-id> <policytype-id> <policy-id> <transient> <template-file> [<count>]` |
+
+| arg list V2 |
+|--|
+| `<response-code> <service-name> <ric-id> <policytype-id>\|NOTYPE <policy-id> <transient>\|NOTRANSIENT <notification-url>\|NOURL <template-file> [<count>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` |  Variable index to CR |
-| `<delay-in-seconds>` |  Delay in seconds. If omitted, the delay is removed |
+| `<service-id>` | Id of the service  |
+| `<ric-id>` | Id of the ric  |
+| `<policy-type-id>` |  Id of the policy type |
+| `<policy-id>` |  Id of the policy. This value shall be a numeric value if more than one policy shall be created |
+| `transient>` |  Transient 'true' or 'false'. 'NOTRANSIENT' can be used to indicate using the default value (no transient value provided) |
+| `notification-url` |  Url for notifications |
+|`NOURL`| Indicator for no url |
+| `<template-file>` |  Path to the template file for the policy |
+| `<count>` |  An optional count (default is 1). If a value greater than 1 is given, the policy ids will use the given policy id as the first id and add 1 to that id for each new policy |
 
-## Function: cr_api_check_all_sync_events ##
+## Function: a1pms_api_put_policy_batch ##
 
-Check the contents of all ric events received for a callback id.
+This tests the same as function 'a1pms_api_put_policy' except that all put requests are sent to dmaap in one go and then the responses are polled one by one.
+If the a1pms api is not configured to use dmaap (see 'use_a1pms_dmaap', 'use_a1pms_rest_http' and 'use_a1pms_rest_https'), an error message is printed.
+For arg list and parameters, see 'a1pms_api_put_policy'.
+
+## Function: a1pms_api_put_policy_parallel ##
+
+This tests the same as function 'a1pms_api_put_policy' except that the policy created is spread out over a number of processes and it only uses the a1pms rest API. The total number of policies created is determined by the product of the parameters 'number-of-rics' and 'count'. The parameter 'number-of-threads' should not be evenly divisible by the product of the parameters 'number-of-rics' and 'count' - this is to ensure that one process does not handle the creation of all the policies in one ric.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id>  <id> [ EMPTY \| ( <ric-id> )+ ]` |
+| `<response-code> <service-name> <ric-id-base> <number-of-rics> <policytype-id> <policy-start-id> <transient> <template-file> <count-per-ric> <number-of-threads>`
+
+| arg list |
+|--|
+| `<response-code> <service-name> <ric-id-base> <number-of-rics> <policytype-id> <policy-start-id> <transient> <notification-url>\|NOURL <template-file> <count-per-ric> <number-of-threads>`
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<id>` | Id of the callback destination  |
-| `EMPTY` | Indicator for an empty list  |
-| `<ric-id>` | Id of the ric  |
+| `<service-id>` | Id of the service  |
+| `<ric-id-base>` | The base id of the rics, ie ric id without the sequence number. The sequence number is added during processing  |
+| `<number-of-rics>` | The number of rics, assuming the first index is '1'. The index is added to the 'ric-id-base' id  |
+| `<policy-type-id>` |  Id of the policy type |
+| `<policy-start-id>` |  Id of the policy. This value shall be a numeric value and will be the id of the first policy |
+| `transient>` |  Transient 'true' or 'false'. 'NOTRANSIENT' can be used to indicate using the default value (no transient value provide) |
+| `notification-url` |  Url for notifications |
+| `<template-file>` |  Path to the template file for the policy |
+| `<count-per-ric>` |  Number of policies per ric |
+| `<number-of-threads>` |  Number of threads (processes) to run in parallel |
 
-## Function: cr_api_check_all_ics_events ##
+## Function: a1pms_api_delete_policy ##
 
-Check the contents of all current status events for one id from ICS
+This tests the DELETE '/policy' or V2 DELETE '/v2/policies/{policy_id}'. Removes the indicated policy or a 'count' number of policies starting with 'policy-id' as the first id.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id> <id> [ EMPTY \| ( <status> )+ ]` |
+| `<response-code> <policy-id> [<count>]`
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<id>` | Id of the callback destination  |
-| `EMPTY` | Indicator for an empty list  |
-| `<status>` | Status string  |
+| `<policy-id>` |  Id of the policy |
+| `<count>` |  An optional count of policies to delete. The 'policy-id' will be the first id to be deleted. |
 
-## Function: cr_api_check_all_ics_subscription_events ##
+## Function: a1pms_api_delete_policy_batch ##
 
-Check the contents of all current subscription events for one id from ICS
+This tests the same as function 'a1pms_api_delete_policy' except that all delete requests are sent to dmaap in one go and then the responses are polled one by one.
+If the a1pms api is not configured to used dmaap (see 'use_a1pms_dmaap', 'use_a1pms_rest_http' and 'use_a1pms_rest_https'), an error message is printed.
+For arg list and parameters, see 'a1pms_api_delete_policy'.
+
+## Function: a1pms_api_delete_policy_parallel ##
+
+This tests the same as function 'a1pms_api_delete_policy' except that the policy deleted is spread out over a number of processes and it only uses the a1pms rest API. The total number of policies deleted is determined by the product of the parameters 'number-of-rics' and 'count'. The parameter 'number-of-threads' shall be selected to be not evenly divisible by the product of the parameters 'number-of-rics' and 'count' - this is to ensure that one process does not handle the deletion of all the policies in one ric.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id>  <id> [ EMPTY | ( <type-id> <schema> <registration-status> )+ ]` |
+| `<response-code> <ric-id-base> <number-of-rics> <policy-start-id> <count-per-ric> <number-of-threads>`
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<id>` | Id of the callback destination  |
-| `EMPTY` | Indicator for an empty list  |
-| `<type-id>` | Id of the data type  |
-| `<schema>` | Path to typeschema file  |
-| `<registration-status>` | Status string  |
+| `<ric-id-base>` | The base id of the rics, ie ric id without the sequence number. The sequence number is added during processing  |
+| `<number-of-rics>` | The number of rics, assuming the first index is '1'  |
+| `<policy-start-id>` |  Id of the policy. This value shall be a numeric value and will be the id of the first policy |
+| `<count-per-ric>` |  Number of policies per ric |
+| `<number-of-threads>` |  Number of threads (processes) to run in parallel |
 
-## Function: cr_api_reset ##
+## Function: a1pms_api_get_policy_ids ##
 
-Reset the callback receiver
+Test of GET '/policy_ids' or V2 GET '/v2/policies'.
+To test response code only, provide the response code parameter as well as the following three parameters.
+To also test the response payload add the 'NOID' for an expected empty array or repeat the 'policy-instance-id' for each expected policy id.
 
 | arg list |
 |--|
-| `<cr-path-id>` |
+| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <type-id>\|NOTYPE ([<policy-instance-id]*\|NOID)` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<cr-path-id>` | Variable index for CR  |
+| `<response-code>` | Expected http response code |
+| `<ric-id>` | Id of the ric  |
+| `NORIC` | Indicator that no ric is provided  |
+| `<service-id>` | Id of the service  |
+| `NOSERVICE` | Indicator that no service id is provided  |
+| `type-id>` |  Id of the policy type |
+| `NOTYPE` | Indicator that no type id is provided  |
+| `NOID` |  Indicator that no policy id is provided - indicate empty list of policies|
+| `<policy-instance-id>` |  Id of the policy |
 
-## Function: cr_api_check_all_genric_json_events ##
+## Function: a1pms_api_get_policy_schema ##
 
-Check the contents of all json events for path
+Test of V2 GET '/v2/policy-types/{policyTypeId}' and optional check of the returned json schema.
+To test the response code only, provide the expected response code and policy type id.
+To test the contents of the returned json schema, add a path to a schema file to compare with.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id>  <topic-url> (EMPTY | <json-msg>+ )` |
+| `<response-code> <policy-type-id> [<schema-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<topic-url>` | Topic url  |
-| `EMPTY` | Indicator for an empty list  |
-| `json-msg` | Json msg string to compare with  |
+| `<policy-type-id>` |  Id of the policy type |
+| `<schema-file>` |  Path to the schema file for the policy type |
 
-## Function: cr_api_check_single_genric_json_event ##
+## Function: a1pms_api_get_policy_schema ##
 
-Check a single (oldest) json event (or none if empty) for path
+Test of GET '/policy_schema' and optional check of the returned json schema.
+To test the response code only, provide the expected response code and policy type id.
+To test the contents of the returned json schema, add a path to a schema file to compare with.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id> <topic-url> (EMPTY | <json-msg> )` |
+| `<response-code> <policy-type-id> [<schema-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<topic-url>` | Topic url  |
-| `EMPTY` | Indicator for no msg  |
-| `json-msg` | Json msg string to compare with  |
+| `<policy-type-id>` |  Id of the policy type |
+| `<schema-file>` |  Path to the schema file for the policy type |
 
-## Function: cr_api_check_single_genric_event_md5 ##
+## Function: a1pms_api_get_policy_schemas ##
 
-Check a single (oldest) json in md5 format (or none if empty) for path.
-Note that if a json message is given, it shall be compact, no ws except inside string.
-The MD5 will generate different hash if whitespace is present or not in otherwise equivalent json.
+Test of GET '/policy_schemas' and optional check of the returned json schemas.
+To test the response code only, provide the expected response code and ric id (or NORIC if no ric is given).
+To test the contents of the returned json schema, add a path to a schema file to compare with (or NOFILE to represent an empty '{}' type)
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id> <topic-url> (EMPTY | <data-msg> )` |
+| `<response-code>  <ric-id>\|NORIC [<schema-file>\|NOFILE]*` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<topic-url>` | Topic url  |
-| `EMPTY` | Indicator for no msg  |
-| `data-msg` | msg string to compare with  |
+| `<ric-id>` |  Id of the ric |
+| `NORIC` |  No ric id given |
+| `<schema-file>` |  Path to the schema file for the policy type |
+| `NOFILE` |  Indicate the template for an empty type |
 
-## Function: cr_api_check_single_genric_event_md5_file ##
+## Function: a1pms_api_get_policy_status ##
 
-Check a single (oldest) event in md5 format (or none if empty) for path.
-Note that if a file with json message is given, the json shall be compact, no ws except inside string and not newlines.
-The MD5 will generate different hash if ws/newlines is present or not in otherwise equivalent json
+Test of GET '/policy_status' or V2 GET '/policies/{policy_id}/status'.
 
 | arg list |
 |--|
-| `<response-code> <cr-path-id> <topic-url> (EMPTY | <data-file> )` |
+| `<response-code> <policy-id> (STD\|STD2 <enforce-status>\|EMPTY [<reason>\|EMPTY])\|(OSC <instance-status> <has-been-deleted>)` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<cr-path-id>` | Variable index for CR  |
-| `<topic-url>` | Topic url  |
-| `EMPTY` | Indicator for no msg  |
-| `data-file` | path to file to compare with  |
-
-# Description of functions in dmaapadp_api_functions.sh #
+| `<policy-id>` |  Id of the policy |
+| `STD` |  Indicator of status of Standarized A1 |
+| `STD2` |  Indicator of status of Standarized A1 version 2 |
+| `<enforce-status>` |  Enforcement status |
+| `<reason>` |  Optional reason |
+| `EMPTY` |  Indicator of empty string status or reason |
+| `OSC` |  Indicator of status of Non-Standarized OSC A1 |
+| `<instance-status>` |  Instance status |
+| `<has-been-deleted>` |  Deleted status, true or false |
 
-## Function: use_dmaapadp_http ##
+## Function: a1pms_api_get_policy_types ##
 
-Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+Test of GET '/policy_types' or  V2 GET '/v2/policy-types' and optional check of the returned ids.
+To test the response code only, provide the expected response code and ric id (or NORIC if no ric is given).
+To test the contents of the returned json payload, add the list of expected policy type id (or 'EMPTY' for the '{}' type)
 
 | arg list |
 |--|
-| None |
-
-## Function: use_dmaapadp_https ##
-
-Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+| `<response-code> [<ric-id>\|NORIC [<policy-type-id>\|EMPTY [<policy-type-id>]*]]` |
 
-| arg list |
-|--|
-| None |
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<ric-id>` |  Id of the ric |
+| `NORIC` |  No ric id given |
+| `<policy-type-id>` |  Id of the policy type |
+| `EMPTY` |  Indicate the empty type |
 
-## Function: start_dmaapadp ##
+## Function: a1pms_api_get_status ##
 
-Start the dmaap adator service container in docker or kube depending on running mode.
+Test of GET /status or V2 GET /status
 
 | arg list |
 |--|
-| (kube) `PROXY\|NOPROXY <config-file> [ <data-file> ]` |
+| `<response-code>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `PROXY` | Configure with http proxy, if proxy is started  |
-| `NOPROXY` | Configure without http proxy  |
-| `<config-file>`| Path to application.yaml  |
-| `<data-file>` | Optional path to application_configuration.json  |
+| `<response-code>` | Expected http response code |
 
-## Function: set_dmaapadp_trace ##
+## Function: a1pms_api_get_ric ##
+
+Test of GET '/ric' or V2 GET '/v2/rics/ric'
+To test the response code only, provide the expected response code and managed element id.
+To test the returned ric id, provide the expected ric id.
 
-Configure the dmaap adaptor service log on trace level. The app must be running.
 | arg list |
 |--|
-| None |
+| `<reponse-code> <managed-element-id> [<ric-id>]` |
 
-# Description of functions in dmaapmed_api_functions.sh #
+| arg list V2 |
+|--|
+| `<reponse-code> <management-element-id>\|NOME <ric-id>\|<NORIC> [<string-of-ricinfo>]` |
 
-## Function: use_dmaapmed_http ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<managed-element-id>` |  Id of the managed element |
+| `NOME` |  Indicator for no ME |
+| `ric-id` |  Id of the ric |
+| `NORIC` |  Indicator no RIC |
+| `string-of-ricinfo` |  String of ric info |
 
-Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+## Function: a1pms_api_get_rics ##
+
+Test of GET '/rics' or V2 GET '/v2/rics' and optional check of the returned json payload (ricinfo).
+To test the response code only, provide the expected response code and policy type id (or NOTYPE if no type is given).
+To test also the returned payload, add the formatted string of info in the returned payload.
+Format of ricinfo: <br>`<ric-id>:<list-of-mes>:<list-of-policy-type-ids>`<br>
+Example <br>`<space-separate-string-of-ricinfo> = "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1,2,4 ricsim_g1_1:me2_........."`
 
 | arg list |
 |--|
-| None |
+| `<reponse-code> <policy-type-id>\|NOTYPE [<space-separate-string-of-ricinfo>]` |
 
-## Function: use_dmaapmed_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<policy-type-id>` |  Policy type id of the ric |
+| `NOTYPE>` |  No type given |
+| `<space-separate-string-of-ricinfo>` |  A space separated string of ric info - needs to be quoted |
 
-Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+## Function: a1pms_api_put_service ##
 
+Test of PUT '/service' or V2 PUT '/service'.
 | arg list |
 |--|
-| None |
+| `<response-code>  <service-name> <keepalive-timeout> <callbackurl>` |
 
-## Function: start_dmaapmed ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<service-name>` |  Service name |
+| `<keepalive-timeout>` |  Timeout value |
+| `<callbackurl>` |  Callback url |
 
-Start the dmaap mediator service container in docker or kube depending on running mode.
+## Function: a1pms_api_get_services ##
+
+Test of GET '/service' or V2 GET '/v2/services' and optional check of the returned json payload.
+To test only the response code, omit all parameters except the expected response code.
+To test the returned json, provide the parameters after the response code.
 
 | arg list |
 |--|
-| None |
+| `<response-code> [ (<query-service-name> <target-service-name> <keepalive-timeout> <callbackurl>) \| (NOSERVICE <target-service-name> <keepalive-timeout> <callbackurl> [<target-service-name> <keepalive-timeout> <callbackurl>]* )]` |
 
-# Description of functions in httpproxy_api_functions.sh #
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<query-service-name>` |  Service name for the query |
+| `<target-service-name>` |  Target service name|
+| `<keepalive-timeout>` |  Timeout value |
+| `<callbackurl>` |  Callback url |
+| `NOSERVICE` |  Indicator of no target service name |
 
-## Function: use_http_proxy_http ##
+## Function: a1pms_api_get_service_ids ##
+
+Test of GET '/services' or V2 GET /'v2/services'. Only check of service ids.
 
-Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 | arg list |
 |--|
-| None |
+| `<response-code> [<service-name>]*` |
 
-## Function: use_http_proxy_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<service-name>` |  Service name |
 
-Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
-| arg list |
-|--|
-| None |
+## Function: a1pms_api_delete_services ##
 
-## Function: start_http_proxy ##
+Test of DELETE '/services' or V2 DELETE '/v2/services/{serviceId}'
 
-Start the http proxy container in docker or kube depending on running mode.
 | arg list |
 |--|
-| None |
+| `<response-code> [<service-name>]*` |
 
-# Description of functions in helmmanager_api_functions.sh #
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<service-name>` |  Service name |
 
-## Function: use_helm_manager_http ##
+## Function: a1pms_api_put_services_keepalive ##
+
+Test of PUT '/services/keepalive' or V2 PUT '/v2/services/{service_id}/keepalive'
 
-Use http for all API calls to the Helm Manager. This is the default protocol.
 | arg list |
 |--|
-| None |
+| `<response-code> <service-name>` |
 
-## Function: use_helm_manager_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<service-name>` |  Service name |
 
-Use https for all API calls to the Helm Manager.
-| arg list |
-|--|
-| None |
+## Function: a1pms_api_put_configuration ##
 
-## Function: start_helm_manager ##
+Test of PUT '/v2/configuration'
 
-Start the Helm Manager container in docker or kube depending on running mode.
 | arg list |
 |--|
-| None |
-
-## Function: helm_manager_api_get_charts ##
-
-Get all charts and compare the expected contents.
-| arg list |
-|--|
-| `<response-code> [ EMPTY | ( <chart> <version> <namespace> <release> <repo> )+ ]` |
+| `<response-code> <config-file>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `EMPTY` | Indicator for empty list  |
-| `<chart>`| Name of the chart  |
-| `<version>`| Version of the chart  |
-| `<namespace>`| Namespace to of the chart  |
-| `<release>`| Release name of the chart  |
-| `<repo>`| Repository of the chart  |
+| `<response-code>` | Expected http response code |
+| `<config-file>` |  Path json config file |
 
-## Function: helm_manager_api_post_repo ##
+## Function: a1pms_api_get_configuration ##
+
+Test of GET '/v2/configuration'
 
-Add repo to the helm manager.
 | arg list |
 |--|
-| `<response-code> <repo-name> <repo-protocol> <repo-address> <repo-port>` |
+| `<response-code> [<config-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<repo-name>` | Name of the repo  |
-| `<repo-protocol>`| Protocol http or https  |
-| `<repo-address>`| Host name of the repo |
-| `<repo-port>`| Host port of the repo  |
+| `<response-code>` | Expected http response code |
+| `<config-file>` |  Path json config file to compare the retrieved config with |
 
-## Function: helm_manager_api_post_onboard_chart ##
+## Function: a1pms_kube_pvc_reset ##
+Admin reset to remove all policies and services
+All types and instances etc are removed - types and instances in a1 sims need to be removed separately
+NOTE - only works in kubernetes and the pod should not be running
 
-Onboard a chart to the helm manager.
 | arg list |
 |--|
-| `<response-code> <repo> <chart> <version> <release> <namespace>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<repo>`| Target repo of the chart  |
-| `<chart>`| Name of the chart  |
-| `<version>`| Version of the chart  |
-| `<namespace>`| Namespace to of the chart  |
-| `<release>`| Release name of the chart  |
+| None |
 
-## Function: helm_manager_api_post_install_chart ##
 
-Install an onboarded chart.
-| arg list |
-|--|
-| `<response-code> <chart> <version>` |
+# Description of functions in authsidecar_api_function.sh #
+Only common API functions in this file.
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<chart>`| Name of the chart  |
-| `<version>`| Version of the chart  |
 
-## Function: helm_manager_api_uninstall_chart ##
+## Function: start_chart_museum ##
 
-Uninstall a chart.
+Start the Chart Museum
 | arg list |
 |--|
-| `<response-code> <chart> <version>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<chart>`| Name of the chart  |
-| `<version>`| Version of the chart  |
+| None |
 
-## Function: helm_manager_api_delete_chart ##
+## Function: chartmus_upload_test_chart ##
 
-Delete a chart.
+Upload a package chart to chartmusem
 | arg list |
 |--|
-| `<response-code> <chart> <version>` |
+| `<chart-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<chart>`| Name of the chart  |
-| `<version>`| Version of the chart  |
+| `<chart-name>` | Name of the chart to upload |
 
-## Function: helm_manager_api_exec_add_repo ##
+## Function: chartmus_delete_test_chart ##
 
-Add repo in helm manager by helm using exec.
+Delete a chart in chartmusem
 | arg list |
 |--|
-| `<repo-name> <repo-url>` |
+| `<chart-name> [<version>]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected response code |
-| `<repo-name>`| Name of the repo  |
-| `<repo-url>`| Full url to the repo. Url must be accessible by the container  |
-
-
-# Description of functions in ics_api_functions.sh #
-
-## Function: use_ics_rest_http ##
+| `<chart-name>` | Name of the chart to delete |
+| `<version>` | Chart version, default is 0.1.0 |
 
-Use http for all API calls to the ICS. This is the default protocol.
-| arg list |
-|--|
-| None |
+# Description of functions in cp_api_function.sh #
 
-## Function: use_ics_rest_https ##
+## Function: use_control_panel_http ##
 
-Use https for all API calls to the ICS.
+Set http as the protocol to use for all communication to the Control Panel
 | arg list |
 |--|
 | None |
 
-## Function: use_ics_dmaap_http ##
+## Function: use_control_panel_https ##
 
-Send and recieve all API calls to the ICS over Dmaap via the MR using http.
+Set https as the protocol to use for all communication to the Control Panel
 | arg list |
 |--|
 | None |
 
-## Function: use_ics_dmaap_https ##
+## Function: start_control_panel ##
 
-Send and recieve all API calls to the ICS over Dmaap via the MR using https.
+Start the Control Panel container
 | arg list |
 |--|
 | None |
 
-## Function: start_ics ##
-
-Start the ICS container in docker or kube depending on running mode.
-| arg list |
-|--|
-| `PROXY|NOPROXY <config-file>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `PROXY` | Configure with http proxy, if proxy is started  |
-| `NOPROXY` | Configure without http proxy  |
-| `<config-file>`| Path to application.yaml  |
+# Description of functions in cr_api_functions.sh #
 
-## Function: stop_ics ##
+## Function: use_cr_http ##
 
-Stop the ICS container.
+Use http for getting event from CR.  The admin API is not affected. This is the default.
 | arg list |
 |--|
 | None |
 
-## Function: start_stopped_ics ##
+## Function: use_cr_https ##
 
-Start a previously stopped ics.
+Use https for getting event from CR. The admin API is not affected.
+Note: Not yet used as callback event is not fully implemented/deciced.
 | arg list |
 |--|
 | None |
 
-## Function: set_ics_debug ##
+## Function: start_cr ##
 
-Configure the ICS log on debug level. The ICS must be running.
+Start the Callback Receiver container in docker or kube depending on start mode.
 | arg list |
 |--|
 | None |
 
-## Function: set_ics_trace ##
+## Function: cr_equal ##
 
-Configure the ICS log on trace level. The ICS must be running.
+Tests if a variable value in the Callback Receiver (CR) simulator is equal to a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+See the 'cr' dir for more details.
 | arg list |
 |--|
-| None |
+| `<cr-path-id> <variable-name> <target-value> [ <timeout-in-sec> ]` |
 
-## Function: use_ics_retries ##
+| parameter | description |
+| --------- | ----------- |
+| `<cr-path-id>` |  Variable index to CR |
+| `<variable-name>` | Variable name in the CR  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
 
-Perform curl retries when making direct call to ICS for the specified http response codes
-Speace separated list of http response codes
+## Function: cr_greater_or_equal ##
+Tests if a variable value in the Callback Receiver (CR) simulator is equal to or greater than a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to or greater than the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+See the 'cr' dir for more details.
 | arg list |
 |--|
-| `[<response-code>]*` |
+| `<cr-path-id>  <variable-name> <target-value> [ <timeout-in-sec> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code to make retry for  |
-
-## Function: check_ics_logs ##
-
-Check the ICS log for any warnings and errors and print the count of each.
-| arg list |
-|--|
-| None |
+| `<cr-path-id>` |  Variable index to CR |
+| `<variable-name>` | Variable name in the CR  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
 
-## Function: ics_equal ##
+## Function: cr_contains_str ##
 
-Tests if a variable value in the ICS is equal to a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+Tests if a variable value in the CR contains a target string.
+Without the timeout, the test sets pass or fail immediately depending on if the variable contains the target string or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value contains the target string or not.
 See the 'a1-interface' repo for more details.
 
 | arg list |
 |--|
-| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<cr-path-id>  <variable-name> <target-value> [ <timeout-in-sec> ]` |
+
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in ics  |
-| `<target-value>` | Target value for the variable  |
+| `<cr-path-id>` |  Variable index to CR |
+| `<variable-name>` | Variable name in the CR  |
+| `<target-value>` | Target substring for the variable  |
 | `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
 
-## Function: ics_api_a1_get_job_ids ##
-
-Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs' and optional check of the array of returned job ids.
-To test the response code only, provide the response code parameter as well as a type id and an owner id.
-To also test the response payload add the 'EMPTY' for an expected empty array or repeat the last parameter for each expected job id.
+## Function: cr_read ##
 
+Reads the value of a variable in the CR simulator. The value is intended to be passed to a env variable in the test script.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<response-code> <type-id>  <owner-id>\|NOOWNER [ EMPTY \| <job-id>+ ]` |
+| `<cr-path-id> <variable-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<owner-id>` | Id of the job owner  |
-| `NOOWNER` | No owner is given  |
-| `<job-id>` | Id of the expected job  |
-| `EMPTY` | The expected list of job id shall be empty  |
+| `<cr-path-id>` |  Variable index to CR |
+| `<variable-name>` | Variable name in the CR  |
 
-## Function: ics_api_a1_get_type ##
+## Function: cr_delay_callback ##
 
-Test of GET '/A1-EI/v1/eitypes/{eiTypeId}' and optional check of the returned schema.
-To test the response code only, provide the response code parameter as well as the type-id.
-To also test the response payload add a path to the expected schema file.
+Function to configure write delay on callbacks. Delay given in seconds. Setting remains until removed.
 
 | arg list |
 |--|
-| `<response-code> <type-id> [<schema-file>]` |
+| `<response-code> <cr-path-id> [<delay-in-seconds>]`|
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<schema-file>` | Path to a schema file to compare with the returned schema  |
+| `<cr-path-id>` |  Variable index to CR |
+| `<delay-in-seconds>` |  Delay in seconds. If omitted, the delay is removed |
 
-## Function: ics_api_a1_get_type_ids ##
+## Function: cr_api_check_all_sync_events ##
 
-Test of GET '/A1-EI/v1/eitypes' and optional check of returned list of type ids.
-To test the response code only, provide the response only.
-To also test the response payload add the list of expected type ids (or EMPTY if the list is expected to be empty).
+Check the contents of all ric events received for a callback id.
 
 | arg list |
 |--|
-| `<response-code> [ (EMPTY \| [<type-id>]+) ]` |
+| `<response-code> <cr-path-id>  <id> [ EMPTY \| ( <ric-id> )+ ]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `EMPTY` | The expected list of type ids shall be empty  |
-| `<type-id>` | Id of the EI type  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<id>` | Id of the callback destination  |
+| `EMPTY` | Indicator for an empty list  |
+| `<ric-id>` | Id of the ric  |
 
-## Function: ics_api_a1_get_job_status ##
+## Function: cr_api_check_all_ics_events ##
 
-Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}/status' and optional check of the returned status.
-To test the response code only, provide the response code, type id and job id.
-To also test the response payload add the expected status.
+Check the contents of all current status events for one id from ICS
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id> [<status>]` |
+| `<response-code> <cr-path-id> <id> [ EMPTY \| ( <status> )+ ]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<job-id>` | Id of the job  |
-| `<status>` | Expected status  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<id>` | Id of the callback destination  |
+| `EMPTY` | Indicator for an empty list  |
+| `<status>` | Status string  |
 
-## Function: ics_api_a1_get_job ##
+## Function: cr_api_check_all_ics_subscription_events ##
 
-Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}' and optional check of the returned job.
-To test the response code only, provide the response code, type id and job id.
-To also test the response payload add the remaining parameters.
+Check the contents of all current subscription events for one id from ICS
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id> [<target-url> <owner-id> <template-job-file>]` |
+| `<response-code> <cr-path-id>  <id> [ EMPTY | ( <type-id> <schema> <registration-status> )+ ]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<job-id>` | Id of the job  |
-| `<target-url>` | Expected target url for the job  |
-| `<owner-id>` | Expected owner for the job  |
-| `<template-job-file>` | Path to a job template for job parameters of the job  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<id>` | Id of the callback destination  |
+| `EMPTY` | Indicator for an empty list  |
+| `<type-id>` | Id of the data type  |
+| `<schema>` | Path to typeschema file  |
+| `<registration-status>` | Status string  |
 
-## Function: ics_api_a1_delete_job ##
+## Function: cr_api_reset ##
 
-Test of DELETE '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}'.
-To test, provide all the specified parameters.
+Reset the callback receiver
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id>` |
+| `<cr-path-id>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<job-id>` | Id of the job  |
+| `<cr-path-id>` | Variable index for CR  |
 
-## Function: ics_api_a1_put_job ##
+## Function: cr_api_check_all_generic_json_events ##
 
-Test of PUT '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}'.
-To test, provide all the specified parameters.
+Check the contents of all json events for path
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id> <target-url> <owner-id> <template-job-file>` |
+| `<response-code> <cr-path-id>  <topic-url> (EMPTY | <json-msg>+ )` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the EI type  |
-| `<job-id>` | Id of the job  |
-| `<target-url>` | Target url for the job  |
-| `<owner-id>` | Owner of the job  |
-| `<template-job-file>` | Path to a job template for job parameters of the job  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<topic-url>` | Topic url  |
+| `EMPTY` | Indicator for an empty list  |
+| `json-msg` | Json msg string to compare with  |
 
-## Function: ics_api_edp_get_type_ids ##
+## Function: cr_api_check_single_generic_json_event ##
 
-Test of GET '/ei-producer/v1/eitypes' or '/data-producer/v1/info-types' depending on ics version and an optional check of the returned list of type ids.
-To test the response code only, provide the response code.
-To also test the response payload add list of expected type ids (or EMPTY if the list is expected to be empty).
+Check a single (oldest) json event (or none if empty) for path
 
 | arg list |
 |--|
-| `<response-code> [ EMPTY \| <type-id>+]` |
+| `<response-code> <cr-path-id> <topic-url> (EMPTY | <json-msg> )` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<topic-url>` | Topic url  |
+| `EMPTY` | Indicator for no msg  |
+| `json-msg` | Json msg string to compare with  |
 
-## Function: ics_api_edp_get_producer_status ##
+## Function: cr_api_check_single_generic_event_md5 ##
 
-Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/status' or '/data-producer/v1/info-producers/{infoProducerId}/status' depending on ics version and optional check of the returned status.
-To test the response code only, provide the response code and producer id.
-To also test the response payload add the expected status.
+Check a single (oldest) json in md5 format (or none if empty) for path.
+Note that if a json message is given, it shall be compact, no ws except inside string.
+The MD5 will generate different hash if whitespace is present or not in otherwise equivalent json.
 
 | arg list |
 |--|
-| `<response-code> <producer-id> [<status>]` |
+| `<response-code> <cr-path-id> <topic-url> (EMPTY | <data-msg> )` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<status>` | The expected status string  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<topic-url>` | Topic url  |
+| `EMPTY` | Indicator for no msg  |
+| `data-msg` | msg string to compare with  |
 
-## Function: ics_api_edp_get_producer_ids ##
+## Function: cr_api_check_single_generic_event_md5_file ##
 
-Test of GET '/ei-producer/v1/eiproducers' and optional check of the returned producer ids.
-To test the response code only, provide the response.
-To also test the response payload add the list of expected producer-ids (or EMPTY if the list of ids is expected to be empty).
+Check a single (oldest) event in md5 format (or none if empty) for path.
+Note that if a file with json message is given, the json shall be compact, no ws except inside string and not newlines.
+The MD5 will generate different hash if ws/newlines is present or not in otherwise equivalent json
 
 | arg list |
 |--|
-| `<response-code> [ EMPTY \| <producer-id>+]` |
+| `<response-code> <cr-path-id> <topic-url> (EMPTY | <data-file> )` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+| `<cr-path-id>` | Variable index for CR  |
+| `<topic-url>` | Topic url  |
+| `EMPTY` | Indicator for no msg  |
+| `data-file` | path to file to compare with  |
 
-## Function: ics_api_edp_get_producer_ids_2 ##
+# Description of functions in dmaapadp_api_functions.sh #
 
-Test of GET '/ei-producer/v1/eiproducers' or '/data-producer/v1/info-producers' depending on ics version and optional check of the returned producer ids.
-To test the response code only, provide the response.
-To also test the response payload add the type (if any) and a list of expected producer-ids (or EMPTY if the list of ids is expected to be empty).
+## Function: use_dmaapadp_http ##
+
+Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 
 | arg list |
 |--|
-| `<response-code> [ ( NOTYPE \| <type-id> ) [ EMPTY \| <producer-id>+]` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
-| `EMPTY` | No type given  |
-| `<producer-id>` | Id of the producer  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+| None |
 
-## Function: ics_api_edp_get_type ##
+## Function: use_dmaapadp_https ##
 
-Test of GET '/ei-producer/v1/eitypes/{eiTypeId}' and optional check of the returned type.
-To test the response code only, provide the response and the type-id.
-To also test the response payload add a path to a job schema file and a list expected producer-id (or EMPTY if the list of ids is expected to be empty).
+Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 
 | arg list |
 |--|
-| `<response-code> <type-id> [<job-schema-file> (EMPTY \| [<producer-id>]+)]` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
-| `<job-schema-file>` | Path to a job schema file  |
-| `<producer-id>` | Id of the producer  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+| None |
 
-## Function: ics_api_edp_get_type_2 ##
+## Function: start_dmaapadp ##
 
-Test of GET '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
-To test the response code only, provide the response and the type-id.
-To also test the response payload add a path to a job schema file.
+Start the dmaap adator service container in docker or kube depending on running mode.
 
 | arg list |
 |--|
-| `<response-code> <type-id> [<job-schema-file>]` |
+| (kube) `PROXY\|NOPROXY <config-file> [ <data-file> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
-| `<job-schema-file>` | Path to a job schema file  |
-| `EMPTY` | The expected list of type ids shall be empty  |
-
-## Function: ics_api_edp_put_type_2 ##
+| `PROXY` | Configure with http proxy, if proxy is started  |
+| `NOPROXY` | Configure without http proxy  |
+| `<config-file>`| Path to application.yaml  |
+| `<data-file>` | Optional path to application_configuration.json  |
 
-Test of PUT '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
+## Function: set_dmaapadp_trace ##
 
+Configure the dmaap adaptor service log on trace level. The app must be running.
 | arg list |
 |--|
-| `<response-code> <type-id> [<job-schema-file>]` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
-| `<job-schema-file>` | Path to a job schema file  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+# Description of functions in dmaapmed_api_functions.sh #
 
-## Function: ics_api_edp_delete_type_2 ##
+## Function: use_dmaapmed_http ##
 
-Test of DELETE '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
+Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 
 | arg list |
 |--|
-| `<response-code> <type-id>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
+| None |
 
-## Function: ics_api_edp_get_producer ##
+## Function: use_dmaapmed_https ##
 
-Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}' and optional check of the returned producer.
-To test the response code only, provide the response and the producer-id.
-To also test the response payload add the remaining parameters defining thee producer.
+Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 
 | arg list |
 |--|
-| `<response-code> <producer-id> [<create-callback> <delete-callback> <supervision-callback> (EMPTY\| [<type-id> <schema-file>]+) ]` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<create-callback>` | Callback for create job  |
-| `<delete-callback>` | Callback for delete job  |
-| `<supervision-callback>` | Callback for producer supervision  |
-| `<type-id>` | Id of the type  |
-| `<schema-file>` | Path to a schema file  |
-| `EMPTY` | The expected list of type schema pairs shall be empty  |
+| None |
 
-## Function: ics_api_edp_get_producer_2 ##
+## Function: start_dmaapmed ##
 
-Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version and optional check of the returned producer.
-To test the response code only, provide the response and the producer-id.
-To also test the response payload add the remaining parameters defining thee producer.
+Start the dmaap mediator service container in docker or kube depending on running mode.
 
 | arg list |
 |--|
-| `<response-code> <producer-id> [<job-callback> <supervision-callback> (EMPTY \| <type-id>+) ]` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<job-callback>` | Callback for the url  |
-| `<supervision-callback>` | Callback for producer supervision  |
-| `<type-id>` | Id of the type  |
-| `EMPTY` | The expected list of types shall be empty  |
+| None |
 
-## Function: ics_api_edp_delete_producer ##
+# Description of functions in helmmanager_api_functions.sh #
 
-Test of DELETE '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version.
-To test, provide all parameters.
+## Function: use_helm_manager_http ##
 
+Use http for all API calls to the Helm Manager. This is the default protocol.
 | arg list |
 |--|
-| `<response-code> <producer-id>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-
-## Function: ics_api_edp_put_producer ##
+| None |
 
-Test of PUT '/ei-producer/v1/eiproducers/{eiProducerId}'.
-To test, provide all parameters. The list of type/schema pair may be empty.
+## Function: use_helm_manager_https ##
 
+Use https for all API calls to the Helm Manager.
 | arg list |
 |--|
-| `<response-code> <producer-id> <job-callback> <supervision-callback> (EMPTY \| [<type-id> <schema-file>]+)` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<job-callback>` | Callback for create/delete job  |
-| `<supervision-callback>` | Callback for producer supervision  |
-| `<type-id>` | Id of the type  |
-| `<schema-file>` | Path to a schema file  |
-| `EMPTY` | The list of type/schema pairs is empty  |
+## Function: start_helm_manager ##
 
-## Function: ics_api_edp_put_producer_2 ##
+Start the Helm Manager container in docker or kube depending on running mode.
+| arg list |
+|--|
+| None |
 
-Test of PUT '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version.
-To test, provide all parameters. The list of type/schema pair may be empty.
+## Function: helm_manager_api_get_charts ##
 
+Get all charts and compare the expected contents.
 | arg list |
 |--|
-| `<response-code> <producer-id> <job-callback> <supervision-callback> NOTYPE\|[<type-id>+]` |
+| `<response-code> [ EMPTY | ( <chart> <version> <namespace> <release> <repo> )+ ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<job-callback>` | Callback for create/delete job  |
-| `<supervision-callback>` | Callback for producer supervision  |
-| `<type-id>` | Id of the type  |
-| `NOTYPE` | The list of types is empty  |
-
-## Function: ics_api_edp_get_producer_jobs ##
+| `<response-code>` | Expected response code |
+| `EMPTY` | Indicator for empty list  |
+| `<chart>`| Name of the chart  |
+| `<version>`| Version of the chart  |
+| `<namespace>`| Namespace to of the chart  |
+| `<release>`| Release name of the chart  |
+| `<repo>`| Repository of the chart  |
 
-Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/eijobs' and optional check of the returned producer job.
-To test the response code only, provide the response and the producer-id.
-To also test the response payload add the remaining parameters.
+## Function: helm_manager_api_post_repo ##
 
+Add repo to the helm manager.
 | arg list |
 |--|
-| `<response-code> <producer-id> (EMPTY \| [<job-id> <type-id> <target-url> <job-owner> <template-job-file>]+)` |
+| `<response-code> <repo-name> <repo-protocol> <repo-address> <repo-port>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<job-id>` | Id of the job  |
-| `<type-id>` | Id of the EI type  |
-| `<target-url>` | Target url for data delivery  |
-| `<job-owner>` | Id of the job owner  |
-| `<template-job-file>` | Path to a job template file  |
-| `EMPTY` | The list of job/type/target/job-file tuples is empty  |
+| `<response-code>` | Expected response code |
+| `<repo-name>` | Name of the repo  |
+| `<repo-protocol>`| Protocol http or https  |
+| `<repo-address>`| Host name of the repo |
+| `<repo-port>`| Host port of the repo  |
 
-## Function: ics_api_edp_get_producer_jobs_2 ##
+## Function: helm_manager_api_post_onboard_chart ##
 
-Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/eijobs' or '/data-producer/v1/info-producers/{infoProducerId}/info-jobs' depending on ics version and optional check of the returned producer job.
-To test the response code only, provide the response and the producer-id.
-To also test the response payload add the remaining parameters.
+Onboard a chart to the helm manager.
+| arg list |
+|--|
+| `<response-code> <repo> <chart> <version> <release> <namespace>` |
 
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected response code |
+| `<repo>`| Target repo of the chart  |
+| `<chart>`| Name of the chart  |
+| `<version>`| Version of the chart  |
+| `<namespace>`| Namespace to of the chart  |
+| `<release>`| Release name of the chart  |
+
+## Function: helm_manager_api_post_install_chart ##
+
+Install an onboarded chart.
 | arg list |
 |--|
-| `<response-code> <producer-id> (EMPTY \| [<job-id> <type-id> <target-url> <job-owner> <template-job-file>]+)` |
+| `<response-code> <chart> <version>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<producer-id>` | Id of the producer  |
-| `<job-id>` | Id of the job  |
-| `<type-id>` | Id of the type  |
-| `<target-url>` | Target url for data delivery  |
-| `<job-owner>` | Id of the job owner  |
-| `<template-job-file>` | Path to a job template file  |
-| `EMPTY` | The list of job/type/target/job-file tuples is empty  |
+| `<response-code>` | Expected response code |
+| `<chart>`| Name of the chart  |
+| `<version>`| Version of the chart  |
 
-## Function: ics_api_service_status ##
+## Function: helm_manager_api_uninstall_chart ##
 
-Test of GET '/status'.
+Uninstall a chart.
+| arg list |
+|--|
+| `<response-code> <chart> <version>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected response code |
+| `<chart>`| Name of the chart  |
+| `<version>`| Version of the chart  |
+
+## Function: helm_manager_api_delete_chart ##
 
+Delete a chart.
 | arg list |
 |--|
-| `<response-code>` |
+| `<response-code> <chart> <version>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
+| `<response-code>` | Expected response code |
+| `<chart>`| Name of the chart  |
+| `<version>`| Version of the chart  |
 
-## Function: ics_api_idc_get_type_ids ##
+## Function: helm_manager_api_exec_add_repo ##
 
-Test of GET '/data-consumer/v1/info-types' and an optional check of the returned list of type ids.
-To test the response code only, provide the response code.
-To also test the response payload add list of expected type ids (or EMPTY if the list is expected to be empty).
+Add repo in helm manager by helm using exec.
+| arg list |
+|--|
+| `<repo-name> <repo-url>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected response code |
+| `<repo-name>`| Name of the repo  |
+| `<repo-url>`| Full url to the repo. Url must be accessible by the container  |
+
+# Description of functions in httpproxy_api_functions.sh #
+
+## Function: use_http_proxy_http ##
 
+Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 | arg list |
 |--|
-| `<response-code> [ EMPTY \| <type-id>+]` |
+| None |
+
+## Function: use_http_proxy_https ##
+
+Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+| arg list |
+|--|
+| None |
+
+## Function: start_http_proxy ##
+
+Start the http proxy container in docker or kube depending on running mode.
+| arg list |
+|--|
+| None |
+
+
+# Description of functions in ics_api_functions.sh #
+
+## Function: use_ics_rest_http ##
+
+Use http for all API calls to the ICS. This is the default protocol.
+| arg list |
+|--|
+| None |
+
+## Function: use_ics_rest_https ##
+
+Use https for all API calls to the ICS.
+| arg list |
+|--|
+| None |
+
+## Function: use_ics_dmaap_http ##
+
+Send and recieve all API calls to the ICS over Dmaap via the MR using http.
+| arg list |
+|--|
+| None |
+
+## Function: use_ics_dmaap_https ##
+
+Send and recieve all API calls to the ICS over Dmaap via the MR using https.
+| arg list |
+|--|
+| None |
+
+## Function: start_ics ##
+
+Start the ICS container in docker or kube depending on running mode.
+| arg list |
+|--|
+| `PROXY|NOPROXY <config-file>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the Info type  |
-| `EMPTY` | The expected list of type ids shall be empty  |
+| `PROXY` | Configure with http proxy, if proxy is started  |
+| `NOPROXY` | Configure without http proxy  |
+| `<config-file>`| Path to application.yaml  |
 
-## Function: ics_api_idc_get_job_ids ##
+## Function: stop_ics ##
 
-Test of GET '/data-consumer/v1/info-jobs' and optional check of the array of returned job ids.
+Stop the ICS container.
+| arg list |
+|--|
+| None |
+
+## Function: start_stopped_ics ##
+
+Start a previously stopped ics.
+| arg list |
+|--|
+| None |
+
+## Function: set_ics_debug ##
+
+Configure the ICS log on debug level. The ICS must be running.
+| arg list |
+|--|
+| None |
+
+## Function: set_ics_trace ##
+
+Configure the ICS log on trace level. The ICS must be running.
+| arg list |
+|--|
+| None |
+
+## Function: use_ics_retries ##
+
+Perform curl retries when making direct call to ICS for the specified http response codes
+Speace separated list of http response codes
+| arg list |
+|--|
+| `[<response-code>]*` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code to make retry for  |
+
+## Function: check_ics_logs ##
+
+Check the ICS log for any warnings and errors and print the count of each.
+| arg list |
+|--|
+| None |
+
+## Function: ics_equal ##
+
+Tests if a variable value in the ICS is equal to a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+See the 'a1-interface' repo for more details.
+
+| arg list |
+|--|
+| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<variable-name>` | Variable name in ics  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+
+## Function: ics_api_a1_get_job_ids ##
+
+Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs' and optional check of the array of returned job ids.
 To test the response code only, provide the response code parameter as well as a type id and an owner id.
 To also test the response payload add the 'EMPTY' for an expected empty array or repeat the last parameter for each expected job id.
 
@@ -1328,51 +1527,81 @@ To also test the response payload add the 'EMPTY' for an expected empty array or
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the Info type  |
+| `<type-id>` | Id of the EI type  |
 | `<owner-id>` | Id of the job owner  |
 | `NOOWNER` | No owner is given  |
 | `<job-id>` | Id of the expected job  |
 | `EMPTY` | The expected list of job id shall be empty  |
 
-## Function: ics_api_idc_get_job ##
+## Function: ics_api_a1_get_type ##
 
-Test of GET '/data-consumer/v1/info-jobs/{infoJobId}' and optional check of the returned job.
+Test of GET '/A1-EI/v1/eitypes/{eiTypeId}' and optional check of the returned schema.
+To test the response code only, provide the response code parameter as well as the type-id.
+To also test the response payload add a path to the expected schema file.
+
+| arg list |
+|--|
+| `<response-code> <type-id> [<schema-file>]` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the EI type  |
+| `<schema-file>` | Path to a schema file to compare with the returned schema  |
+
+## Function: ics_api_a1_get_type_ids ##
+
+Test of GET '/A1-EI/v1/eitypes' and optional check of returned list of type ids.
+To test the response code only, provide the response only.
+To also test the response payload add the list of expected type ids (or EMPTY if the list is expected to be empty).
+
+| arg list |
+|--|
+| `<response-code> [ (EMPTY \| [<type-id>]+) ]` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `EMPTY` | The expected list of type ids shall be empty  |
+| `<type-id>` | Id of the EI type  |
+
+## Function: ics_api_a1_get_job_status ##
+
+Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}/status' and optional check of the returned status.
 To test the response code only, provide the response code, type id and job id.
-To also test the response payload add the remaining parameters.
+To also test the response payload add the expected status.
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id> [<target-url> <owner-id> <template-job-file>]` |
+| `<response-code> <type-id> <job-id> [<status>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the Info type  |
+| `<type-id>` | Id of the EI type  |
 | `<job-id>` | Id of the job  |
-| `<target-url>` | Expected target url for the job  |
-| `<owner-id>` | Expected owner for the job  |
-| `<template-job-file>` | Path to a job template for job parameters of the job  |
+| `<status>` | Expected status  |
 
-## Function: ics_api_idc_put_job ##
+## Function: ics_api_a1_get_job ##
 
-Test of PUT '/data-consumer/v1/info-jobs/{infoJobId}'.
-To test, provide all the specified parameters.
+Test of GET '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}' and optional check of the returned job.
+To test the response code only, provide the response code, type id and job id.
+To also test the response payload add the remaining parameters.
 
 | arg list |
 |--|
-| `<response-code> <type-id> <job-id> <target-url> <owner-id> <template-job-file> [VALIDATE]` |
+| `<response-code> <type-id> <job-id> [<target-url> <owner-id> <template-job-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the Info type  |
+| `<type-id>` | Id of the EI type  |
 | `<job-id>` | Id of the job  |
-| `<target-url>` | Target url for the job  |
-| `<owner-id>` | Owner of the job  |
+| `<target-url>` | Expected target url for the job  |
+| `<owner-id>` | Expected owner for the job  |
 | `<template-job-file>` | Path to a job template for job parameters of the job  |
-| `VALIIDATE` | Indicator to preform type validation at creation  |
 
-## Function: ics_api_idc_delete_job ##
+## Function: ics_api_a1_delete_job ##
 
 Test of DELETE '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}'.
 To test, provide all the specified parameters.
@@ -1384,1171 +1613,1205 @@ To test, provide all the specified parameters.
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the type  |
+| `<type-id>` | Id of the EI type  |
 | `<job-id>` | Id of the job  |
 
-## Function: ics_api_idc_get_type ##
+## Function: ics_api_a1_put_job ##
 
-Test of GET '/data-consumer/v1/info-types/{infoTypeId} and optional check of the returned schema.
-To test the response code only, provide the response code parameter as well as the type-id.
-To also test the response payload add a path to the expected schema file.
+Test of PUT '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}'.
+To test, provide all the specified parameters.
 
 | arg list |
 |--|
-| `<response-code> <type-id> [<schema-file>]` |
+| `<response-code> <type-id> <job-id> <target-url> <owner-id> <template-job-file>` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type-id>` | Id of the Info type  |
-| `<schema-file>` | Path to a schema file to compare with the returned schema  |
+| `<type-id>` | Id of the EI type  |
+| `<job-id>` | Id of the job  |
+| `<target-url>` | Target url for the job  |
+| `<owner-id>` | Owner of the job  |
+| `<template-job-file>` | Path to a job template for job parameters of the job  |
 
-## Function: ics_api_idc_get_job_status ##
+## Function: ics_api_edp_get_type_ids ##
 
-Test of GET '/data-consumer/v1/info-jobs/{infoJobId}/status' and optional check of the returned status and timeout.
-To test the response code only, provide the response code and job id.
-To also test the response payload add the expected status.
+Test of GET '/ei-producer/v1/eitypes' or '/data-producer/v1/info-types' depending on ics version and an optional check of the returned list of type ids.
+To test the response code only, provide the response code.
+To also test the response payload add list of expected type ids (or EMPTY if the list is expected to be empty).
 
 | arg list |
 |--|
-| `<response-code> <job-id> [<status> [ <timeout>]]` |
+| `<response-code> [ EMPTY \| <type-id>+]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<job-id>` | Id of the job  |
-| `<status>` | Expected status  |
-| `<timeout>` | Timeout |
+| `<type-id>` | Id of the type  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-## Function: ics_api_idc_get_job_status2 ##
+## Function: ics_api_edp_get_producer_status ##
 
-Test of GET '/data-consumer/v1/info-jobs/{infoJobId}/status' with returned producers and optional check of the returned status and timeout.
-To test the response code only, provide the response code and job id.
+Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/status' or '/data-producer/v1/info-producers/{infoProducerId}/status' depending on ics version and optional check of the returned status.
+To test the response code only, provide the response code and producer id.
 To also test the response payload add the expected status.
 
 | arg list |
 |--|
-| `<response-code> <job-id> [<status> EMPTYPROD|( <prod-count> <producer-id>+ ) [<timeout>]]` |
+| `<response-code> <producer-id> [<status>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<job-id>` | Id of the job  |
-| `<status>` | Expected status  |
-| `<EMPTYPROD>` | Indicated for empty list of producer  |
-| `<prod-count>` | Number of expected producer  |
-| `<producer-id>` |Id of the producer  |
-| `<timeout>` | Timeout |
+| `<producer-id>` | Id of the producer  |
+| `<status>` | The expected status string  |
 
+## Function: ics_api_edp_get_producer_ids ##
 
-## Function: ics_api_idc_get_subscription_ids ##
-Test of GET '/data-consumer/v1/info-type-subscription' with the returned list of subscription ids
+Test of GET '/ei-producer/v1/eiproducers' and optional check of the returned producer ids.
+To test the response code only, provide the response.
+To also test the response payload add the list of expected producer-ids (or EMPTY if the list of ids is expected to be empty).
 
 | arg list |
 |--|
-| `<response-code>  <owner-id>|NOOWNER [ EMPTY | <subscription-id>+]` |
+| `<response-code> [ EMPTY \| <producer-id>+]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<owner-id>` | Id of the owner  |
-| `<NOOWNER>` | Indicator for empty owner  |
-| `<EMPTY>` | Indicated for empty list of subscription ids  |
-| `<subscription-id>` |Id of the subscription  |
+| `<producer-id>` | Id of the producer  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-## Function: ics_api_idc_get_subscription ##
-Test of GET '/data-consumer/v1/info-type-subscription/{subscriptionId}' with the subscription information
+## Function: ics_api_edp_get_producer_ids_2 ##
+
+Test of GET '/ei-producer/v1/eiproducers' or '/data-producer/v1/info-producers' depending on ics version and optional check of the returned producer ids.
+To test the response code only, provide the response.
+To also test the response payload add the type (if any) and a list of expected producer-ids (or EMPTY if the list of ids is expected to be empty).
 
 | arg list |
 |--|
-| `<response-code>  <subscription-id> [ <owner-id> <status-uri> ]` |
+| `<response-code> [ ( NOTYPE \| <type-id> ) [ EMPTY \| <producer-id>+]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<subscription-id>` |Id of the subscription  |
-| `<owner-id>` | Id of the owner  |
-| `<status-uri>` | Url for status notifications  |
+| `<type-id>` | Id of the type  |
+| `EMPTY` | No type given  |
+| `<producer-id>` | Id of the producer  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
+## Function: ics_api_edp_get_type ##
 
-## Function: ics_api_idc_put_subscription ##
-Test of PUT '/data-consumer/v1/info-type-subscription/{subscriptionId}' with the subscription information
+Test of GET '/ei-producer/v1/eitypes/{eiTypeId}' and optional check of the returned type.
+To test the response code only, provide the response and the type-id.
+To also test the response payload add a path to a job schema file and a list expected producer-id (or EMPTY if the list of ids is expected to be empty).
 
 | arg list |
 |--|
-| `<response-code>  <subscription-id> <owner-id> <status-uri>` |
+| `<response-code> <type-id> [<job-schema-file> (EMPTY \| [<producer-id>]+)]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<subscription-id>` |Id of the subscription  |
-| `<owner-id>` | Id of the owner  |
-| `<status-uri>` | Url for status notifications  |
+| `<type-id>` | Id of the type  |
+| `<job-schema-file>` | Path to a job schema file  |
+| `<producer-id>` | Id of the producer  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-## Function: ics_api_idc_delete_subscription ##
-Test of DELETE /data-consumer/v1/info-type-subscription/{subscriptionId}
+## Function: ics_api_edp_get_type_2 ##
+
+Test of GET '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
+To test the response code only, provide the response and the type-id.
+To also test the response payload add a path to a job schema file.
 
 | arg list |
 |--|
-| `<response-code>  <subscription-id>` |
+| `<response-code> <type-id> [<job-schema-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<subscription-id>` |Id of the subscription  |
-
+| `<type-id>` | Id of the type  |
+| `<job-schema-file>` | Path to a job schema file  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-## Function: ics_api_admin_reset ##
+## Function: ics_api_edp_put_type_2 ##
 
-Test of GET '/status'.
+Test of PUT '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
 
 | arg list |
 |--|
-| `<response-code> [ <type> ]` |
+| `<response-code> <type-id> [<job-schema-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<type>` | Type id, if the interface supports type in url |
-
-## Function: ics_kube_pvc_reset ##
-
-Admin reset to remove all data in ics; jobs, producers etc
-NOTE - only works in kubernetes and the pod should not be running
-
-| arg list |
-|--|
-| None |
-
-# Description of functions in kafkapc_api_functions.sh #
-
-## Function: use_kafkapc_http ##
+| `<type-id>` | Id of the type  |
+| `<job-schema-file>` | Path to a job schema file  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-Use http for all calls to the KAFKAPC.
-| arg list |
-|--|
-| None |
+## Function: ics_api_edp_delete_type_2 ##
 
-## Function: use_kafkapc_https ##
+Test of DELETE '/ei-producer/v1/eitypes/{eiTypeId}' or '/data-producer/v1/info-types/{infoTypeId}' depending on ics version and optional check of the returned type.
 
-Use https for all calls to the KAFKAPC.
 | arg list |
 |--|
-| None |
+| `<response-code> <type-id>` |
 
-## Function: start_kafkapc ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the type  |
 
-Start the KAFKAPC container in docker or kube depending on start mode
-| arg list |
-|--|
-| None |
+## Function: ics_api_edp_get_producer ##
 
-## Function: kafkapc_equal ##
+Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}' and optional check of the returned producer.
+To test the response code only, provide the response and the producer-id.
+To also test the response payload add the remaining parameters defining thee producer.
 
-Tests if a variable value in the KAFKAPC is equal to a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
-See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<response-code> <producer-id> [<create-callback> <delete-callback> <supervision-callback> (EMPTY\| [<type-id> <schema-file>]+) ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in the KAFKAPC  |
-| `<target-value>` | Target value for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<create-callback>` | Callback for create job  |
+| `<delete-callback>` | Callback for delete job  |
+| `<supervision-callback>` | Callback for producer supervision  |
+| `<type-id>` | Id of the type  |
+| `<schema-file>` | Path to a schema file  |
+| `EMPTY` | The expected list of type schema pairs shall be empty  |
 
-## Function: kafkapc_api_reset ##
+## Function: ics_api_edp_get_producer_2 ##
+
+Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version and optional check of the returned producer.
+To test the response code only, provide the response and the producer-id.
+To also test the response payload add the remaining parameters defining thee producer.
 
-Deep reset of KAFKAPC. Note that kafka itself is not affected, i.e. created topic still exist in kafka.
 | arg list |
 |--|
-| None |
-
-## Function: kafkapc_api_create_topic ##
-
-Create a topic in kafka via kafkapc.
-| `<response-code> <topic-name>  <mime-type>` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
-| `<mime-type>` | Mime type of the data to send to the topic. Data on the topic is expected to be of this type  |
-
-## Function: kafkapc_api_get_topic ##
-
-Create a from kafkapc.
-| `<response-code> <topic-name>  <mime-type>` |
+| `<response-code> <producer-id> [<job-callback> <supervision-callback> (EMPTY \| <type-id>+) ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
-| `<mime-type>` | Mime type of the topic  |
-
-## Function: kafkapc_api_start_sending ##
-
-Start sending msg from the msg queue to kafka for a topic.
-| `<response-code> <topic-name>` |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<job-callback>` | Callback for the url  |
+| `<supervision-callback>` | Callback for producer supervision  |
+| `<type-id>` | Id of the type  |
+| `EMPTY` | The expected list of types shall be empty  |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
+## Function: ics_api_edp_delete_producer ##
 
-## Function: kafkapc_api_start_receiving ##
+Test of DELETE '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version.
+To test, provide all parameters.
 
-Start receiving msg from a kafka topic to the msg queue in kafkapc.
-| `<response-code> <topic-name>` |
+| arg list |
+|--|
+| `<response-code> <producer-id>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
-
-## Function: kafkapc_api_stop_sending ##
-
-Stop sending msg from the msg queue to kafka for a topic.
-| `<response-code> <topic-name>` |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
+## Function: ics_api_edp_put_producer ##
 
-## Function: kafkapc_api_stop_receiving ##
+Test of PUT '/ei-producer/v1/eiproducers/{eiProducerId}'.
+To test, provide all parameters. The list of type/schema pair may be empty.
 
-Stop receiving msg from a kafka topic to the msg queue in kafkapc.
-| `<response-code> <topic-name>` |
+| arg list |
+|--|
+| `<response-code> <producer-id> <job-callback> <supervision-callback> (EMPTY \| [<type-id> <schema-file>]+)` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic-name>` | Name of the topic  |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<job-callback>` | Callback for create/delete job  |
+| `<supervision-callback>` | Callback for producer supervision  |
+| `<type-id>` | Id of the type  |
+| `<schema-file>` | Path to a schema file  |
+| `EMPTY` | The list of type/schema pairs is empty  |
 
-## Function: kafkapc_api_post_msg ##
+## Function: ics_api_edp_put_producer_2 ##
+
+Test of PUT '/ei-producer/v1/eiproducers/{eiProducerId}' or '/data-producer/v1/info-producers/{infoProducerId}' depending on ics version.
+To test, provide all parameters. The list of type/schema pair may be empty.
 
-Send a message on a topic.
 | arg list |
 |--|
-| `<response-code> <topic> <mime-type> <msg>` |
+| `<response-code> <producer-id> <job-callback> <supervision-callback> NOTYPE\|[<type-id>+]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic>` | Topic name  |
-| `<mime-type>` | Mime type of the msg  |
-| `<msg>` | String msg to send  |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<job-callback>` | Callback for create/delete job  |
+| `<supervision-callback>` | Callback for producer supervision  |
+| `<type-id>` | Id of the type  |
+| `NOTYPE` | The list of types is empty  |
 
-## Function: kafkapc_api_get_msg ##
+## Function: ics_api_edp_get_producer_jobs ##
+
+Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/eijobs' and optional check of the returned producer job.
+To test the response code only, provide the response and the producer-id.
+To also test the response payload add the remaining parameters.
 
-Get a message on a topic.
 | arg list |
 |--|
-| `<response-code> <topic>  ([ <mime-type>  <msg> ] | NOMSG )` |
+| `<response-code> <producer-id> (EMPTY \| [<job-id> <type-id> <target-url> <job-owner> <template-job-file>]+)` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic>` | Topic name  |
-| `<mime-type>` | Mime type of the msg  |
-| `<msg>` | String msg to receive  |
-| `NOMSG` | Indicated for no msg  |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<job-id>` | Id of the job  |
+| `<type-id>` | Id of the EI type  |
+| `<target-url>` | Target url for data delivery  |
+| `<job-owner>` | Id of the job owner  |
+| `<template-job-file>` | Path to a job template file  |
+| `EMPTY` | The list of job/type/target/job-file tuples is empty  |
 
-## Function: kafkapc_api_post_msg_from_file ##
+## Function: ics_api_edp_get_producer_jobs_2 ##
+
+Test of GET '/ei-producer/v1/eiproducers/{eiProducerId}/eijobs' or '/data-producer/v1/info-producers/{infoProducerId}/info-jobs' depending on ics version and optional check of the returned producer job.
+To test the response code only, provide the response and the producer-id.
+To also test the response payload add the remaining parameters.
 
-Send a message in a file on a topic.
 | arg list |
 |--|
-| `<response-code> <topic> <mime-type> <file>` |
+| `<response-code> <producer-id> (EMPTY \| [<job-id> <type-id> <target-url> <job-owner> <template-job-file>]+)` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic>` | Topic name  |
-| `<mime-type>` | Mime type of the msg  |
-| `<file>` | Filepath to the string msg to send  |
+| `<response-code>` | Expected http response code |
+| `<producer-id>` | Id of the producer  |
+| `<job-id>` | Id of the job  |
+| `<type-id>` | Id of the type  |
+| `<target-url>` | Target url for data delivery  |
+| `<job-owner>` | Id of the job owner  |
+| `<template-job-file>` | Path to a job template file  |
+| `EMPTY` | The list of job/type/target/job-file tuples is empty  |
 
-## Function: kafkapc_api_get_msg_from_file ##
+## Function: ics_api_service_status ##
+
+Test of GET '/status'.
 
-Get a message on a topic.
 | arg list |
 |--|
-| `<response-code> <topic>  <mime-type>  <file> ` |
+| `<response-code>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Http response code  |
-| `<topic>` | Topic name  |
-| `<mime-type>` | Mime type of the msg  |
-| `<file>` | Filepath to the string msg to receive  |
+| `<response-code>` | Expected http response code |
 
-## Function: kafkapc_api_generate_json_payload_file ##
+## Function: ics_api_idc_get_type_ids ##
+
+Test of GET '/data-consumer/v1/info-types' and an optional check of the returned list of type ids.
+To test the response code only, provide the response code.
+To also test the response payload add list of expected type ids (or EMPTY if the list is expected to be empty).
 
-Create json file with dummy data for payload.
 | arg list |
 |--|
-| `<size-in-kb> <filename>` |
+| `<response-code> [ EMPTY \| <type-id>+]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<size-in-kb>` | Generated size in kb  |
-| `<filename>` | Path to output file  |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the Info type  |
+| `EMPTY` | The expected list of type ids shall be empty  |
 
-## Function: kafkapc_api_generate_text_payload_file ##
+## Function: ics_api_idc_get_job_ids ##
+
+Test of GET '/data-consumer/v1/info-jobs' and optional check of the array of returned job ids.
+To test the response code only, provide the response code parameter as well as a type id and an owner id.
+To also test the response payload add the 'EMPTY' for an expected empty array or repeat the last parameter for each expected job id.
 
-Create file with dummy text data for payload.
 | arg list |
 |--|
-| `<size-in-kb> <filename>` |
+| `<response-code> <type-id>  <owner-id>\|NOOWNER [ EMPTY \| <job-id>+ ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<size-in-kb>` | Generated size in kb  |
-| `<filename>` | Path to output file  |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the Info type  |
+| `<owner-id>` | Id of the job owner  |
+| `NOOWNER` | No owner is given  |
+| `<job-id>` | Id of the expected job  |
+| `EMPTY` | The expected list of job id shall be empty  |
 
-# Description of functions in kubeproxy_api_functions.sh #
+## Function: ics_api_idc_get_job ##
 
-## Function: use_kube_proxy_http ##
+Test of GET '/data-consumer/v1/info-jobs/{infoJobId}' and optional check of the returned job.
+To test the response code only, provide the response code, type id and job id.
+To also test the response payload add the remaining parameters.
 
-Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 | arg list |
 |--|
-| None |
+| `<response-code> <type-id> <job-id> [<target-url> <owner-id> <template-job-file>]` |
 
-## Function: use_kube_proxy_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the Info type  |
+| `<job-id>` | Id of the job  |
+| `<target-url>` | Expected target url for the job  |
+| `<owner-id>` | Expected owner for the job  |
+| `<template-job-file>` | Path to a job template for job parameters of the job  |
 
-Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
-| arg list |
-|--|
-| None |
+## Function: ics_api_idc_put_job ##
 
-## Function: start_kube_proxy ##
+Test of PUT '/data-consumer/v1/info-jobs/{infoJobId}'.
+To test, provide all the specified parameters.
 
-Start the kube proxy container in kube. This proxy enabled the test env to access all services and pods in a kube cluster.
-No proxy is started if the function is called in docker mode.
 | arg list |
 |--|
-| None |
+| `<response-code> <type-id> <job-id> <target-url> <owner-id> <template-job-file> [VALIDATE]` |
 
-# Description of functions in localhelm_api_functions.sh #
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the Info type  |
+| `<job-id>` | Id of the job  |
+| `<target-url>` | Target url for the job  |
+| `<owner-id>` | Owner of the job  |
+| `<template-job-file>` | Path to a job template for job parameters of the job  |
+| `VALIIDATE` | Indicator to preform type validation at creation  |
 
-## Function: localhelm_create_test_chart ##
+## Function: ics_api_idc_delete_job ##
+
+Test of DELETE '/A1-EI/v1/eitypes/{eiTypeId}/eijobs/{eiJobId}'.
+To test, provide all the specified parameters.
 
-Create a dummy chart using helm
 | arg list |
 |--|
-| `chart-name` |
+| `<response-code> <type-id> <job-id>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `chart-name` | Name of the chart |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the type  |
+| `<job-id>` | Id of the job  |
 
-## Function: localhelm_package_test_chart ##
+## Function: ics_api_idc_get_type ##
+
+Test of GET '/data-consumer/v1/info-types/{infoTypeId} and optional check of the returned schema.
+To test the response code only, provide the response code parameter as well as the type-id.
+To also test the response payload add a path to the expected schema file.
 
-Package a dummy chart using helm
 | arg list |
 |--|
-| `chart-name` |
+| `<response-code> <type-id> [<schema-file>]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `chart-name` | Name of the chart |
+| `<response-code>` | Expected http response code |
+| `<type-id>` | Id of the Info type  |
+| `<schema-file>` | Path to a schema file to compare with the returned schema  |
 
-## Function: localhelm_installed_chart_release ##
+## Function: ics_api_idc_get_job_status ##
+
+Test of GET '/data-consumer/v1/info-jobs/{infoJobId}/status' and optional check of the returned status and timeout.
+To test the response code only, provide the response code and job id.
+To also test the response payload add the expected status.
 
-Check if a chart is installed or not using helm
 | arg list |
 |--|
-| `INSTALLED|NOTINSTALLED <release-name> <name-space> |
+| `<response-code> <job-id> [<status> [ <timeout>]]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `INSTALLED` | Expecting installed chart |
-| `NOTINSTALLED` | Expecting a not installed chart |
-| `release-name` | Name of the release |
-| `name-space` | Expected namespace |
+| `<response-code>` | Expected http response code |
+| `<job-id>` | Id of the job  |
+| `<status>` | Expected status  |
+| `<timeout>` | Timeout |
 
-# Description of functions in mr_api_functions.sh #
+## Function: ics_api_idc_get_job_status2 ##
 
-## Function: use_mr_http ##
+Test of GET '/data-consumer/v1/info-jobs/{infoJobId}/status' with returned producers and optional check of the returned status and timeout.
+To test the response code only, provide the response code and job id.
+To also test the response payload add the expected status.
 
-Use http for all Dmaap calls to the MR. This is the default. The admin API is not affected. Note that this function shall be called before preparing the config for Consul.
 | arg list |
 |--|
-| None |
+| `<response-code> <job-id> [<status> EMPTYPROD|( <prod-count> <producer-id>+ ) [<timeout>]]` |
 
-## Function: use_mr_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<job-id>` | Id of the job  |
+| `<status>` | Expected status  |
+| `<EMPTYPROD>` | Indicated for empty list of producer  |
+| `<prod-count>` | Number of expected producer  |
+| `<producer-id>` |Id of the producer  |
+| `<timeout>` | Timeout |
 
-Use https for all Dmaap call to the MR. The admin API is not affected. Note that this function shall be called before preparing the config for Consul.
-| arg list |
-|--|
-| None |
 
-## Function: start_mr ##
+## Function: ics_api_idc_get_subscription_ids ##
+Test of GET '/data-consumer/v1/info-type-subscription' with the returned list of subscription ids
 
-Start the Message Router stub interface container in docker or kube depending on start mode
 | arg list |
 |--|
-| None |
-
-## Function: dmaap_api_print_topics ##
-
-Prints the current list of topics in DMAAP MR
+| `<response-code>  <owner-id>|NOOWNER [ EMPTY | <subscription-id>+]` |
 
-| arg list |
-|--|
-| None |
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<owner-id>` | Id of the owner  |
+| `<NOOWNER>` | Indicator for empty owner  |
+| `<EMPTY>` | Indicated for empty list of subscription ids  |
+| `<subscription-id>` |Id of the subscription  |
 
-## Function: mr_equal ##
+## Function: ics_api_idc_get_subscription ##
+Test of GET '/data-consumer/v1/info-type-subscription/{subscriptionId}' with the subscription information
 
-Tests if a variable value in the Message Router (MR) simulator is equal to a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
-See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<response-code>  <subscription-id> [ <owner-id> <status-uri> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in the MR  |
-| `<target-value>` | Target value for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
+| `<response-code>` | Expected http response code |
+| `<subscription-id>` |Id of the subscription  |
+| `<owner-id>` | Id of the owner  |
+| `<status-uri>` | Url for status notifications  |
 
-## Function: mr_greater ##
 
-Tests if a variable value in the Message Router (MR) simulator is greater than a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the variable is greater than the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes greater than the target value or not.
-See the 'mrstub' dir for more details.
+## Function: ics_api_idc_put_subscription ##
+Test of PUT '/data-consumer/v1/info-type-subscription/{subscriptionId}' with the subscription information
+
 | arg list |
 |--|
-| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<response-code>  <subscription-id> <owner-id> <status-uri>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in the MR  |
-| `<target-value>` | Target value for the variable  |
-| `<timeout-in-sec>` | Max time to wait for the variable to become grater than the target value  |
+| `<response-code>` | Expected http response code |
+| `<subscription-id>` |Id of the subscription  |
+| `<owner-id>` | Id of the owner  |
+| `<status-uri>` | Url for status notifications  |
 
-## Function: mr_read ##
+## Function: ics_api_idc_delete_subscription ##
+Test of DELETE /data-consumer/v1/info-type-subscription/{subscriptionId}
 
-Reads the value of a variable in the Message Router (MR) simulator. The value is intended to be passed to a env variable in the test script.
-See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<variable-name>` |
+| `<response-code>  <subscription-id>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in the MR  |
+| `<response-code>` | Expected http response code |
+| `<subscription-id>` |Id of the subscription  |
 
-## Function: mr_print ##
 
-Prints the value of a variable in the Message Router (MR) simulator.
-See the 'mrstub' dir for more details.
+## Function: ics_api_admin_reset ##
+
+Test of GET '/status'.
+
 | arg list |
 |--|
-| `<variable-name>` |
+| `<response-code> [ <type> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Variable name in the MR  |
+| `<response-code>` | Expected http response code |
+| `<type>` | Type id, if the interface supports type in url |
 
-## Function: mr_api_send_json ##
+## Function: ics_kube_pvc_reset ##
+
+Admin reset to remove all data in ics; jobs, producers etc
+NOTE - only works in kubernetes and the pod should not be running
 
-Send json to topic in mr-stub.
 | arg list |
 |--|
-| `<topic-url> <json-msg>` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<topic-url>` | Topic url  |
-| `<json-msg>` | Json msg as string  |
+# Description of functions in istio_api_functions.sh #
 
-## Function: mr_api_send_text ##
+## Function: istio_enable_istio_namespace ##
+Enable istio on a namespace
 
-Send text to topic in mr-stub.
 | arg list |
 |--|
-| `<topic-url> <text-msg>` |
+| `<namespace>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<topic-url>` | Topic url  |
-| `<text-msg>` | Text (string) msg  |
-
-
+| `namespace` | Namespace name to enable istio on |
 
-## Function: mr_api_send_json_file ##
+## Function: istio_req_auth_by_jwksuri ##
+Set isto authentication by jwks uri
 
-Send json to topic in mr-stub.
 | arg list |
 |--|
-| `<topic-url> <json-file>` |
+| `<app-name> <namespace> <realm>>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<topic-url>` | Topic url  |
-| `<json-file>` | Path to file with json msg as string  |
+| `<app-name>` | App-name, short name |
+| `<namespace>` | Namespace of app  |
+| `<realm>` | Name of realm  |
 
-## Function: mr_api_send_text_file ##
+## Function: istio_req_auth_by_jwks ##
+Set isto authentication by jwks keys (inline)
 
-Send text to topic in mr-stub.
 | arg list |
 |--|
-| `<topic-url> <text-file>` |
+| `<app> <namespace> <issuer> <key>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<topic-url>` | Topic url  |
-| `<text-file>` | Path to file with text msg as string  |
+| `<app-name>` | App-name, short name |
+| `<namespace>` | Namespace of app  |
+| `<issuer>` | Name of issuer |
+| `key` | Inline key  |
 
-## Function: mr_api_generate_json_payload_file ##
+## Function: istio_auth_policy_by_realm ##
+Set isio authorization by realm
 
-Create json file with dummy data for payload.
 | arg list |
 |--|
-| `<size-in-kb> <filename>` |
+| `<app> <namespace> <realam> [<client-id> <client-role>]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<size-in-kb>` | Generated size in kb  |
-| `<filename>` | Path to output file  |
+| `<app-name>` | App-name, short name |
+| `<namespace>` | Namespace of app  |
+| `<realm>` | Name of realm  |
+| `<client-id>` | Client id to authorize |
+| `<client-role>` | Client role to authorize |
 
-## Function: mr_api_generate_text_payload_file ##
 
-Create file with dummy text data for payload.
+## Function: istio_auth_policy_by_issuer ##
+Set isio authorization by issuer
+
 | arg list |
 |--|
-| `<size-in-kb> <filename>` |
+| `<app> <namespace> <issuer>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<size-in-kb>` | Generated size in kb  |
-| `<filename>` | Path to output file  |
+| `<app-name>` | App-name, short name |
+| `<namespace>` | Namespace of app  |
+| `<issuer>` | Name of issuer |
 
-# Description of functions in ngw_api_functions.sh #
 
-## Function: use_gateway_http ##
+# Description of functions in kafkapc_api_functions.sh #
 
-Use http for all calls to the gateway. This is set by default.
+## Function: use_kafkapc_http ##
+
+Use http for all calls to the KAFKAPC.
 | arg list |
 |--|
 | None |
 
-## Function: use_gateway_https ##
+## Function: use_kafkapc_https ##
 
-Use https for all calls to the gateway.
+Use https for all calls to the KAFKAPC.
 | arg list |
 |--|
 | None |
 
-## Function: set_gateway_debug ##
+## Function: start_kafkapc ##
 
-Set debug level logging in the gateway
+Start the KAFKAPC container in docker or kube depending on start mode
 | arg list |
 |--|
 | None |
 
-## Function: set_gateway_trace ##
+## Function: kafkapc_equal ##
 
-Set debug level logging in the trace
+Tests if a variable value in the KAFKAPC is equal to a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| None |
+| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
 
-## Function: start_gateway ##
+| parameter | description |
+| --------- | ----------- |
+| `<variable-name>` | Variable name in the KAFKAPC  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
 
-Start the the gateway container in docker or kube depending on start mode
+## Function: kafkapc_api_reset ##
+
+Deep reset of KAFKAPC. Note that kafka itself is not affected, i.e. created topic still exist in kafka.
 | arg list |
 |--|
 | None |
 
-## Function: gateway_a1pms_get_status ##
+## Function: kafkapc_api_create_topic ##
 
-Sample test of a1pms api (status)
-Only response code tested - not payload
-| arg list |
-|--|
-| `<response-code>` |
+Create a topic in kafka via kafkapc.
+| `<response-code> <topic-name>  <mime-type>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
+| `<mime-type>` | Mime type of the data to send to the topic. Data on the topic is expected to be of this type  |
 
-## Function: gateway_ics_get_types ##
+## Function: kafkapc_api_get_topic ##
 
-Sample test of ics api (get types)
-Only response code tested - not payload
-| arg list |
-|--|
-| `<response-code>` |
+Create a from kafkapc.
+| `<response-code> <topic-name>  <mime-type>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
+| `<mime-type>` | Mime type of the topic  |
 
-# Description of functions in a1pms_api_functions.sh #
+## Function: kafkapc_api_start_sending ##
 
-## General ##
+Start sending msg from the msg queue to kafka for a topic.
+| `<response-code> <topic-name>` |
 
-Both A1PMS version 1 and 2 are supported. The version is controlled by the env variable `$A1PMS_VERSION` set in the test env file.
-For api function in version 2, an url prefix is added if configured.
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
 
-## Function: use_a1pms_rest_http ##
+## Function: kafkapc_api_start_receiving ##
 
-Use http for all API calls to the A1PMS. This is the default.
+Start receiving msg from a kafka topic to the msg queue in kafkapc.
+| `<response-code> <topic-name>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
+
+## Function: kafkapc_api_stop_sending ##
+
+Stop sending msg from the msg queue to kafka for a topic.
+| `<response-code> <topic-name>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
+
+## Function: kafkapc_api_stop_receiving ##
+
+Stop receiving msg from a kafka topic to the msg queue in kafkapc.
+| `<response-code> <topic-name>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic-name>` | Name of the topic  |
+
+## Function: kafkapc_api_post_msg ##
+
+Send a message on a topic.
 | arg list |
 |--|
-| None |
+| `<response-code> <topic> <mime-type> <msg>` |
 
-## Function: use_a1pms_rest_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic>` | Topic name  |
+| `<mime-type>` | Mime type of the msg  |
+| `<msg>` | String msg to send  |
 
-Use https for all API calls to the A1PMS.
+## Function: kafkapc_api_get_msg ##
+
+Get a message on a topic.
 | arg list |
 |--|
-| None |
+| `<response-code> <topic>  ([ <mime-type>  <msg> ] | NOMSG )` |
 
-## Function: use_a1pms_dmaap_http ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic>` | Topic name  |
+| `<mime-type>` | Mime type of the msg  |
+| `<msg>` | String msg to receive  |
+| `NOMSG` | Indicated for no msg  |
+
+## Function: kafkapc_api_post_msg_from_file ##
 
-Send and recieve all API calls to the A1PMS over Dmaap via the MR over http.
+Send a message in a file on a topic.
 | arg list |
 |--|
-| None |
+| `<response-code> <topic> <mime-type> <file>` |
 
-## Function: use_a1pms_dmaap_https ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic>` | Topic name  |
+| `<mime-type>` | Mime type of the msg  |
+| `<file>` | Filepath to the string msg to send  |
+
+## Function: kafkapc_api_get_msg_from_file ##
 
-Send and recieve all API callss to the A1PMS over Dmaap via the MR over https.
+Get a message on a topic.
 | arg list |
 |--|
-| None |
+| `<response-code> <topic>  <mime-type>  <file> ` |
 
-## Function: start_a1pms ##
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Http response code  |
+| `<topic>` | Topic name  |
+| `<mime-type>` | Mime type of the msg  |
+| `<file>` | Filepath to the string msg to receive  |
 
-Start the A1PMS container or corresponding kube resources depending on docker/kube mode.
+## Function: kafkapc_api_generate_json_payload_file ##
+
+Create json file with dummy data for payload.
 | arg list |
 |--|
-| `<logfile-prefix>` |
-| (docker) `PROXY\|NOPROXY <config-file>` |
-| (kube) `PROXY\|NOPROXY <config-file> [ <data-file> ]` |
+| `<size-in-kb> <filename>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `PROXY` | Configure with http proxy, if proxy is started  |
-| `NOPROXY` | Configure without http proxy  |
-| `<config-file>`| Path to application.yaml  |
-| `<data-file>` | Optional path to application_configuration.json  |
+| `<size-in-kb>` | Generated size in kb  |
+| `<filename>` | Path to output file  |
 
-## Function: stop_a1pms ##
+## Function: kafkapc_api_generate_text_payload_file ##
 
-Stop the a1pms container (docker) or scale it to zero (kubernetes).
+Create file with dummy text data for payload.
 | arg list |
 |--|
-|  None |
+| `<size-in-kb> <filename>` |
 
-## Function: start_stopped_a1pms ##
+| parameter | description |
+| --------- | ----------- |
+| `<size-in-kb>` | Generated size in kb  |
+| `<filename>` | Path to output file  |
+
+# Description of functions in keycloak_api_functions.sh #
+
+## Function: start_keycloak ##
 
-Start a previousely stopped a1pms container (docker) or scale it to 1 (kubernetes).
+Start the KEYCLOAK app in docker or kube depending on start mode
 | arg list |
 |--|
-|  None |
+| None |
 
-## Function: prepare_a1pms_config ##
+## Function: keycloak_api_obtain_admin_token ##
+
+Get the admin token to use for subsequent rest calls to keycloak
+| arg list |
+|--|
+| None |
+
+## Function: keycloak_api_create_realm ##
 
-Function to prepare an a1pms config based on the previously configured (and started simulators). Note that all simulator must be running and the test script has to configure if http or https shall be used for the components (this is done by the functions 'use_simulator_http', 'use_simulator_https', 'use_sdnc_http', 'use_sdnc_https', 'use_mr_http', 'use_mr_https')
+Create a realm
 | arg list |
 |--|
-| `SDNC|NOSDNC <output-file>` |
+| `<realm-name> <enabled> <token-expiry>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `SDNC` | Configure with controller |
-| `NOSDNC` | Configure without controller |
-| `<output-file>` | The path to the json output file containing the prepared config. This file is used in 'consul_config_app'  |
+| `realm-name` | Name of the realm |
+| `enabled` | Enabled, true or false |
+| `token-expiry` | Token lifespan in seconds |
 
-## Function: a1pms_load_config ##
+## Function: keycloak_api_update_realm ##
 
-Load the config into a config map (kubernetes only).
+Update a realm
 | arg list |
 |--|
-|  `<data-file>` |
+| `<realm-name> <enabled> <token-expiry>` |
 
 | parameter | description |
 | --------- | ----------- |
-|  `<data-file>` | Path to application_configuration.json  |
+| `realm-name` | Name of the realm |
+| `enabled` | Enabled, true or false |
+| `token-expiry` | Token lifespan in seconds |
 
-## Function: set_a1pms_debug ##
+## Function: keycloak_api_create_confidential_client ##
 
-Configure the A1PMS log on debug level. The A1PMS must be running.
+Create a client
 | arg list |
 |--|
-| None |
+| `<realm-name> <client-name>` |
 
-## Function: set_a1pms_trace ##
+| parameter | description |
+| --------- | ----------- |
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-Configure the A1PMS log on trace level. The A1PMS must be running.
+## Function: keycloak_api_generate_client_secret ##
+
+Generate secret for client
 | arg list |
 |--|
-| None |
+| `<realm-name> <client-name>` |
 
-## Function: use_a1pms_retries ##
+| parameter | description |
+| --------- | ----------- |
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-Configure the A1PMS to make upto 5 retries if an API calls return any of the specified http return codes.
+## Function: keycloak_api_get_client_secret ##
+
+Get a  secret for client
 | arg list |
 |--|
-| `[<response-code>]*` |
+| `<realm-name> <client-name>` |
 
-## Function: check_a1pms_logs ##
+| parameter | description |
+| --------- | ----------- |
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-Check the A1PMS log for any warnings and errors and print the count of each.
+## Function: keycloak_api_create_client_roles ##
+
+Create client roles
 | arg list |
 |--|
-| None |
+| `<realm-name> <client-name> <role>+` |
 
-## Function: a1pms_equal ##
+| parameter | description |
+| --------- | ----------- |
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
+| `role` | Name of the role |
 
-Tests if the array length of a json array in the A1PMS simulator is equal to a target value.
-Without the timeout, the test sets pass or fail immediately depending on if the array length is equal to the target or not.
-With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the array length becomes equal to the target value or not.
-See the 'cr' dir for more details.
+## Function: keycloak_api_map_client_roles ##
 
+Map roles to a client
 | arg list |
 |--|
-| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
+| `<realm-name> <client-name> <role>+` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<variable-name>` | Relative url. Example 'json:policy_types' - checks the json array length of the url /policy_types  |
-| `<target-value>` | Target value for the length  |
-| `<timeout-in-sec>` | Max time to wait for the length to reach the target value  |
-
-## Function: a1pms_api_get_policies ##
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
+| `role` | Name of the role |
 
-Test of GET '/policies' or V2 GET '/v2/policy-instances' and optional check of the array of returned policies.
-To test the response code only, provide the response code parameter as well as the following three parameters.
-To also test the response payload add the 'NOID' for an expected empty array or repeat the last five/seven parameters for each expected policy.
+## Function: keycloak_api_get_client_token ##
 
+Get a client token
 | arg list |
 |--|
-| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <policy-type-id>\|NOTYPE [ NOID \| [<policy-id> <ric-id> <service-id> EMPTY\|<policy-type-id> <template-file>]*]` |
-
-| arg list V2 |
-|--|
-| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <policy-type-id>\|NOTYPE [ NOID \| [<policy-id> <ric-id> <service-id> EMPTY\|<policy-type-id> <transient> <notification-url> <template-file>]*]` |
+| `<realm-name> <client-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<ric-id>` | Id of the ric  |
-| `NORIC` | Indicator that no ric is provided  |
-| `<service-id>` | Id of the service  |
-| `NOSERVICE` | Indicator that no service id is provided  |
-| `<policy-type-id>` |  Id of the policy type |
-| `NOTYPE` | Indicator that no type id is provided  |
-| `NOID` |  Indicator that no policy id is provided - indicate empty list of policies|
-| `<policy-id>` |  Id of the policy |
-| `EMPTY` |  Indicate for the special empty policy type |
-| `transient` |  Transient, true or false |
-| `notification-url` |  Url for notifications |
-| `<template-file>` |  Path to the template file for the policy (same template used when creating the policy) |
-
-## Function: a1pms_api_get_policy ##
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-Test of GET '/policy' or V2 GET '/v2/policies/{policy_id}' and optional check of the returned json payload.
-To test the the response code only, provide the expected response code and policy id.
-To test the contents of the returned json payload, add a path to the template file used when creating the policy.
+## Function: keycloak_api_read_client_token ##
 
+Read a client token
 | arg list |
 |--|
-| `<response-code>  <policy-id> [<template-file>]` |
-
-| arg list V2|
-|--|
-| `<response-code> <policy-id> [ <template-file> <service-name> <ric-id> <policytype-id>\|NOTYPE <transient> <notification-url>\|NOURL ]` |
+| `<realm-name> <client-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-id>` |  Id of the policy |
-| `<template-file>` |  Path to the template file for the policy (same template used when creating the policy) |
-| `<service-id>` | Id of the service  |
-| `<ric-id>` | Id of the ric  |
-| `<policy-type-id>` |  Id of the policy type |
-| `NOTYPE` | Indicator that no type id is provided  |
-| `transient` |  Transient, true or false |
-| `notification-url` |  Url for notifications |
-
-## Function: a1pms_api_put_policy ##
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-Test of PUT '/policy' or V2 PUT '/policies'.
-If more than one policy shall be created, add a count value to indicate the number of policies to create. Note that if more than one policy shall be created the provided policy-id must be numerical (will be used as the starting id).
+## Function: keycloak_api_read_client_secret ##
 
+Read the secret for client
 | arg list |
 |--|
-| `<response-code> <service-name> <ric-id> <policytype-id> <policy-id> <transient> <template-file> [<count>]` |
-
-| arg list V2 |
-|--|
-| `<response-code> <service-name> <ric-id> <policytype-id>\|NOTYPE <policy-id> <transient>\|NOTRANSIENT <notification-url>\|NOURL <template-file> [<count>]` |
+| `<realm-name> <client-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-id>` | Id of the service  |
-| `<ric-id>` | Id of the ric  |
-| `<policy-type-id>` |  Id of the policy type |
-| `<policy-id>` |  Id of the policy. This value shall be a numeric value if more than one policy shall be created |
-| `transient>` |  Transient 'true' or 'false'. 'NOTRANSIENT' can be used to indicate using the default value (no transient value provided) |
-| `notification-url` |  Url for notifications |
-|`NOURL`| Indicator for no url |
-| `<template-file>` |  Path to the template file for the policy |
-| `<count>` |  An optional count (default is 1). If a value greater than 1 is given, the policy ids will use the given policy id as the first id and add 1 to that id for each new policy |
+| `realm-name` | Name of the realm |
+| `client-name` | Name of the client |
 
-## Function: a1pms_api_put_policy_batch ##
+# Description of functions in kubeproxy_api_functions.sh #
 
-This tests the same as function 'a1pms_api_put_policy' except that all put requests are sent to dmaap in one go and then the responses are polled one by one.
-If the a1pms api is not configured to use dmaap (see 'use_a1pms_dmaap', 'use_a1pms_rest_http' and 'use_a1pms_rest_https'), an error message is printed.
-For arg list and parameters, see 'a1pms_api_put_policy'.
+## Function: use_kube_proxy_http ##
 
-## Function: a1pms_api_put_policy_parallel ##
+Use http for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
+| arg list |
+|--|
+| None |
 
-This tests the same as function 'a1pms_api_put_policy' except that the policy create is spread out over a number of processes and it only uses the a1pms rest API. The total number of policies created is determined by the product of the parameters 'number-of-rics' and 'count'. The parameter 'number-of-threads' shall be selected to be not evenly divisible by the product of the parameters 'number-of-rics' and 'count' - this is to ensure that one process does not handle the creation of all the policies in one ric.
+## Function: use_kube_proxy_https ##
 
+Use https for all proxy requests. Note that this only applicable to the actual proxy request, the proxied protocol can still be http and https.
 | arg list |
 |--|
-| `<response-code> <service-name> <ric-id-base> <number-of-rics> <policytype-id> <policy-start-id> <transient> <template-file> <count-per-ric> <number-of-threads>`
+| None |
+
+## Function: start_kube_proxy ##
 
+Start the kube proxy container in kube. This proxy enabled the test env to access all services and pods in a kube cluster.
+No proxy is started if the function is called in docker mode.
 | arg list |
 |--|
-| `<response-code> <service-name> <ric-id-base> <number-of-rics> <policytype-id> <policy-start-id> <transient> <notification-url>\|NOURL <template-file> <count-per-ric> <number-of-threads>`
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-id>` | Id of the service  |
-| `<ric-id-base>` | The base id of the rics, ie ric id without the sequence number. The sequence number is added during processing  |
-| `<number-of-rics>` | The number of rics, assuming the first index is '1'. The index is added to the 'ric-id-base' id  |
-| `<policy-type-id>` |  Id of the policy type |
-| `<policy-start-id>` |  Id of the policy. This value shall be a numeric value and will be the id of the first policy |
-| `transient>` |  Transient 'true' or 'false'. 'NOTRANSIENT' can be used to indicate using the default value (no transient value provide) |
-| `notification-url` |  Url for notifications |
-| `<template-file>` |  Path to the template file for the policy |
-| `<count-per-ric>` |  Number of policies per ric |
-| `<number-of-threads>` |  Number of threads (processes) to run in parallel |
+| None |
 
-## Function: a1pms_api_delete_policy ##
+# Description of functions in localhelm_api_functions.sh #
 
-This tests the DELETE '/policy' or V2 DELETE '/v2/policies/{policy_id}'. Removes the indicated policy or a 'count' number of policies starting with 'policy-id' as the first id.
+## Function: localhelm_create_test_chart ##
 
+Create a dummy chart using helm
 | arg list |
 |--|
-| `<response-code> <policy-id> [<count>]`
+| `chart-name` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-id>` |  Id of the policy |
-| `<count>` |  An optional count of policies to delete. The 'policy-id' will be the first id to be deleted. |
+| `chart-name` | Name of the chart |
 
-## Function: a1pms_api_delete_policy_batch ##
+## Function: localhelm_package_test_chart ##
 
-This tests the same as function 'a1pms_api_delete_policy' except that all delete requests are sent to dmaap in one go and then the responses are polled one by one.
-If the a1pms api is not configured to used dmaap (see 'use_a1pms_dmaap', 'use_a1pms_rest_http' and 'use_a1pms_rest_https'), an error message is printed.
-For arg list and parameters, see 'a1pms_api_delete_policy'.
+Package a dummy chart using helm
+| arg list |
+|--|
+| `chart-name` |
 
-## Function: a1pms_api_delete_policy_parallel ##
+| parameter | description |
+| --------- | ----------- |
+| `chart-name` | Name of the chart |
 
-This tests the same as function 'a1pms_api_delete_policy' except that the policy delete is spread out over a number of processes and it only uses the a1pms rest API. The total number of policies deleted is determined by the product of the parameters 'number-of-rics' and 'count'. The parameter 'number-of-threads' shall be selected to be not evenly divisible by the product of the parameters 'number-of-rics' and 'count' - this is to ensure that one process does not handle the deletion of all the policies in one ric.
+## Function: localhelm_installed_chart_release ##
 
+Check if a chart is installed or not using helm
 | arg list |
 |--|
-| `<response-code> <ric-id-base> <number-of-rics> <policy-start-id> <count-per-ric> <number-of-threads>`
+| `INSTALLED|NOTINSTALLED <release-name> <name-space> |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<ric-id-base>` | The base id of the rics, ie ric id without the sequence number. The sequence number is added during processing  |
-| `<number-of-rics>` | The number of rics, assuming the first index is '1'  |
-| `<policy-start-id>` |  Id of the policy. This value shall be a numeric value and will be the id of the first policy |
-| `<count-per-ric>` |  Number of policies per ric |
-| `<number-of-threads>` |  Number of threads (processes) to run in parallel |
+| `INSTALLED` | Expecting installed chart |
+| `NOTINSTALLED` | Expecting a not installed chart |
+| `release-name` | Name of the release |
+| `name-space` | Expected namespace |
 
-## Function: a1pms_api_get_policy_ids ##
+# Description of functions in mr_api_functions.sh #
 
-Test of GET '/policy_ids' or V2 GET '/v2/policies'.
-To test response code only, provide the response code parameter as well as the following three parameters.
-To also test the response payload add the 'NOID' for an expected empty array or repeat the 'policy-instance-id' for each expected policy id.
+## Function: use_mr_http ##
+
+Use http for all Dmaap calls to the MR. This is the default. The admin API is not affected.
 
 | arg list |
 |--|
-| `<response-code> <ric-id>\|NORIC <service-id>\|NOSERVICE <type-id>\|NOTYPE ([<policy-instance-id]*\|NOID)` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<ric-id>` | Id of the ric  |
-| `NORIC` | Indicator that no ric is provided  |
-| `<service-id>` | Id of the service  |
-| `NOSERVICE` | Indicator that no service id is provided  |
-| `type-id>` |  Id of the policy type |
-| `NOTYPE` | Indicator that no type id is provided  |
-| `NOID` |  Indicator that no policy id is provided - indicate empty list of policies|
-| `<policy-instance-id>` |  Id of the policy |
+## Function: use_mr_https ##
 
-## Function: a1pms_api_get_policy_schema ##
+Use https for all Dmaap call to the MR. The admin API is not affected. Note that this function shall be called before preparing the config for Consul.
+| arg list |
+|--|
+| None |
 
-Test of V2 GET '/v2/policy-types/{policyTypeId}' and optional check of the returned json schema.
-To test the response code only, provide the expected response code and policy type id.
-To test the contents of the returned json schema, add a path to a schema file to compare with.
+## Function: start_mr ##
 
+Start the Message Router stub interface container in docker or kube depending on start mode
 | arg list |
 |--|
-| `<response-code> <policy-type-id> [<schema-file>]` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-type-id>` |  Id of the policy type |
-| `<schema-file>` |  Path to the schema file for the policy type |
+## Function: dmaap_api_print_topics ##
 
-## Function: a1pms_api_get_policy_schema ##
+Prints the current list of topics in DMAAP MR
 
-Test of GET '/policy_schema' and optional check of the returned json schema.
-To test the response code only, provide the expected response code and policy type id.
-To test the contents of the returned json schema, add a path to a schema file to compare with.
+| arg list |
+|--|
+| None |
 
+## Function: mr_equal ##
+
+Tests if a variable value in the Message Router (MR) simulator is equal to a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is equal to the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes equal to the target value or not.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<response-code> <policy-type-id> [<schema-file>]` |
+| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-type-id>` |  Id of the policy type |
-| `<schema-file>` |  Path to the schema file for the policy type |
-
-## Function: a1pms_api_get_policy_schemas ##
+| `<variable-name>` | Variable name in the MR  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to reach the target value  |
 
-Test of GET '/policy_schemas' and optional check of the returned json schemas.
-To test the response code only, provide the expected response code and ric id (or NORIC if no ric is given).
-To test the contents of the returned json schema, add a path to a schema file to compare with (or NOFILE to represent an empty '{}' type)
+## Function: mr_greater ##
 
+Tests if a variable value in the Message Router (MR) simulator is greater than a target value.
+Without the timeout, the test sets pass or fail immediately depending on if the variable is greater than the target or not.
+With the timeout, the test waits up to the timeout seconds before setting pass or fail depending on if the variable value becomes greater than the target value or not.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<response-code>  <ric-id>\|NORIC [<schema-file>\|NOFILE]*` |
+| `<variable-name> <target-value> [ <timeout-in-sec> ]` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<ric-id>` |  Id of the ric |
-| `NORIC` |  No ric id given |
-| `<schema-file>` |  Path to the schema file for the policy type |
-| `NOFILE` |  Indicate the template for an empty type |
-
-## Function: a1pms_api_get_policy_status ##
+| `<variable-name>` | Variable name in the MR  |
+| `<target-value>` | Target value for the variable  |
+| `<timeout-in-sec>` | Max time to wait for the variable to become grater than the target value  |
 
-Test of GET '/policy_status' or V2 GET '/policies/{policy_id}/status'.
+## Function: mr_read ##
 
+Reads the value of a variable in the Message Router (MR) simulator. The value is intended to be passed to a env variable in the test script.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<response-code> <policy-id> (STD\|STD2 <enforce-status>\|EMPTY [<reason>\|EMPTY])\|(OSC <instance-status> <has-been-deleted>)` |
+| `<variable-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-id>` |  Id of the policy |
-| `STD` |  Indicator of status of Standarized A1 |
-| `STD2` |  Indicator of status of Standarized A1 version 2 |
-| `<enforce-status>` |  Enforcement status |
-| `<reason>` |  Optional reason |
-| `EMPTY` |  Indicator of empty string status or reason |
-| `OSC` |  Indicator of status of Non-Standarized OSC A1 |
-| `<instance-status>` |  Instance status |
-| `<has-been-deleted>` |  Deleted status, true or false |
-
-## Function: a1pms_api_get_policy_types ##
+| `<variable-name>` | Variable name in the MR  |
 
-Test of GET '/policy_types' or  V2 GET '/v2/policy-types' and optional check of the returned ids.
-To test the response code only, provide the expected response code and ric id (or NORIC if no ric is given).
-To test the contents of the returned json payload, add the list of expected policy type id (or 'EMPTY' for the '{}' type)
+## Function: mr_print ##
 
+Prints the value of a variable in the Message Router (MR) simulator.
+See the 'mrstub' dir for more details.
 | arg list |
 |--|
-| `<response-code> [<ric-id>\|NORIC [<policy-type-id>\|EMPTY [<policy-type-id>]*]]` |
+| `<variable-name>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<ric-id>` |  Id of the ric |
-| `NORIC` |  No ric id given |
-| `<policy-type-id>` |  Id of the policy type |
-| `EMPTY` |  Indicate the empty type |
-
-## Function: a1pms_api_get_status ##
+| `<variable-name>` | Variable name in the MR  |
 
-Test of GET /status or V2 GET /status
+## Function: mr_api_send_json ##
 
+Send json to topic in mr-stub.
 | arg list |
 |--|
-| `<response-code>` |
+| `<topic-url> <json-msg>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-
-## Function: a1pms_api_get_ric ##
+| `<topic-url>` | Topic url  |
+| `<json-msg>` | Json msg as string  |
 
-Test of GET '/ric' or V2 GET '/v2/rics/ric'
-To test the response code only, provide the expected response code and managed element id.
-To test the returned ric id, provide the expected ric id.
+## Function: mr_api_send_text ##
 
+Send text to topic in mr-stub.
 | arg list |
 |--|
-| `<reponse-code> <managed-element-id> [<ric-id>]` |
-
-| arg list V2 |
-|--|
-| `<reponse-code> <management-element-id>\|NOME <ric-id>\|<NORIC> [<string-of-ricinfo>]` |
+| `<topic-url> <text-msg>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<managed-element-id>` |  Id of the managed element |
-| `NOME` |  Indicator for no ME |
-| `ric-id` |  Id of the ric |
-| `NORIC` |  Indicator no RIC |
-| `string-of-ricinfo` |  String of ric info |
+| `<topic-url>` | Topic url  |
+| `<text-msg>` | Text (string) msg  |
 
-## Function: a1pms_api_get_rics ##
 
-Test of GET '/rics' or V2 GET '/v2/rics' and optional check of the returned json payload (ricinfo).
-To test the response code only, provide the expected response code and policy type id (or NOTYPE if no type is given).
-To test also the returned payload, add the formatted string of info in the returned payload.
-Format of ricinfo: <br>`<ric-id>:<list-of-mes>:<list-of-policy-type-ids>`<br>
-Example <br>`<space-separate-string-of-ricinfo> = "ricsim_g1_1:me1_ricsim_g1_1,me2_ricsim_g1_1:1,2,4 ricsim_g1_1:me2_........."`
 
+## Function: mr_api_send_json_file ##
+
+Send json to topic in mr-stub.
 | arg list |
 |--|
-| `<reponse-code> <policy-type-id>\|NOTYPE [<space-separate-string-of-ricinfo>]` |
+| `<topic-url> <json-file>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<policy-type-id>` |  Policy type id of the ric |
-| `NOTYPE>` |  No type given |
-| `<space-separate-string-of-ricinfo>` |  A space separated string of ric info - needs to be quoted |
+| `<topic-url>` | Topic url  |
+| `<json-file>` | Path to file with json msg as string  |
 
-## Function: a1pms_api_put_service ##
+## Function: mr_api_send_text_file ##
 
-Test of PUT '/service' or V2 PUT '/service'.
+Send text to topic in mr-stub.
 | arg list |
 |--|
-| `<response-code>  <service-name> <keepalive-timeout> <callbackurl>` |
+| `<topic-url> <text-file>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-name>` |  Service name |
-| `<keepalive-timeout>` |  Timeout value |
-| `<callbackurl>` |  Callback url |
-
-## Function: a1pms_api_get_services ##
+| `<topic-url>` | Topic url  |
+| `<text-file>` | Path to file with text msg as string  |
 
-Test of GET '/service' or V2 GET '/v2/services' and optional check of the returned json payload.
-To test only the response code, omit all parameters except the expected response code.
-To test the returned json, provide the parameters after the response code.
+## Function: mr_api_generate_json_payload_file ##
 
+Create json file with dummy data for payload.
 | arg list |
 |--|
-| `<response-code> [ (<query-service-name> <target-service-name> <keepalive-timeout> <callbackurl>) \| (NOSERVICE <target-service-name> <keepalive-timeout> <callbackurl> [<target-service-name> <keepalive-timeout> <callbackurl>]* )]` |
+| `<size-in-kb> <filename>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<query-service-name>` |  Service name for the query |
-| `<target-service-name>` |  Target service name|
-| `<keepalive-timeout>` |  Timeout value |
-| `<callbackurl>` |  Callback url |
-| `NOSERVICE` |  Indicator of no target service name |
-
-## Function: a1pms_api_get_service_ids ##
+| `<size-in-kb>` | Generated size in kb  |
+| `<filename>` | Path to output file  |
 
-Test of GET '/services' or V2 GET /'v2/services'. Only check of service ids.
+## Function: mr_api_generate_text_payload_file ##
 
+Create file with dummy text data for payload.
 | arg list |
 |--|
-| `<response-code> [<service-name>]*` |
+| `<size-in-kb> <filename>` |
 
 | parameter | description |
 | --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-name>` |  Service name |
+| `<size-in-kb>` | Generated size in kb  |
+| `<filename>` | Path to output file  |
 
-## Function: a1pms_api_delete_services ##
+# Description of functions in ngw_api_functions.sh #
 
-Test of DELETE '/services' or V2 DELETE '/v2/services/{serviceId}'
+## Function: use_gateway_http ##
 
+Use http for all calls to the gateway. This is set by default.
 | arg list |
 |--|
-| `<response-code> [<service-name>]*` |
-
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-name>` |  Service name |
-
-## Function: a1pms_api_put_services_keepalive ##
+| None |
 
-Test of PUT '/services/keepalive' or V2 PUT '/v2/services/{service_id}/keepalive'
+## Function: use_gateway_https ##
 
+Use https for all calls to the gateway.
 | arg list |
 |--|
-| `<response-code> <service-name>` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<service-name>` |  Service name |
+## Function: set_gateway_debug ##
 
-## Function: a1pms_api_put_configuration ##
+Set debug level logging in the gateway
+| arg list |
+|--|
+| None |
 
-Test of PUT '/v2/configuration'
+## Function: set_gateway_trace ##
 
+Set debug level logging in the trace
 | arg list |
 |--|
-| `<response-code> <config-file>` |
+| None |
 
-| parameter | description |
-| --------- | ----------- |
-| `<response-code>` | Expected http response code |
-| `<config-file>` |  Path json config file |
+## Function: start_gateway ##
 
-## Function: a1pms_api_get_configuration ##
+Start the the gateway container in docker or kube depending on start mode
+| arg list |
+|--|
+| None |
 
-Test of GET '/v2/configuration'
+## Function: gateway_a1pms_get_status ##
 
+Sample test of a1pms api (status)
+Only response code tested - not payload
 | arg list |
 |--|
-| `<response-code> [<config-file>]` |
+| `<response-code>` |
 
 | parameter | description |
 | --------- | ----------- |
 | `<response-code>` | Expected http response code |
-| `<config-file>` |  Path json config file to compare the retrieved config with |
 
-## Function: a1pms_kube_pvc_reset ##
-Admin reset to remove all policies and services
-All types and instances etc are removed - types and instances in a1 sims need to be removed separately
-NOTE - only works in kubernetes and the pod should not be running
+## Function: gateway_ics_get_types ##
 
+Sample test of ics api (get types)
+Only response code tested - not payload
 | arg list |
 |--|
-| None |
+| `<response-code>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
 
 
 # Description of functions in prodstub_api_functions.sh #
@@ -2829,20 +3092,102 @@ Check a registered service.
 | `<response-code>` | Expected http response code |
 | `<service-id>` | Id of the service  |
 
+
+# Description of functions in ricmediatorsim_api_functions.sh #
+
+The functions below only use the admin interface of the ricmediator, no usage of the A1 interface.
+
+## Function: use_ricmediator_simulator_http ##
+
+Use http for all API calls (A1) toward the simulator. This is the default. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for A1PMS.
+| arg list |
+|--|
+| None |
+
+## Function: use_ricmediator_simulator_https ##
+
+Use https for all API calls (A1) toward the simulator. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for A1PMS.
+| arg list |
+|--|
+| None |
+
+## Function: start_ricmediator_simulators ##
+
+Start a group of simulator where a group may contain 1 more simulators. Started in docker or kube depending on start mode
+| arg list |
+|--|
+| `ricsim_g1\|ricsim_g2\|ricsim_g3 <count> <interface-id>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `ricsim_g1\|ricsim_g2\|ricsim_g3` | Base name of the simulator. Each instance will have an postfix instance id added, starting on '1'. For examplle 'ricsim_g1_1', 'ricsim_g1_2' etc  |
+|`<count>`| And integer, 1 or greater. Specifies the number of simulators to start|
+|`<interface-id>`| Shall be the interface id of the simulator. See the repo 'a1-interface' for the available ids. |
+
+## Function: get_kube_ricmediatorsim_host ##
+
+Translate ric name to kube host name.
+| arg list |
+|--|
+| `<ric-name>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<ric-name>` | The name of the ric to translate into a host name (ip) |
+
+## Function: nearsim_generate_policy_uuid ##
+
+Geneate a UUID prefix to use along with the policy instance number when creating/deleting policies. Sets the env var UUID.
+UUID is then automatically added to the policy id in GET/PUT/DELETE.
+| arg list |
+|--|
+| None |
+
+
+## Function: ricmediatorsim_put_policy_type ##
+
+Loads a policy type to the simulator
+
+| arg list |
+|--|
+| `<response-code> <ric-id> <policy-type-id> <policy-type-file>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<ric-id>` |  Id of the ric |
+| `<policy-type-id>` |  Id of the policy type |
+| `<policy-type-file>` |  Path to the schema file of the policy type |
+
+## Function: ricmediatorsim_delete_policy_type ##
+
+Deletes a policy type from the simulator
+
+| arg list |
+|--|
+| `<response-code> <ric-id> <policy_type_id>` |
+
+| parameter | description |
+| --------- | ----------- |
+| `<response-code>` | Expected http response code |
+| `<ric-id>` |  Id of the ric |
+| `<policy-type-id>` |  Id of the policy type |
+
+
 # Description of functions in ricsim_api_functions.sh #
 
 The functions below only use the admin interface of the simulator, no usage of the A1 interface.
 
 ## Function: use_simulator_http ##
 
-Use http for all API calls (A1) toward the simulator. This is the default. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for Consul.
+Use http for all API calls (A1) toward the simulator. This is the default. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for A1PMS.
 | arg list |
 |--|
 | None |
 
 ## Function: use_simulator_https ##
 
-Use https for all API calls (A1) toward the simulator. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for Consul.
+Use https for all API calls (A1) toward the simulator. Admin API calls to the simulator are not affected. Note that this function shall be called before preparing the config for A1PMS.
 | arg list |
 |--|
 | None |
@@ -3017,14 +3362,14 @@ The file contains a selection of the possible API tests towards the SDNC (a1-con
 
 ## Function: use_sdnc_http ##
 
-Use http for all API calls towards the SDNC A1 Controller. This is the default. Note that this function shall be called before preparing the config for Consul.
+Use http for all API calls towards the SDNC A1 Controller. This is the default. Note that this function shall be called before preparing the config for A1PMS.
 | arg list |
 |--|
 | None |
 
 ## Function: use_sdnc_https ##
 
-Use https for all API calls towards the SDNC A1 Controller. Note that this function shall be called before preparing the config for Consul.
+Use https for all API calls towards the SDNC A1 Controller. Note that this function shall be called before preparing the config for A1PMS.
 | arg list |
 |--|
 | None |
index e391872..a114134 100644 (file)
@@ -25,7 +25,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __A1PMS_imagesetup() {
-       __check_and_create_image_var A1PMS "A1PMS_IMAGE" "A1PMS_IMAGE_BASE" "A1PMS_IMAGE_TAG" $1 "$A1PMS_DISPLAY_NAME"
+       __check_and_create_image_var A1PMS "A1PMS_IMAGE" "A1PMS_IMAGE_BASE" "A1PMS_IMAGE_TAG" $1 "$A1PMS_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -62,12 +62,12 @@ __A1PMS_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __A1PMS_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-policymanagementservice
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __A1PMS_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest A1PMS
@@ -75,7 +75,7 @@ __A1PMS_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __A1PMS_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=A1PMS" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_a1pms.log 2>&1
@@ -92,11 +92,11 @@ __A1PMS_initial_setup() {
        export A1PMS_SIDECAR_JWT_FILE=""
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__A1PMS_statisics_setup() {
+__A1PMS_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "A1PMS $A1PMS_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -238,7 +238,7 @@ start_a1pms() {
                __check_included_image "A1PMS"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "A1PMS"
                retcode_p=$?
 
@@ -456,13 +456,13 @@ start_stopped_a1pms() {
 }
 
 
-# Function to perpare the consul configuration according to the current simulator configuration
+# Function to prepare the a1pms configuration according to the current simulator configuration
 # args: SDNC|NOSDNC <output-file> [ <sim-group> <adapter-class> ]
 # (Function for test scripts)
 prepare_a1pms_config() {
        echo -e $BOLD"Prepare A1PMS config"$EBOLD
 
-       echo " Writing consul config for "$A1PMS_APP_NAME" to file: "$2
+       echo " Writing a1pms config for "$A1PMS_APP_NAME" to file: "$2
 
        if [ $# != 2 ] && [ $# != 4 ];  then
                ((RES_CONF_FAIL++))
index 6058e08..a6a526b 100644 (file)
@@ -19,7 +19,7 @@
 
 # Generic function to query the A1PMS/ICS via the REST or DMAAP interface.
 # Used by all other A1PMS/ICS api test functions
-# If operation sufffix is '_BATCH' the the send and get response is split in two sequences,
+# If operation suffix is '_BATCH' the the send and get response is split in two sequences,
 # one for sending the requests and one for receiving the response
 # but only when using the DMAAP interface
 # REST or DMAAP is controlled of the base url of $XX_ADAPTER
index 594aa31..7975562 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __AUTHSIDECAR_imagesetup() {
-       __check_and_create_image_var AUTHSIDECAR "AUTHSIDECAR_IMAGE" "AUTHSIDECAR_IMAGE_BASE" "AUTHSIDECAR_IMAGE_TAG" $1 "$AUTHSIDECAR_DISPLAY_NAME"
+       __check_and_create_image_var AUTHSIDECAR "AUTHSIDECAR_IMAGE" "AUTHSIDECAR_IMAGE_BASE" "AUTHSIDECAR_IMAGE_TAG" $1 "$AUTHSIDECAR_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __AUTHSIDECAR_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __AUTHSIDECAR_kube_scale_zero_and_wait() {
        :
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __AUTHSIDECAR_kube_delete_all() {
        :
@@ -76,7 +76,7 @@ __AUTHSIDECAR_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __AUTHSIDECAR_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=AUTHSIDECAR" -A --tail=-1 > $1$2_authsidecar.log 2>&1
@@ -90,11 +90,11 @@ __AUTHSIDECAR_initial_setup() {
        :
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__AUTHSIDECAR_statisics_setup() {
+__AUTHSIDECAR_statistics_setup() {
        echo ""
 }
 
@@ -106,4 +106,4 @@ __AUTHSIDECAR_test_requirements() {
 
 #######################################################
 
-# This app is intended as a sidecard container - no specific test functions
\ No newline at end of file
+# This app is intended as a sidecar container - no specific test functions
\ No newline at end of file
diff --git a/test/common/cbs_api_functions.sh b/test/common/cbs_api_functions.sh
deleted file mode 100644 (file)
index f08b250..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-#  ============LICENSE_START===============================================
-#  Copyright (C) 2021 Nordix Foundation. All rights reserved.
-#  ========================================================================
-#  Licensed under the Apache License, Version 2.0 (the "License");
-#  you may not use this file except in compliance with the License.
-#  You may obtain a copy of the License at
-#
-#       http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#  ============LICENSE_END=================================================
-#
-
-# Functions for CBS is included in consul_api_functions.sh
-
-
-
index 3cd8b33..814d8b1 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __CHARTMUS_imagesetup() {
-       __check_and_create_image_var CHARTMUS "CHART_MUS_IMAGE" "CHART_MUS_IMAGE_BASE" "CHART_MUS_IMAGE_TAG" REMOTE_OTHER "$CHART_MUS_DISPLAY_NAME"
+       __check_and_create_image_var CHARTMUS "CHART_MUS_IMAGE" "CHART_MUS_IMAGE_BASE" "CHART_MUS_IMAGE_TAG" REMOTE_OTHER "$CHART_MUS_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __CHARTMUS_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __CHARTMUS_kube_scale_zero_and_wait() {
        echo -e $RED" CHARTMUS app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __CHARTMUS_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest CHARTMUS
@@ -76,7 +76,7 @@ __CHARTMUS_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __CHARTMUS_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=CHARTMUS" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_chartmuseum.log 2>&1
@@ -92,11 +92,11 @@ __CHARTMUS_initial_setup() {
        use_chart_mus_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__CHARTMUS_statisics_setup() {
+__CHARTMUS_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "CHARTMUS $CHART_MUS_APP_NAME $KUBE_SIM_NAMESPACE"
        else
@@ -184,7 +184,7 @@ start_chart_museum() {
                __check_included_image "CHARTMUS"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "CHARTMUS"
                retcode_p=$?
 
@@ -244,7 +244,7 @@ start_chart_museum() {
     return 0
 }
 
-# Excute a curl cmd towards the chartmuseum simulator and check the response code.
+# Execute a curl cmd towards the chartmuseum simulator and check the response code.
 # args: TEST|CONF <expected-response-code> <curl-cmd-string>
 __execute_curl_to_chartmuseum() {
     TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")
index 44477d9..31a47c8 100644 (file)
@@ -15,7 +15,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This script compare two jsons for eqaulity, taken into account that the parameter values
+# This script compare two jsons for equality, taken into account that the parameter values
 # marked with '????' are not checked (only the parameter name need to exist)
 # Example of target json with '????'
 # [
@@ -57,7 +57,7 @@ def compare_json_list(list1, list2):
 
     return True
 
-# Deep compare of two json obects
+# Deep compare of two json objects
 # If a parameter value in the target json is set to '????' then the result json value is not checked for the that parameter
 # Return true for equal json, false for not equal json
 def compare_json_obj(obj1, obj2):
index 9d32c37..8e720dd 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __CP_imagesetup() {
-       __check_and_create_image_var CP "CONTROL_PANEL_IMAGE" "CONTROL_PANEL_IMAGE_BASE" "CONTROL_PANEL_IMAGE_TAG" $1 "$CONTROL_PANEL_DISPLAY_NAME"
+       __check_and_create_image_var CP "CONTROL_PANEL_IMAGE" "CONTROL_PANEL_IMAGE_BASE" "CONTROL_PANEL_IMAGE_TAG" $1 "$CONTROL_PANEL_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __CP_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __CP_kube_scale_zero_and_wait() {
        echo -e " CP replicas kept as is"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __CP_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest CP
@@ -76,7 +76,7 @@ __CP_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __CP_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=CP" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_control-panel.log 2>&1
@@ -92,11 +92,11 @@ __CP_initial_setup() {
        use_control_panel_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__CP_statisics_setup() {
+__CP_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "CP $CONTROL_PANEL_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -200,7 +200,7 @@ start_control_panel() {
                __check_included_image "CP"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "CP"
                retcode_p=$?
 
index a29d010..00d729c 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions test functions for the Callback Reciver
+# This is a script that contains container/service management functions test functions for the Callback Receiver
 
 
 ################ Test engine functions ################
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __CR_imagesetup() {
-       __check_and_create_image_var CR "CR_IMAGE" "CR_IMAGE_BASE" "CR_IMAGE_TAG" LOCAL "$CR_DISPLAY_NAME"
+       __check_and_create_image_var CR "CR_IMAGE" "CR_IMAGE_BASE" "CR_IMAGE_TAG" LOCAL "$CR_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Pull image from remote repo or use locally built image
@@ -44,7 +44,7 @@ __CR_imagepull() {
 __CR_imagebuild() {
        cd ../cr
        echo " Building CR - $CR_DISPLAY_NAME - image: $CR_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $CR_IMAGE . &> .dockererr
+       docker build $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $CR_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image CR_IMAGE
@@ -78,12 +78,12 @@ __CR_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __CR_kube_scale_zero_and_wait() {
        echo -e $RED" CR app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __CR_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest CR
@@ -91,7 +91,7 @@ __CR_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __CR_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                for podname in $(kubectl $KUBECONF get pods -n $KUBE_SIM_NAMESPACE -l "autotest=CR" -o custom-columns=":metadata.name"); do
@@ -112,11 +112,11 @@ __CR_initial_setup() {
        use_cr_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__CR_statisics_setup() {
+__CR_statistics_setup() {
        for ((CR_INSTANCE=MAX_CR_APP_COUNT; CR_INSTANCE>0; CR_INSTANCE-- )); do
                if [ $RUNMODE == "KUBE" ]; then
                        CR_INSTANCE_KUBE=$(($CR_INSTANCE-1))
@@ -214,7 +214,7 @@ __cr_export_vars() {
        export CR_APP_COUNT
 }
 
-# Start the Callback reciver in the simulator group
+# Start the Callback receiver in the simulator group
 # args: <app-count>
 # (Function for test scripts)
 start_cr() {
@@ -237,7 +237,7 @@ start_cr() {
                __check_included_image "CR"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "CR"
                retcode_p=$?
 
@@ -680,7 +680,7 @@ cr_api_reset() {
 # CR API: Check the contents of all json events for path
 # <response-code> <cr-path-id> <topic-url> (EMPTY | <json-msg>+ )
 # (Function for test scripts)
-cr_api_check_all_genric_json_events() {
+cr_api_check_all_generic_json_events() {
        __log_test_start $@
 
        if [ $# -lt 4 ]; then
@@ -736,7 +736,7 @@ cr_api_check_all_genric_json_events() {
 # CR API: Check a single (oldest) json event (or none if empty) for path
 # <response-code> <cr-path-id> <topic-url> (EMPTY | <json-msg> )
 # (Function for test scripts)
-cr_api_check_single_genric_json_event() {
+cr_api_check_single_generic_json_event() {
        __log_test_start $@
 
        if [ $# -ne 4 ]; then
@@ -783,7 +783,7 @@ cr_api_check_single_genric_json_event() {
 # The MD5 will generate different hash if ws is present or not in otherwise equivalent json
 # arg: <response-code> <cr-path-id> <topic-url> (EMPTY | <data-msg> )
 # (Function for test scripts)
-cr_api_check_single_genric_event_md5() {
+cr_api_check_single_generic_event_md5() {
        __log_test_start $@
 
        if [ $# -ne 4 ]; then
@@ -846,7 +846,7 @@ cr_api_check_single_genric_event_md5() {
 # The MD5 will generate different hash if ws/newlines is present or not in otherwise equivalent json
 # arg: <response-code> <cr-path-id> <topic-url> (EMPTY | <data-file> )
 # (Function for test scripts)
-cr_api_check_single_genric_event_md5_file() {
+cr_api_check_single_generic_event_md5_file() {
        __log_test_start $@
 
        if [ $# -ne 4 ]; then
index d7e8c0d..7f4046e 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions test functions for the Dmaap Adatper
+# This is a script that contains container/service management functions test functions for the Dmaap Adapter
 
 
 ################ Test engine functions ################
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __DMAAPADP_imagesetup() {
-       __check_and_create_image_var DMAAPADP "DMAAP_ADP_IMAGE" "DMAAP_ADP_IMAGE_BASE" "DMAAP_ADP_IMAGE_TAG" $1 "$DMAAP_ADP_DISPLAY_NAME"
+       __check_and_create_image_var DMAAPADP "DMAAP_ADP_IMAGE" "DMAAP_ADP_IMAGE_BASE" "DMAAP_ADP_IMAGE_TAG" $1 "$DMAAP_ADP_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __DMAAPADP_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __DMAAPADP_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-dmaapadapterservice
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __DMAAPADP_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest DMAAPADP
@@ -76,7 +76,7 @@ __DMAAPADP_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __DMAAPADP_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=DMAAPADP" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_dmaapadapter.log 2>&1
@@ -92,11 +92,11 @@ __DMAAPADP_initial_setup() {
        use_dmaapadp_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__DMAAPADP_statisics_setup() {
+__DMAAPADP_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "DMAAPADP $DMAAP_ADP_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -210,7 +210,7 @@ start_dmaapadp() {
                __check_included_image "DMAAPADP"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "DMAAPADP"
                retcode_p=$?
 
index c9c9c15..4c34ad6 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions test functions for the Dmaap Adatper
+# This is a script that contains container/service management functions test functions for the Dmaap Mediator
 
 
 ################ Test engine functions ################
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __DMAAPMED_imagesetup() {
-       __check_and_create_image_var DMAAPMED "DMAAP_MED_IMAGE" "DMAAP_MED_IMAGE_BASE" "DMAAP_MED_IMAGE_TAG" $1 "$DMAAP_MED_DISPLAY_NAME"
+       __check_and_create_image_var DMAAPMED "DMAAP_MED_IMAGE" "DMAAP_MED_IMAGE_BASE" "DMAAP_MED_IMAGE_TAG" $1 "$DMAAP_MED_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __DMAAPMED_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __DMAAPMED_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-dmaapmediatorservice
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __DMAAPMED_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest DMAAPMED
@@ -76,7 +76,7 @@ __DMAAPMED_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __DMAAPMED_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=DMAAPMED" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_dmaapmediator.log 2>&1
@@ -92,11 +92,11 @@ __DMAAPMED_initial_setup() {
        use_dmaapmed_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__DMAAPMED_statisics_setup() {
+__DMAAPMED_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "DMAAPMED $DMAAP_MED_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -205,7 +205,7 @@ start_dmaapmed() {
                __check_included_image "DMAAPMED"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "DMAAPMED"
                retcode_p=$?
 
index 9edd01a..80809fe 100755 (executable)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This script format http endpoint stats generated by testscripts
+# This script format http endpoint stats generated by test scripts
 
 print_usage() {
   echo "Usage: format_endpoint_stats <log-base-dir> <app-id> <app-description> [tc-id]+ "
index 42d2bca..80239f9 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions test functions for Helm Manager
+# This is a script that contains container/service management functions test functions for Helm Manager
 
 ################ Test engine functions ################
 
@@ -25,7 +25,7 @@
 # arg: [<image-tag-suffix>] (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __HELMMANAGER_imagesetup() {
-       __check_and_create_image_var HELMMANAGER "HELM_MANAGER_IMAGE" "HELM_MANAGER_IMAGE_BASE" "HELM_MANAGER_IMAGE_TAG" $1 "$HELM_MANAGER_DISPLAY_NAME"
+       __check_and_create_image_var HELMMANAGER "HELM_MANAGER_IMAGE" "HELM_MANAGER_IMAGE_BASE" "HELM_MANAGER_IMAGE_TAG" $1 "$HELM_MANAGER_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -55,12 +55,12 @@ __HELMMANAGER_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __HELMMANAGER_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-"$HELM_MANAGER_APP_NAME"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __HELMMANAGER_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest HELMMANAGER
@@ -68,7 +68,7 @@ __HELMMANAGER_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __HELMMANAGER_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=HELMMANAGER" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_helmmanager.log 2>&1
@@ -84,11 +84,11 @@ __HELMMANAGER_initial_setup() {
        use_helm_manager_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__HELMMANAGER_statisics_setup() {
+__HELMMANAGER_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "HELMMANAGER $HELM_MANAGER_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -178,7 +178,7 @@ start_helm_manager() {
                __check_included_image "HELMMANAGER"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "HELMMANAGER"
                retcode_p=$?
 
@@ -243,7 +243,7 @@ start_helm_manager() {
        echo ""
 }
 
-# Excute a curl cmd towards the helm manager.
+# Execute a curl cmd towards the helm manager.
 # args: GET <path>
 # args: POST <path> <file-to-post>
 # args: POST3 <path> <name> <file-to-post> <name> <file-to-post> <name> <file-to-post>
index ce7fcad..2ff505f 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions for Http Proxy
+# This is a script that contains container/service management functions for Http Proxy
 
 ################ Test engine functions ################
 
@@ -25,7 +25,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __HTTPPROXY_imagesetup() {
-       __check_and_create_image_var HTTPPROXY "HTTP_PROXY_IMAGE" "HTTP_PROXY_IMAGE_BASE" "HTTP_PROXY_IMAGE_TAG" LOCAL "$HTTP_PROXY_DISPLAY_NAME"
+       __check_and_create_image_var HTTPPROXY "HTTP_PROXY_IMAGE" "HTTP_PROXY_IMAGE_BASE" "HTTP_PROXY_IMAGE_TAG" LOCAL "$HTTP_PROXY_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Pull image from remote repo or use locally built image
@@ -43,7 +43,7 @@ __HTTPPROXY_imagepull() {
 __HTTPPROXY_imagebuild() {
        cd ../$HTTP_PROXY_BUILD_DIR       # Note: Reusing same impl as for kube proxy
        echo " Building HTTPPROXY - $HTTP_PROXY_DISPLAY_NAME - image: $HTTP_PROXY_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $HTTP_PROXY_IMAGE . &> .dockererr
+       docker build $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $HTTP_PROXY_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image HTTP_PROXY_IMAGE
@@ -77,12 +77,12 @@ __HTTPPROXY_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __HTTPPROXY_kube_scale_zero_and_wait() {
        echo -e $RED" HTTPPROXY app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __HTTPPROXY_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest HTTPPROXY
@@ -90,7 +90,7 @@ __HTTPPROXY_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __HTTPPROXY_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=HTTPPROXY" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_httpproxy.log 2>&1
@@ -106,11 +106,11 @@ __HTTPPROXY_initial_setup() {
        use_http_proxy_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__HTTPPROXY_statisics_setup() {
+__HTTPPROXY_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "HTTPPROXY $HTTP_PROXY_APP_NAME $KUBE_SIM_NAMESPACE"
        else
@@ -198,7 +198,7 @@ start_http_proxy() {
                __check_included_image "HTTPPROXY"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "HTTPPROXY"
                retcode_p=$?
 
index 3676fdc..9a80bcc 100644 (file)
@@ -25,7 +25,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __ICS_imagesetup() {
-       __check_and_create_image_var ICS "ICS_IMAGE" "ICS_IMAGE_BASE" "ICS_IMAGE_TAG" $1 "$ICS_DISPLAY_NAME"
+       __check_and_create_image_var ICS "ICS_IMAGE" "ICS_IMAGE_BASE" "ICS_IMAGE_TAG" $1 "$ICS_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -62,12 +62,12 @@ __ICS_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __ICS_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-informationservice
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __ICS_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest ICS
@@ -75,7 +75,7 @@ __ICS_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __ICS_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=ICS" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_ics.log 2>&1
@@ -92,11 +92,11 @@ __ICS_initial_setup() {
        export ICS_SIDECAR_JWT_FILE=""
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__ICS_statisics_setup() {
+__ICS_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "ICS $ICS_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -224,7 +224,7 @@ start_ics() {
                __check_included_image "ICS"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "ICS"
                retcode_p=$?
 
index dbbc6a5..e0fee9b 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains function to handle helm on localhost
+# This is a script that contain functions to handle istio configuration
 
 
 ################ Test engine functions ################
@@ -60,12 +60,12 @@ __ISTIO_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __ISTIO_kube_scale_zero_and_wait() {
        :
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __ISTIO_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest ISTIO
@@ -78,7 +78,7 @@ __ISTIO_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __ISTIO_store_docker_logs() {
        :
 }
@@ -92,11 +92,11 @@ __ISTIO_initial_setup() {
        KUBE_PROXY_ISTIO_JWKS_KEYS=$ISTIO_GENERIC_JWKS_KEY
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__ISTIO_statisics_setup() {
+__ISTIO_statistics_setup() {
        :
 }
 
@@ -194,11 +194,11 @@ istio_req_auth_by_jwks() {
 }
 
 # Authorization policy - by realm
-# args: <app> <namespace> <realam> [<client-id> <client-role>]
+# args: <app> <namespace> <realm> [<client-id> <client-role>]
 istio_auth_policy_by_realm() {
        __log_conf_start $@
     if [ $# -ne 3 ] && [ $# -ne 5 ]; then
-        __print_err "<app> <namespace> <realam> [<client-id> <client-role>]" $@
+        __print_err "<app> <namespace> <realm> [<client-id> <client-role>]" $@
         return 1
     fi
        name="ap-realm-"$3"-"$1"-"$2
index fee52ae..61d45ba 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions for Kafka producer/consumer
+# This is a script that contains container/service management functions for Kafka producer/consumer
 
 ################ Test engine functions ################
 
@@ -25,7 +25,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __KAFKAPC_imagesetup() {
-       __check_and_create_image_var KAFKAPC "KAFKAPC_IMAGE" "KAFKAPC_IMAGE_BASE" "KAFKAPC_IMAGE_TAG" LOCAL "$KAFKAPC_DISPLAY_NAME"
+       __check_and_create_image_var KAFKAPC "KAFKAPC_IMAGE" "KAFKAPC_IMAGE_BASE" "KAFKAPC_IMAGE_TAG" LOCAL "$KAFKAPC_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Pull image from remote repo or use locally built image
@@ -44,7 +44,7 @@ __KAFKAPC_imagebuild() {
 
        cd ../$KAFKAPC_BUILD_DIR
        echo " Building KAFKAPC - $KAFKAPC_DISPLAY_NAME - image: $KAFKAPC_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $KAFKAPC_IMAGE . &> .dockererr
+       docker build  $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $KAFKAPC_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image KAFKAPC_IMAGE
@@ -78,12 +78,12 @@ __KAFKAPC_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __KAFKAPC_kube_scale_zero_and_wait() {
        echo -e $RED" KAFKAPC app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __KAFKAPC_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest KAFKAPC
@@ -91,7 +91,7 @@ __KAFKAPC_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __KAFKAPC_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=KAFKAPC" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_kafkapc.log 2>&1
@@ -107,11 +107,11 @@ __KAFKAPC_initial_setup() {
        use_kafkapc_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__KAFKAPC_statisics_setup() {
+__KAFKAPC_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "KAFKAPC $KAFKAPC_APP_NAME $KUBE_SIM_NAMESPACE"
        else
@@ -200,7 +200,7 @@ start_kafkapc() {
                __check_included_image "KAFKAPC"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "KAFKAPC"
                retcode_p=$?
 
index 7f49595..858c3ec 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __KEYCLOAK_imagesetup() {
-       __check_and_create_image_var KEYCLOAK "KEYCLOAK_IMAGE" "KEYCLOAK_IMAGE_BASE" "KEYCLOAK_IMAGE_TAG" REMOTE_OTHER "$KEYCLOAK_DISPLAY_NAME"
+       __check_and_create_image_var KEYCLOAK "KEYCLOAK_IMAGE" "KEYCLOAK_IMAGE_BASE" "KEYCLOAK_IMAGE_TAG" REMOTE_OTHER "$KEYCLOAK_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __KEYCLOAK_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __KEYCLOAK_kube_scale_zero_and_wait() {
        echo -e $RED" KEYCLOAK app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __KEYCLOAK_kube_delete_all() {
        __kube_delete_all_resources $KUBE_KEYCLOAK_NAMESPACE autotest KEYCLOAK
@@ -76,7 +76,7 @@ __KEYCLOAK_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __KEYCLOAK_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=KEYCLOAK" -n $KUBE_KEYCLOAK_NAMESPACE --tail=-1 > $1$2_keycloak.log 2>&1
@@ -92,11 +92,11 @@ __KEYCLOAK_initial_setup() {
        use_keycloak_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__KEYCLOAK_statisics_setup() {
+__KEYCLOAK_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "KEYCLOAK $KEYCLOAK_APP_NAME $KUBE_KEYCLOAK_NAMESPACE"
        else
@@ -191,7 +191,7 @@ start_keycloak() {
                __check_included_image "KEYCLOAK"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "KEYCLOAK"
                retcode_p=$?
 
@@ -247,7 +247,7 @@ start_keycloak() {
     return 0
 }
 
-# Excute a curl cmd towards the keycloak and check the response code is 2XX.
+# Execute a curl cmd towards the keycloak and check the response code is 2XX.
 # args: <curl-cmd-string>
 # resp: <returned-payload> if return code is 0 otherwise <error-info>
 __execute_curl_to_keycloak() {
@@ -280,7 +280,7 @@ __execute_curl_to_keycloak() {
        return 0
 }
 
-# Excute a curl cmd towards the keycloak and check the response code is 2XX.
+# Execute a curl cmd towards the keycloak and check the response code is 2XX.
 # args: <operation> <url> <token> <json>
 # resp: <returned-payload> if return code is 0 otherwise <error-info>
 __execute_curl_to_keycloak2() {
@@ -561,18 +561,6 @@ keycloak_api_map_client_roles() {
                return 1
        fi
 
-
-
-
-    # while [ $# -gt 0 ]; do
-       #       __json='{"name":"'$1'"}'
-       #       res=$(__execute_curl_to_keycloak2 POST "$KEYCLOAK_SERVICE_PATH$KEYCLOAK_REALM_URL_PREFIX/$__realm/clients/$__c_id/roles" "$__KEYCLOAK_ADMIN_TOKEN" "$__json")
-       #       if [ $? -ne 0 ]; then
-       #               __log_conf_fail_general " Fatal error when adding client role, response: "$?
-       #               return 1
-       #       fi
-       #       shift
-       # done
        __log_conf_ok
        return 0
 }
index c66e63c..2b1caa1 100644 (file)
@@ -17,8 +17,8 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions for Kube Http Proxy
-# This http proxy is to provide full access for the test script to all adressable kube object in a clister
+# This is a script that contains container/service management functions for Kube Http Proxy
+# This http proxy is to provide full access for the test script to all addressable kube object in a cluster
 
 ################ Test engine functions ################
 
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __KUBEPROXY_imagesetup() {
-       __check_and_create_image_var KUBEPROXY "KUBE_PROXY_IMAGE" "KUBE_PROXY_IMAGE_BASE" "KUBE_PROXY_IMAGE_TAG" LOCAL "$KUBE_PROXY_DISPLAY_NAME"
+       __check_and_create_image_var KUBEPROXY "KUBE_PROXY_IMAGE" "KUBE_PROXY_IMAGE_BASE" "KUBE_PROXY_IMAGE_TAG" LOCAL "$KUBE_PROXY_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Pull image from remote repo or use locally built image
@@ -44,7 +44,7 @@ __KUBEPROXY_imagepull() {
 __KUBEPROXY_imagebuild() {
        cd ../http-https-proxy
        echo " Building KUBEPROXY - $KUBE_PROXY_DISPLAY_NAME - image: $KUBE_PROXY_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $KUBE_PROXY_IMAGE . &> .dockererr
+       docker build  $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $KUBE_PROXY_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image KUBE_PROXY_IMAGE
@@ -78,12 +78,12 @@ __KUBEPROXY_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __KUBEPROXY_kube_scale_zero_and_wait() {
        echo -e $RED" KUBEPROXY app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __KUBEPROXY_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest KUBEPROXY
@@ -91,7 +91,7 @@ __KUBEPROXY_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __KUBEPROXY_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=KUBEPROXY" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_kubeproxy.log 2>&1
@@ -107,11 +107,11 @@ __KUBEPROXY_initial_setup() {
        use_kube_proxy_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__KUBEPROXY_statisics_setup() {
+__KUBEPROXY_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "KUBEPROXXY $KUBE_PROXY_APP_NAME $KUBE_SIM_NAMESPACE"
        else
@@ -202,7 +202,7 @@ start_kube_proxy() {
                __check_included_image "KUBEPROXY"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "KUBEPROXY"
                retcode_p=$?
 
index c7a6d3d..78c6767 100644 (file)
@@ -60,12 +60,12 @@ __LOCALHELM_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __LOCALHELM_kube_scale_zero_and_wait() {
        :
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __LOCALHELM_kube_delete_all() {
        :
@@ -73,7 +73,7 @@ __LOCALHELM_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __LOCALHELM_store_docker_logs() {
        :
 }
@@ -85,11 +85,11 @@ __LOCALHELM_initial_setup() {
        :
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__LOCALHELM_statisics_setup() {
+__LOCALHELM_statistics_setup() {
        :
 }
 
index 977c3da..7bd7118 100755 (executable)
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __MR_imagesetup() {
-       __check_and_create_image_var MR "MRSTUB_IMAGE" "MRSTUB_IMAGE_BASE" "MRSTUB_IMAGE_TAG" LOCAL "$MR_STUB_DISPLAY_NAME"
+       __check_and_create_image_var MR "MRSTUB_IMAGE" "MRSTUB_IMAGE_BASE" "MRSTUB_IMAGE_TAG" LOCAL "$MR_STUB_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Create the image var used during the test
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __DMAAPMR_imagesetup() {
-       __check_and_create_image_var DMAAPMR "ONAP_DMAAPMR_IMAGE"    "ONAP_DMAAPMR_IMAGE_BASE"  "ONAP_DMAAPMR_IMAGE_TAG"   REMOTE_RELEASE_ONAP "DMAAP Message Router"
-       __check_and_create_image_var DMAAPMR "ONAP_ZOOKEEPER_IMAGE" "ONAP_ZOOKEEPER_IMAGE_BASE" "ONAP_ZOOKEEPER_IMAGE_TAG" REMOTE_RELEASE_ONAP "ZooKeeper"
-       __check_and_create_image_var DMAAPMR "ONAP_KAFKA_IMAGE"     "ONAP_KAFKA_IMAGE_BASE"     "ONAP_KAFKA_IMAGE_TAG"     REMOTE_RELEASE_ONAP "Kafka"
+       __check_and_create_image_var DMAAPMR "ONAP_DMAAPMR_IMAGE"    "ONAP_DMAAPMR_IMAGE_BASE"  "ONAP_DMAAPMR_IMAGE_TAG"   REMOTE_RELEASE_ONAP "DMAAP Message Router" ""
+       __check_and_create_image_var DMAAPMR "ONAP_ZOOKEEPER_IMAGE" "ONAP_ZOOKEEPER_IMAGE_BASE" "ONAP_ZOOKEEPER_IMAGE_TAG" REMOTE_RELEASE_ONAP "ZooKeeper" ""
+       __check_and_create_image_var DMAAPMR "ONAP_KAFKA_IMAGE"     "ONAP_KAFKA_IMAGE_BASE"     "ONAP_KAFKA_IMAGE_TAG"     REMOTE_RELEASE_ONAP "Kafka" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -64,7 +64,7 @@ __DMAAPMR_imagepull() {
 __MR_imagebuild() {
        cd ../mrstub
        echo " Building MR - $MR_STUB_DISPLAY_NAME - image: $MRSTUB_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $MRSTUB_IMAGE . &> .dockererr
+       docker build  $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $MRSTUB_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image MRSTUB_IMAGE
@@ -130,24 +130,24 @@ __DMAAPMR_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __MR_kube_scale_zero_and_wait() {
        echo -e " MR replicas kept as is"
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __DMAAPMR_kube_scale_zero_and_wait() {
        echo -e " DMAAP replicas kept as is"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __MR_kube_delete_all() {
        __kube_delete_all_resources $KUBE_ONAP_NAMESPACE autotest MR
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __DMAAPMR_kube_delete_all() {
        __kube_delete_all_resources $KUBE_ONAP_NAMESPACE autotest DMAAPMR
@@ -155,7 +155,7 @@ __DMAAPMR_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __MR_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=MR" -n $KUBE_ONAP_NAMESPACE --tail=-1 > $1$2_mr_stub.log 2>&1
@@ -166,7 +166,7 @@ __MR_store_docker_logs() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __DMAAPMR_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                for podname in $(kubectl $KUBECONF get pods -n $KUBE_ONAP_NAMESPACE -l "autotest=DMAAPMR" -o custom-columns=":metadata.name"); do
@@ -193,11 +193,11 @@ __DMAAPMR_initial_setup() {
        :  # handle by __MR_initial_setup
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__MR_statisics_setup() {
+__MR_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "MR-STUB $MR_STUB_APP_NAME $KUBE_ONAP_NAMESPACE"
        else
@@ -205,11 +205,11 @@ __MR_statisics_setup() {
        fi
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__DMAAPMR_statisics_setup() {
+__DMAAPMR_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "KAFKA $MR_KAFKA_APP_NAME $KUBE_ONAP_NAMESPACE MESSAGE-ROUTER $MR_DMAAP_APP_NAME $KUBE_ONAP_NAMESPACE ZOOKEEPER $MR_ZOOKEEPER_APP_NAME $KUBE_ONAP_NAMESPACE"
        else
@@ -302,7 +302,7 @@ __mr_set_protocoll() {
        # Access via test script
        MR_STUB_PATH=$MR_HTTPX"://"$MR_STUB_APP_NAME":"$INT_PORT  # access from script via proxy, docker
        MR_DMAAP_PATH=$MR_HTTPX"://"$MR_DMAAP_APP_NAME":"$INT_PORT # access from script via proxy, docker
-       MR_DMAAP_ADAPTER_HTTP="" # Access to dmaap mr via proyx - set only if app is included
+       MR_DMAAP_ADAPTER_HTTP="" # Access to dmaap mr via proxy - set only if app is included
 
        MR_SERVICE_PATH=$MR_STUB_PATH # access container->container, docker -  access pod->svc, kube
        MR_KAFKA_SERVICE_PATH=""
@@ -316,7 +316,7 @@ __mr_set_protocoll() {
                MR_ZOOKEEPER_SERVICE_PATH=$MR_ZOOKEEPER_APP_NAME":"$MR_ZOOKEEPER_PORT
        fi
 
-       # For directing calls from script to e.g.A1PMS via message rounter
+       # For directing calls from script to e.g.A1PMS via message router
        # These cases shall always go though the  mr-stub
        MR_ADAPTER_HTTP="http://"$MR_STUB_APP_NAME":"$2
        MR_ADAPTER_HTTPS="https://"$MR_STUB_APP_NAME":"$4
@@ -345,7 +345,7 @@ __mr_set_protocoll() {
                        MR_ZOOKEEPER_SERVICE_PATH=$MR_ZOOKEEPER_APP_NAME"."$KUBE_ONAP_NAMESPACE":"$MR_ZOOKEEPER_PORT
                fi
 
-               # For directing calls from script to e.g.A1PMS, via message rounter
+               # For directing calls from script to e.g.A1PMS, via message router
                # These calls shall always go though the  mr-stub
                MR_ADAPTER_HTTP="http://"$MR_STUB_APP_NAME.$KUBE_ONAP_NAMESPACE":"$3
                MR_ADAPTER_HTTPS="https://"$MR_STUB_APP_NAME.$KUBE_ONAP_NAMESPACE":"$5
@@ -422,15 +422,15 @@ start_mr() {
 
        if [ $RUNMODE == "KUBE" ]; then
 
-        # Table of possible combinations of included mr and included/prestarted dmaap-mr
-               # mr can never be prestarted
+        # Table of possible combinations of included mr and included/pre-started dmaap-mr
+               # mr can never be pre-started
                # mr can be used stand alone
-               # if dmaapmr is included/prestarted, then mr is needed as well as frontend
+               # if dmaapmr is included/pre-started, then mr is needed as well as frontend
 
         # Inverted logic - 0 mean true, 1 means false
-               # mr prestarted      0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
+               # mr pre-started     0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
                # mr included        0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
-               # dmaap prestarted   0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
+               # dmaap pre-started  0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
                # dmaap included     0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
                # ==================================================
                # OK                 1 1 1 1 1 0 1 1 1 0 1 1 1 0 1 1
index a1e6145..6c2ba33 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __NGW_imagesetup() {
-       __check_and_create_image_var NGW "NRT_GATEWAY_IMAGE" "NRT_GATEWAY_IMAGE_BASE" "NRT_GATEWAY_IMAGE_TAG" $1 "$NRT_GATEWAY_DISPLAY_NAME"
+       __check_and_create_image_var NGW "NRT_GATEWAY_IMAGE" "NRT_GATEWAY_IMAGE_BASE" "NRT_GATEWAY_IMAGE_TAG" $1 "$NRT_GATEWAY_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __NGW_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __NGW_kube_scale_zero_and_wait() {
        echo -e " NGW replicas kept as is"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __NGW_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest NGW
@@ -76,7 +76,7 @@ __NGW_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __NGW_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=NGW" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_gateway.log 2>&1
@@ -92,11 +92,11 @@ __NGW_initial_setup() {
        use_gateway_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__NGW_statisics_setup() {
+__NGW_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "NGW $NRT_GATEWAY_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -227,7 +227,7 @@ start_gateway() {
                __check_included_image "NGW"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "NGW"
                retcode_p=$?
 
index c70cd13..9a58292 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __PRODSTUB_imagesetup() {
-       __check_and_create_image_var PRODSTUB "PROD_STUB_IMAGE" "PROD_STUB_IMAGE_BASE" "PROD_STUB_IMAGE_TAG" LOCAL "$PROD_STUB_DISPLAY_NAME"
+       __check_and_create_image_var PRODSTUB "PROD_STUB_IMAGE" "PROD_STUB_IMAGE_BASE" "PROD_STUB_IMAGE_TAG" LOCAL "$PROD_STUB_DISPLAY_NAME" $IMAGE_TARGET_PLATFORM_IMG_TAG
 }
 
 # Pull image from remote repo or use locally built image
@@ -44,7 +44,7 @@ __PRODSTUB_imagepull() {
 __PRODSTUB_imagebuild() {
        cd ../prodstub
        echo " Building PRODSTUB - $PROD_STUB_DISPLAY_NAME - image: $PROD_STUB_IMAGE"
-       docker build  --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $PROD_STUB_IMAGE . &> .dockererr
+       docker build  $IMAGE_TARGET_PLATFORM_CMD_PARAM --build-arg NEXUS_PROXY_REPO=$NEXUS_PROXY_REPO -t $PROD_STUB_IMAGE . &> .dockererr
        if [ $? -eq 0 ]; then
                echo -e  $GREEN"  Build Ok"$EGREEN
                __retag_and_push_image PROD_STUB_IMAGE
@@ -78,12 +78,12 @@ __PRODSTUB_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __PRODSTUB_kube_scale_zero_and_wait() {
        echo -e $RED" PRODSTUB app is not scaled in this state"$ERED
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __PRODSTUB_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SIM_NAMESPACE autotest PRODSTUB
@@ -91,7 +91,7 @@ __PRODSTUB_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __PRODSTUB_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=PRODSTUB" -n $KUBE_SIM_NAMESPACE --tail=-1 > $1$2_prodstub.log 2>&1
@@ -107,11 +107,11 @@ __PRODSTUB_initial_setup() {
        use_prod_stub_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__PRODSTUB_statisics_setup() {
+__PRODSTUB_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "PRODSTUB $PROD_STUB_APP_NAME $KUBE_SIM_NAMESPACE"
        else
@@ -193,7 +193,7 @@ start_prod_stub() {
                __check_included_image "PRODSTUB"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "PRODSTUB"
                retcode_p=$?
 
@@ -261,7 +261,7 @@ start_prod_stub() {
     return 0
 }
 
-# Excute a curl cmd towards the prodstub simulator and check the response code.
+# Execute a curl cmd towards the prodstub simulator and check the response code.
 # args: TEST|CONF <expected-response-code> <curl-cmd-string> [<json-file-to-compare-output>]
 __execute_curl_to_prodstub() {
     TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")
index 4ffb522..4b48e32 100644 (file)
@@ -26,7 +26,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __PVCCLEANER_imagesetup() {
-       __check_and_create_image_var PVCCLEANER "PVC_CLEANER_IMAGE" "PVC_CLEANER_IMAGE_BASE" "PVC_CLEANER_IMAGE_TAG" REMOTE_PROXY "$PVC_CLEANER_DISPLAY_NAME"
+       __check_and_create_image_var PVCCLEANER "PVC_CLEANER_IMAGE" "PVC_CLEANER_IMAGE_BASE" "PVC_CLEANER_IMAGE_TAG" REMOTE_PROXY "$PVC_CLEANER_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -63,12 +63,12 @@ __PVCCLEANER_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __PVCCLEANER_kube_scale_zero_and_wait() {
        :
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __PVCCLEANER_kube_delete_all() {
        :
@@ -76,7 +76,7 @@ __PVCCLEANER_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __PVCCLEANER_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=PVCCLEANER" -A --tail=-1 > $1$2_pvs_cleaner.log 2>&1
@@ -90,11 +90,11 @@ __PVCCLEANER_initial_setup() {
        :
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__PVCCLEANER_statisics_setup() {
+__PVCCLEANER_statistics_setup() {
        echo ""
 }
 
index 050ddd1..bb085d6 100644 (file)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-# This is a script that contains container/service managemnt functions test functions for RAPP Catalogue API
+# This is a script that contains container/service management functions test functions for RAPP Catalogue API
 
 ################ Test engine functions ################
 
@@ -25,7 +25,7 @@
 # arg: [<image-tag-suffix>] (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __RC_imagesetup() {
-       __check_and_create_image_var RC "RAPP_CAT_IMAGE" "RAPP_CAT_IMAGE_BASE" "RAPP_CAT_IMAGE_TAG" $1 "$RAPP_CAT_DISPLAY_NAME"
+       __check_and_create_image_var RC "RAPP_CAT_IMAGE" "RAPP_CAT_IMAGE_BASE" "RAPP_CAT_IMAGE_TAG" $1 "$RAPP_CAT_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -55,12 +55,12 @@ __RC_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __RC_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_NONRTRIC_NAMESPACE app "$KUBE_NONRTRIC_NAMESPACE"-rappcatalogueservice
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __RC_kube_delete_all() {
        __kube_delete_all_resources $KUBE_NONRTRIC_NAMESPACE autotest RC
@@ -68,7 +68,7 @@ __RC_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __RC_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=RC" -n $KUBE_NONRTRIC_NAMESPACE --tail=-1 > $1$2_rc.log 2>&1
@@ -84,11 +84,11 @@ __RC_initial_setup() {
        use_rapp_catalogue_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__RC_statisics_setup() {
+__RC_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "RC $RAPP_CAT_APP_NAME $KUBE_NONRTRIC_NAMESPACE"
        else
@@ -168,7 +168,7 @@ start_rapp_catalogue() {
                __check_included_image "RC"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "RC"
                retcode_p=$?
 
index 93c2db2..6449a68 100644 (file)
@@ -25,8 +25,8 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __RICMEDIATORSIM_imagesetup() {
-       __check_and_create_image_var RICMEDIATORSIM "RICMEDIATOR_SIM_IMAGE" "RICMEDIATOR_SIM_IMAGE_BASE" "RICMEDIATOR_SIM_IMAGE_TAG" REMOTE_RELEASE_ORAN "$RICMEDIATOR_SIM_DISPLAY_NAME"
-       __check_and_create_image_var RICMEDIATORSIM "RICMEDIATOR_SIM_DB_IMAGE" "RICMEDIATOR_SIM_DB_IMAGE_BASE" "RICMEDIATOR_SIM_DB_IMAGE_TAG" REMOTE_RELEASE_ORAN "$RICMEDIATOR_SIM_DB_DISPLAY_NAME"
+       __check_and_create_image_var RICMEDIATORSIM "RICMEDIATOR_SIM_IMAGE" "RICMEDIATOR_SIM_IMAGE_BASE" "RICMEDIATOR_SIM_IMAGE_TAG" REMOTE_RELEASE_ORAN "$RICMEDIATOR_SIM_DISPLAY_NAME" ""
+       __check_and_create_image_var RICMEDIATORSIM "RICMEDIATOR_SIM_DB_IMAGE" "RICMEDIATOR_SIM_DB_IMAGE_BASE" "RICMEDIATOR_SIM_DB_IMAGE_TAG" REMOTE_RELEASE_ORAN "$RICMEDIATOR_SIM_DB_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -68,12 +68,12 @@ __RICMEDIATORSIM_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __RICMEDIATORSIM_kube_scale_zero_and_wait() {
        __kube_scale_and_wait_all_resources $KUBE_A1SIM_NAMESPACE app $KUBE_A1SIM_NAMESPACE"-neara1simulator"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __RICMEDIATORSIM_kube_delete_all() {
        __kube_delete_all_resources $KUBE_A1SIM_NAMESPACE autotest RICMEDIATORSIM
@@ -81,7 +81,7 @@ __RICMEDIATORSIM_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __RICMEDIATORSIM_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                for podname in $(kubectl $KUBECONF get pods -n $KUBE_A1SIM_NAMESPACE -l "autotest=RICMEDIATORSIM" -o custom-columns=":metadata.name"); do
@@ -103,11 +103,11 @@ __RICMEDIATORSIM_initial_setup() {
        use_ricmediator_simulator_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__RICMEDIATORSIM_statisics_setup() {
+__RICMEDIATORSIM_statistics_setup() {
        for ((RICMEDIATOR_SIMINSTANCE=10; RICMEDIATOR_SIMINSTANCE>0; RICMEDIATOR_SIMINSTANCE-- )); do
                if [ $RUNMODE == "KUBE" ]; then
                        RICMEDIATOR_SIMINSTANCE_KUBE=$(($RICMEDIATOR_SIMINSTANCE-1))
@@ -182,7 +182,7 @@ start_ricmediator_simulators() {
                __check_included_image "RICMEDIATORSIM"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "RICMEDIATORSIM"
                retcode_p=$?
 
@@ -300,7 +300,7 @@ start_ricmediator_simulators() {
 
                docker_args=" --scale $RICMEDIATOR_SIMCOMPOSE_SERVICE_NAME=$2"
 
-               #Create a list of contsiner names
+               #Create a list of container names
                #Will be <ricsim-prefix>_<service-name>_<index>
                # or
                # <ricsim-prefix>-<service-name>-<index>
@@ -376,7 +376,7 @@ nearsim_generate_policy_uuid() {
        UUID=${UUID:0:${#UUID}-4}"a"
 }
 
-# Excute a curl cmd towards a ricsimulator and check the response code.
+# Execute a curl cmd towards a ricsimulator and check the response code.
 # args: <expected-response-code> <curl-cmd-string>
 __execute_curl_to_ricmediatorsim() {
        echo ${FUNCNAME[1]} "line: "${BASH_LINENO[1]} >> $HTTPLOG
@@ -423,14 +423,6 @@ __execute_curl_to_ricmediatorsim() {
 # (Function for test scripts)
 ricmediatorsim_equal() {
        __log_test_fail_not_supported
-       # if [ $# -eq 3 ] || [ $# -eq 4 ]; then
-       #       host=$(__find_ricmediatorsim_host $1)
-       #       __var_test $1 "$host/counter/" $2 "=" $3 $4
-       #       return 0
-       # else
-       #       __print_err "needs three or four args: <ric-id> <sim-param> <target-value> [ timeout ]"
-       #       return 1
-       # fi
 }
 
 # Print a variable value from the RICMEDIATOR sim.
@@ -438,12 +430,6 @@ ricmediatorsim_equal() {
 # (Function for test scripts)
 ricmediatorsim_print() {
        __log_test_info_not_supported
-       # if [ $# != 2 ]; then
-    #  __print_err "need two args, <ric-id> <sim-param>" $@
-       #       exit 1
-       # fi
-       # host=$(__find_ricmediatorsim_host $1)
-       # echo -e $BOLD"INFO(${BASH_LINENO[0]}): $1, $2 = $(__do_curl $host/counter/$2)"$EBOLD
 }
 
 # Tests if a variable value in the RICMEDIATOR simulator contains the target string and and optional timeout
@@ -455,14 +441,6 @@ ricmediatorsim_print() {
 # (Function for test scripts)
 ricmediatorsim_contains_str() {
        __log_test_fail_not_supported
-       # if [ $# -eq 3 ] || [ $# -eq 4 ]; then
-       #       host=$(__find_ricmediatorsim_host $1)
-       #       __var_test $1 "$host/counter/" $2 "contain_str" $3 $4
-       #       return 0
-       # else
-       #       __print_err "needs three or four args: <ric-id> <sim-param> <target-value> [ timeout ]"
-       #       return 1
-       # fi
 }
 
 # Simulator API: Put a policy type in a ric
@@ -500,15 +478,6 @@ ricmediatorsim_delete_policy_type() {
 # (Function for test scripts)
 ricmediatorsim_post_delete_instances() {
        __log_test_fail_not_supported
-       # __log_conf_start $@
-       # if [ $# -ne 2 ]; then
-       #       __print_err "<response-code> <ric-id>" $@
-       #       return 1
-       # fi
-       # host=$(__find_ricmediatorsim_host $2)
-    # curlString="curl -X POST -skw %{http_code} "$host"/deleteinstances"
-    # __execute_curl_to_ricmediatorsim $1 "$curlString"
-       # return $?
 }
 
 # Simulator API: Delete all (instances/types/statuses/settings), for one ric
@@ -516,15 +485,6 @@ ricmediatorsim_post_delete_instances() {
 # (Function for test scripts)
 ricmediatorsim_post_delete_all() {
        __log_test_fail_not_supported
-       # __log_conf_start $@
-       # if [ $# -ne 2 ]; then
-       #       __print_err "<response-code> <numericic-id>" $@
-       #       return 1
-       # fi
-       # host=$(__find_ricmediatorsim_host $2)
-    # curlString="curl -X POST -skw %{http_code} "$host"/deleteall"
-    # __execute_curl_to_ricmediatorsim $1 "$curlString"
-       # return $?
 }
 
 # Simulator API: Set (or reset) response code for next A1 message, for one ric
@@ -532,18 +492,6 @@ ricmediatorsim_post_delete_all() {
 # (Function for test scripts)
 ricmediatorsim_post_forcedresponse() {
        __log_test_fail_not_supported
-       # __log_conf_start $@
-       # if [ $# -ne 3 ]; then
-       #       __print_err "<response-code> <ric-id> <forced_response_code>" $@
-       #       return 1
-       # fi
-       # host=$(__find_ricmediatorsim_host $2)
-    # curlString="curl -X POST -skw %{http_code} "$host"/forceresponse"
-       # if [ $# -eq 3 ]; then
-       #       curlString=$curlString"?code="$3
-       # fi
-    # __execute_curl_to_ricmediatorsim $1 "$curlString"
-       # return $?
 }
 
 # Simulator API: Set (or reset) A1 response delay, for one ric
@@ -551,16 +499,4 @@ ricmediatorsim_post_forcedresponse() {
 # (Function for test scripts)
 ricmediatorsim_post_forcedelay() {
        __log_test_fail_not_supported
-       # __log_conf_start $@
-       # if [ $# -ne 3 ]; then
-       #       __print_err "<response-code> <ric-id> [<delay-in-seconds>]" $@
-       #       return 1
-       # fi
-       # host=$(__find_ricmediatorsim_host $2)
-    # curlString="curl -X POST -skw %{http_code} $host/forcedelay"
-       # if [ $# -eq 3 ]; then
-       #       curlString=$curlString"?delay="$3
-       # fi
-    # __execute_curl_to_ricmediatorsim $1 "$curlString"
-       # return $?
 }
\ No newline at end of file
index 5e039b7..1bdcf1d 100644 (file)
@@ -25,7 +25,7 @@
 # arg: <image-tag-suffix> (selects staging, snapshot, release etc)
 # <image-tag-suffix> is present only for images with staging, snapshot,release tags
 __RICSIM_imagesetup() {
-       __check_and_create_image_var RICSIM "RIC_SIM_IMAGE" "RIC_SIM_IMAGE_BASE" "RIC_SIM_IMAGE_TAG" $1 "$RIC_SIM_DISPLAY_NAME"
+       __check_and_create_image_var RICSIM "RIC_SIM_IMAGE" "RIC_SIM_IMAGE_BASE" "RIC_SIM_IMAGE_TAG" $1 "$RIC_SIM_DISPLAY_NAME" ""
 }
 
 # Pull image from remote repo or use locally built image
@@ -55,13 +55,13 @@ __RICSIM_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __RICSIM_kube_scale_zero_and_wait() {
        #__kube_scale_and_wait_all_resources $KUBE_A1SIM_NAMESPACE app $KUBE_A1SIM_NAMESPACE"-"$RIC_SIM_PREFIX
        __kube_scale_and_wait_all_resources $KUBE_A1SIM_NAMESPACE app $KUBE_A1SIM_NAMESPACE"-a1simulator"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __RICSIM_kube_delete_all() {
        __kube_delete_all_resources $KUBE_A1SIM_NAMESPACE autotest RICSIM
@@ -69,7 +69,7 @@ __RICSIM_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __RICSIM_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                for podname in $(kubectl $KUBECONF get pods -n $KUBE_A1SIM_NAMESPACE -l "autotest=RICSIM" -o custom-columns=":metadata.name"); do
@@ -91,11 +91,11 @@ __RICSIM_initial_setup() {
        use_simulator_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__RICSIM_statisics_setup() {
+__RICSIM_statistics_setup() {
        for ((RICSIM_INSTANCE=10; RICSIM_INSTANCE>0; RICSIM_INSTANCE-- )); do
                if [ $RUNMODE == "KUBE" ]; then
                        RICSIM_INSTANCE_KUBE=$(($RICSIM_INSTANCE-1))
@@ -171,7 +171,7 @@ start_ric_simulators() {
                __check_included_image "RICSIM"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "RICSIM"
                retcode_p=$?
 
@@ -209,7 +209,7 @@ start_ric_simulators() {
        fi
 
        echo " $2 simulators using basename: $1 on interface: $3"
-       #Set env var for simulator count and A1 interface vesion for the given group
+       #Set env var for simulator count and A1 interface version for the given group
        if [ $1 == "$RIC1" ]; then
                G1_COUNT=$2
        elif [ $1 == "$RIC2" ]; then
@@ -289,7 +289,7 @@ start_ric_simulators() {
                echo -e $BOLD$YELLOW" Warning: Using docker compose --force-recreate "$EYELLOW$EBOLD
                docker_args="--force-recreate --scale $RICSIM_COMPOSE_SERVICE_NAME=$2"
 
-               #Create a list of contsiner names
+               #Create a list of container names
                #Will be <ricsim-prefix>_<service-name>_<index>
                # or
                # <ricsim-prefix>-<service-name>-<index>
@@ -365,7 +365,7 @@ sim_generate_policy_uuid() {
        UUID=${UUID:0:${#UUID}-4}"a"
 }
 
-# Excute a curl cmd towards a ricsimulator and check the response code.
+# Execute a curl cmd towards a ricsimulator and check the response code.
 # args: <expected-response-code> <curl-cmd-string>
 __execute_curl_to_sim() {
        echo ${FUNCNAME[1]} "line: "${BASH_LINENO[1]} >> $HTTPLOG
index 2701957..511d258 100644 (file)
@@ -33,8 +33,8 @@ __SDNC_imagesetup() {
                        sdnc_suffix_tag="REMOTE_RELEASE_ONAP"
                fi
        done
-       __check_and_create_image_var SDNC "SDNC_A1_CONTROLLER_IMAGE" "SDNC_A1_CONTROLLER_IMAGE_BASE" "SDNC_A1_CONTROLLER_IMAGE_TAG" $sdnc_suffix_tag "$SDNC_DISPLAY_NAME"
-       __check_and_create_image_var SDNC "SDNC_DB_IMAGE" "SDNC_DB_IMAGE_BASE" "SDNC_DB_IMAGE_TAG" REMOTE_PROXY "SDNC DB"
+       __check_and_create_image_var SDNC "SDNC_A1_CONTROLLER_IMAGE" "SDNC_A1_CONTROLLER_IMAGE_BASE" "SDNC_A1_CONTROLLER_IMAGE_TAG" $sdnc_suffix_tag "$SDNC_DISPLAY_NAME" ""
+       __check_and_create_image_var SDNC "SDNC_DB_IMAGE" "SDNC_DB_IMAGE_BASE" "SDNC_DB_IMAGE_TAG" REMOTE_PROXY "SDNC DB" ""
 
 }
 
@@ -77,12 +77,12 @@ __SDNC_kube_scale_zero() {
 }
 
 # Scale kubernetes resources to zero and wait until this has been accomplished, if relevant. If not relevant to scale, then do no action.
-# This function is called for prestarted apps not managed by the test script.
+# This function is called for pre-started apps not managed by the test script.
 __SDNC_kube_scale_zero_and_wait() {
        echo -e " SDNC replicas kept as is"
 }
 
-# Delete all kube resouces for the app
+# Delete all kube resources for the app
 # This function is called for apps managed by the test script.
 __SDNC_kube_delete_all() {
        __kube_delete_all_resources $KUBE_SDNC_NAMESPACE autotest SDNC
@@ -90,7 +90,7 @@ __SDNC_kube_delete_all() {
 
 # Store docker logs
 # This function is called for apps managed by the test script.
-# args: <log-dir> <file-prexix>
+# args: <log-dir> <file-prefix>
 __SDNC_store_docker_logs() {
        if [ $RUNMODE == "KUBE" ]; then
                kubectl $KUBECONF  logs -l "autotest=SDNC" -n $KUBE_SDNC_NAMESPACE --tail=-1 > $1$2_SDNC.log 2>&1
@@ -108,11 +108,11 @@ __SDNC_initial_setup() {
        use_sdnc_http
 }
 
-# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# Set app short-name, app name and namespace for logging runtime statistics of kubernetes pods or docker containers
 # For docker, the namespace shall be excluded
-# This function is called for apps managed by the test script as well as for prestarted apps.
+# This function is called for apps managed by the test script as well as for pre-started apps.
 # args: -
-__SDNC_statisics_setup() {
+__SDNC_statistics_setup() {
        if [ $RUNMODE == "KUBE" ]; then
                echo "SDNC $SDNC_APP_NAME $KUBE_SDNC_NAMESPACE"
        else
@@ -198,7 +198,7 @@ start_sdnc() {
                __check_included_image "SDNC"
                retcode_i=$?
 
-               # Check if app shall only be used by the testscipt
+               # Check if app shall only be used by the test script
                __check_prestarted_image "SDNC"
                retcode_p=$?
 
index 98a016b..49c4ec6 100644 (file)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -59,7 +59,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 
 #############################################################################
 # Note:
-# The imgage tags for a1pms and sdnc are updated AFTER the release.
+# The image tags for a1pms and sdnc are updated AFTER the release.
 # This means that the latest staging/snapshot images for these two components have
 # version one step (0.0.1 - bug-level) higher than the
 # latest release image version.
@@ -273,7 +273,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -295,7 +295,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -328,7 +328,7 @@ CONTROL_PANEL_DISPLAY_NAME="Non-RT RIC Control Panel"
 CONTROL_PANEL_EXTERNAL_PORT=8080                         # Control Panel container external port (host -> container)
 CONTROL_PANEL_INTERNAL_PORT=8080                         # Control Panel container internal port (container -> container)
 CONTROL_PANEL_EXTERNAL_SECURE_PORT=8880                  # Control Panel container external port (host -> container)
-CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container intternal port (container -> container)
+CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container internal port (container -> container)
 CONTROL_PANEL_LOGPATH="/logs/nonrtric-controlpanel.log"  # Path the application log in the Control Panel container
 CONTROL_PANEL_ALIVE_URL="/"                              # Base path for alive check
 CONTROL_PANEL_COMPOSE_DIR="control_panel"                # Dir in simulator_group for docker-compose
@@ -378,10 +378,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
@@ -396,4 +396,4 @@ PVC_CLEANER_COMPOSE_DIR="pvc-cleaner"                   # Dir in simulator_group
 ########################################
 
 UUID=""                                                  # UUID used as prefix to the policy id to simulate a real UUID
-                                                         # Testscript need to set the UUID to use other this empty prefix is used
+                                                         # Test script need to set the UUID to use other this empty prefix is used
index 35aba16..9a34596 100644 (file)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -59,7 +59,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 
 #############################################################################
 # Note:
-# The imgage tags for a1pms and sdnc are updated AFTER the release.
+# The image tags for a1pms and sdnc are updated AFTER the release.
 # This means that the latest staging/snapshot images for these two components have
 # version one step (0.0.1 - bug-level) higher than the
 # latest release image version.
@@ -273,7 +273,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -295,7 +295,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -328,7 +328,7 @@ CONTROL_PANEL_DISPLAY_NAME="Non-RT RIC Control Panel"
 CONTROL_PANEL_EXTERNAL_PORT=8080                         # Control Panel container external port (host -> container)
 CONTROL_PANEL_INTERNAL_PORT=8080                         # Control Panel container internal port (container -> container)
 CONTROL_PANEL_EXTERNAL_SECURE_PORT=8880                  # Control Panel container external port (host -> container)
-CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container intternal port (container -> container)
+CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container internal port (container -> container)
 CONTROL_PANEL_LOGPATH="/logs/nonrtric-controlpanel.log"  # Path the application log in the Control Panel container
 CONTROL_PANEL_ALIVE_URL="/"                              # Base path for alive check
 CONTROL_PANEL_COMPOSE_DIR="control_panel"                # Dir in simulator_group for docker-compose
@@ -378,10 +378,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
index 1ddf958..c7d6094 100644 (file)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -59,7 +59,7 @@ NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
 
 #############################################################################
 # Note:
-# The imgage tags for a1pms and sdnc are updated AFTER the release.
+# The image tags for a1pms and sdnc are updated AFTER the release.
 # This means that the latest staging/snapshot images for these two components have
 # version one step (0.0.1 - bug-level) higher than the
 # latest release image version.
@@ -275,7 +275,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -297,7 +297,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -330,7 +330,7 @@ CONTROL_PANEL_DISPLAY_NAME="Non-RT RIC Control Panel"
 CONTROL_PANEL_EXTERNAL_PORT=8080                         # Control Panel container external port (host -> container)
 CONTROL_PANEL_INTERNAL_PORT=8080                         # Control Panel container internal port (container -> container)
 CONTROL_PANEL_EXTERNAL_SECURE_PORT=8880                  # Control Panel container external port (host -> container)
-CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container intternal port (container -> container)
+CONTROL_PANEL_INTERNAL_SECURE_PORT=8082                  # Control Panel container internal port (container -> container)
 CONTROL_PANEL_LOGPATH="/logs/nonrtric-controlpanel.log"  # Path the application log in the Control Panel container
 CONTROL_PANEL_ALIVE_URL="/"                              # Base path for alive check
 CONTROL_PANEL_COMPOSE_DIR="control_panel"                # Dir in simulator_group for docker-compose
@@ -380,10 +380,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
index 9af7d91..1cb8def 100755 (executable)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ORAN=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -240,10 +240,10 @@ ONAP_IMAGES_APP_NAMES="DMAAPMR SDNC"   # SDNC added as ONAP image
 # Port number vars <name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT are set as svc port in kube and localhost port in docker
 #
 # For some components, eg. MR, can be represented as the MR-STUB and/or the DMAAP MR. For these components
-# special vars nameed <name>_LOSTHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
-# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overalapping ports on local host
+# special vars named <name>_LOCALHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
+# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overlapping ports on local host
 #
-# For KUBE PROXY there are special external port for docker as the proyx exposes also the kube svc port on localhost,
+# For KUBE PROXY there are special external port for docker as the proxy exposes also the kube svc port on localhost,
 # therefore a special set of external port are needed for docker <name>_DOCKER_EXTERNAL_PORT and <name>_DOCKER_EXTERNAL_SECURE_PORT
 
 DOCKER_SIM_NWNAME="nonrtric-docker-net"                  # Name of docker private network
@@ -348,7 +348,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -372,7 +372,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -459,10 +459,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
index b07cb06..5a71de5 100755 (executable)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ORAN=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -240,10 +240,10 @@ ONAP_IMAGES_APP_NAMES="DMAAPMR SDNC"   # SDNC added as ONAP image
 # Port number vars <name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT are set as svc port in kube and localhost port in docker
 #
 # For some components, eg. MR, can be represented as the MR-STUB and/or the DMAAP MR. For these components
-# special vars nameed <name>_LOSTHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
-# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overalapping ports on local host
+# special vars named <name>_LOCALHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
+# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overlapping ports on local host
 #
-# For KUBE PROXY there are special external port for docker as the proyx exposes also the kube svc port on localhost,
+# For KUBE PROXY there are special external port for docker as the proxy exposes also the kube svc port on localhost,
 # therefore a special set of external port are needed for docker <name>_DOCKER_EXTERNAL_PORT and <name>_DOCKER_EXTERNAL_SECURE_PORT
 
 DOCKER_SIM_NWNAME="nonrtric-docker-net"                  # Name of docker private network
@@ -348,7 +348,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -372,7 +372,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -459,10 +459,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
index 365c06b..cc41c49 100755 (executable)
@@ -43,7 +43,7 @@ NEXUS_RELEASE_REPO_ORAN=$NEXUS_RELEASE_REPO
 # The variable is created by removing the suffix "_BASE" from the base image variable name.
 # Example: A1PMS_IMAGE_BASE -> A1PMS_IMAGE
 # This var will point to the local or remote image depending on cmd line arguments.
-# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
+# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argument.
 # For images built by the script, only tag #1 shall be specified
 # For project images, only tag #1, #2, #3 and #4 shall be specified
 # For ORAN images (non project), only tag #5 shall be specified
@@ -248,10 +248,10 @@ ONAP_IMAGES_APP_NAMES="DMAAPMR SDNC"   # SDNC added as ONAP image
 # Port number vars <name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT are set as svc port in kube and localhost port in docker
 #
 # For some components, eg. MR, can be represented as the MR-STUB and/or the DMAAP MR. For these components
-# special vars nameed <name>_LOSTHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
-# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overalapping ports on local host
+# special vars named <name>_LOCALHOST_PORT and <name>_LOCALHOST_SECURE_PORT are used as localhost ports instead of
+# name>_EXTERNAL_PORT and <name>_EXTERNAL_SECURE_PORT ports in docker in order to prevent overlapping ports on local host
 #
-# For KUBE PROXY there are special external port for docker as the proyx exposes also the kube svc port on localhost,
+# For KUBE PROXY there are special external port for docker as the proxy exposes also the kube svc port on localhost,
 # therefore a special set of external port are needed for docker <name>_DOCKER_EXTERNAL_PORT and <name>_DOCKER_EXTERNAL_SECURE_PORT
 
 DOCKER_SIM_NWNAME="nonrtric-docker-net"                  # Name of docker private network
@@ -358,7 +358,7 @@ PROD_STUB_INTERNAL_PORT=8092                             # Producer stub contain
 PROD_STUB_EXTERNAL_SECURE_PORT=8093                      # Producer stub container external secure port (host -> container)
 PROD_STUB_INTERNAL_SECURE_PORT=8093                      # Producer stub container internal secure port (container -> container)
 PROD_STUB_JOB_CALLBACK="/callbacks/job"                  # Callback path for job create/update/delete
-PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producre supervision
+PROD_STUB_SUPERVISION_CALLBACK="/callbacks/supervision"  # Callback path for producer supervision
 PROD_STUB_ALIVE_URL="/"                                  # Base path for alive check
 PROD_STUB_COMPOSE_DIR="prodstub"                         # Dir in simulator_group for docker-compose
 
@@ -400,7 +400,7 @@ SDNC_APP_NAME="a1controller"                             # Name of the SNDC A1 C
 SDNC_DISPLAY_NAME="SDNC A1 Controller"
 SDNC_EXTERNAL_PORT=8282                                  # SNDC A1 Controller container external port (host -> container)
 SDNC_INTERNAL_PORT=8181                                  # SNDC A1 Controller container internal port (container -> container)
-SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external securee port (host -> container)
+SDNC_EXTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container external secure port (host -> container)
 SDNC_INTERNAL_SECURE_PORT=8443                           # SNDC A1 Controller container internal secure port (container -> container)
 SDNC_DB_APP_NAME="sdncdb"                                # Name of the SDNC DB container
 SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter"                  # SDNC truststore password
@@ -487,10 +487,10 @@ KUBE_PROXY_WEB_INTERNAL_PORT=8081                        # Kube Http Proxy conta
 KUBE_PROXY_WEB_EXTERNAL_SECURE_PORT=8783                 # Kube Proxy container external secure port (host -> container)
 KUBE_PROXY_WEB_INTERNAL_SECURE_PORT=8434                 # Kube Proxy container internal secure port (container -> container
 
-KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, doocker (host -> container)
-KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, doocker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_PORT=8732                     # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_DOCKER_EXTERNAL_SECURE_PORT=8784              # Kube Proxy container external secure port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_PORT=8733                 # Kube Http Proxy container external port, docker (host -> container)
+KUBE_PROXY_WEB_DOCKER_EXTERNAL_SECURE_PORT=8785          # Kube Proxy container external secure port, docker (host -> container)
 
 KUBE_PROXY_PATH=""                                       # Proxy url path, will be set if proxy is started
 KUBE_PROXY_ALIVE_URL="/"                                 # Base path for alive check
index 33e2a38..83889f1 100755 (executable)
@@ -31,6 +31,7 @@ __print_args() {
        echo "      [--override <override-environment-filename>] [--pre-clean] [--gen-stats] [--delete-namespaces]"
        echo "      [--delete-containers] [--endpoint-stats] [--kubeconfig <config-file>] [--host-path-dir <local-host-dir>]"
        echo "      [--kubecontext <context-name>] [--docker-host <docker-host-url>] [--docker-proxy <host-or-ip>]"
+       echo "      [--target-platform <platform> ]"
 }
 
 if [ $# -eq 1 ] && [ "$1" == "help" ]; then
@@ -63,7 +64,7 @@ if [ $# -eq 1 ] && [ "$1" == "help" ]; then
        echo "--override <file>     -  Override setting from the file supplied by --env-file"
        echo "--pre-clean           -  Will clean kube resouces when running docker and vice versa"
        echo "--gen-stats           -  Collect container/pod runtime statistics"
-       echo "--delete-namespaces   -  Delete kubernetes namespaces before starting tests - but only those created by the test scripts. Kube mode only. Ignored if running with prestarted apps."
+       echo "--delete-namespaces   -  Delete kubernetes namespaces before starting tests - but only those created by the test scripts. Kube mode only. Ignored if running with pre-started apps."
        echo "--delete-containers   -  Delete docker containers before starting tests - but only those created by the test scripts. Docker mode only."
        echo "--endpoint-stats      -  Collect endpoint statistics"
        echo "--kubeconfig          -  Configure kubectl to use cluster specific cluster config file"
@@ -71,6 +72,7 @@ if [ $# -eq 1 ] && [ "$1" == "help" ]; then
        echo "--kubecontext         -  Configure kubectl to use a certain context, e.g 'minikube'"
        echo "--docker-host         -  Configure docker to use docker in e.g. a VM"
        echo "--docker-proxy        -  Configure ip/host to docker when docker is running in a VM"
+       echo "--target-platform     -  Build and pull images for this target platform"
        echo ""
        echo "List of app short names supported: "$APP_SHORT_NAMES
        exit 0
@@ -109,7 +111,7 @@ echo "Test case started as: ${BASH_SOURCE[$i+1]} "$@
 # Var to hold 'auto' in case containers shall be stopped when test case ends
 AUTO_CLEAN=""
 
-# Var to indicate pre clean, if flag --pre-clean is set the script will clean kube resouces when running docker and vice versa
+# Var to indicate pre clean, if flag --pre-clean is set the script will clean kube resources when running docker and vice versa
 PRE_CLEAN="0"
 
 # Var to hold the app names to use local images for
@@ -131,7 +133,7 @@ USE_EXTERNAL_IMAGES=""
 STOP_AT_ERROR=0
 
 # The default value "DEV" indicate that development image tags (SNAPSHOT) and nexus repos (nexus port 10002) are used.
-# The value "RELEASE" indicate that relase image tag and nexus repos (nexus port) are used
+# The value "RELEASE" indicate that released image tag and nexus repos (nexus port) are used
 # Applies only to images defined in the test-env files with image names and tags defined as XXXX_RELEASE
 IMAGE_CATEGORY="DEV"
 
@@ -140,6 +142,12 @@ IMAGE_CATEGORY="DEV"
 #V2 names replicated containers <proj-name>-<service-name>-<index>
 DOCKER_COMPOSE_VERSION="V1"
 
+# Name of target platform, if set by start cmd
+IMAGE_TARGET_PLATFORM=""
+IMAGE_TARGET_PLATFORM_CMD_PARAM="" # Docker cmd param for setting target platform
+IMAGE_TARGET_PLATFORM_IMG_TAG=""  # Will be set to target platform if cmd parameter is set
+IMAGE_TARGET_PLATFORM_IMG_TAG=$(docker info --format '{{json  . }}' | jq -r .Architecture | sed 's/\//_/g')
+
 # Function to indent cmd output with one space
 indent1() { sed 's/^/ /'; }
 
@@ -249,7 +257,7 @@ exec &>  >(tee ${TCLOG})
 
 echo $(date) > $TESTLOGS/$ATC/endpoint_tc_start.log
 echo "$TC_ONELINE_DESCR" > $TESTLOGS/$ATC/endpoint_tc_slogan.log
-echo "Test failed" > $TESTLOGS/$ATC/endpoint_tc_end.log  # Will be overritten if test is ok
+echo "Test failed" > $TESTLOGS/$ATC/endpoint_tc_end.log  # Will be overwritten if test is ok
 
 #Variables for counting tests as well as passed and failed tests
 RES_TEST=0
@@ -261,7 +269,7 @@ RES_DEVIATION=0
 #Var to control if current stats shall be printed
 PRINT_CURRENT_STATS=0
 
-#Var to control if container/pod runtim statistics shall be collected
+#Var to control if container/pod runtime statistics shall be collected
 COLLECT_RUNTIME_STATS=0
 COLLECT_RUNTIME_STATS_PID=0
 
@@ -280,7 +288,7 @@ KUBECONF=""
 #Localhost, may be set to another host/ip by cmd parameter
 LOCALHOST_NAME="localhost"
 
-#Reseting vars related to token/keys used by kubeproxy when istio is enabled
+#Resetting vars related to token/keys used by kubeproxy when istio is enabled
 #The vars are populated if istio is used in the testcase
 KUBE_PROXY_CURL_JWT=""
 KUBE_PROXY_ISTIO_JWKS_KEYS=""
@@ -345,7 +353,7 @@ __log_test_fail_general() {
 
 # Function to log a test case failed due to incorrect response code
 __log_test_fail_status_code() {
-       echo -e $RED" FAIL. Exepected status "$1", got "$2 $3 $ERED
+       echo -e $RED" FAIL. Expected status "$1", got "$2 $3 $ERED
        ((RES_FAIL++))
        __print_current_stats
        __check_stop_at_error
@@ -404,7 +412,7 @@ __log_conf_fail_general() {
 
 # Function to log a failed configuration setup due to incorrect response code
 __log_conf_fail_status_code() {
-       echo -e $RED" FAIL. Exepected status "$1", got "$2 $3 $ERED
+       echo -e $RED" FAIL. Expected status "$1", got "$2 $3 $ERED
        ((RES_CONF_FAIL++))
        __print_current_stats
        __check_stop_at_error
@@ -479,7 +487,7 @@ TCTEST_START=$SECONDS
 #Vars to hold the start time and timer text for a custom timer
 TC_TIMER_STARTTIME=""
 TC_TIMER_TIMER_TEXT=""
-TC_TIMER_CURRENT_FAILS="" # Then numer of failed test when timer starts.
+TC_TIMER_CURRENT_FAILS="" # Then number of failed test when timer starts.
                           # Compared with the current number of fails at timer stop
                                                  # to judge the measurement reliability
 
@@ -838,7 +846,7 @@ while [ $paramerror -eq 0 ] && [ $foundparm -eq 0 ]; do
                        else
                                if [ -z "KUBE_PRESTARTED_IMAGES" ]; then
                                        DELETE_KUBE_NAMESPACES=0
-                                       echo "Option ignored - Delete namespaces (ignored when using prestarted apps)"
+                                       echo "Option ignored - Delete namespaces (ignored when using pre-started apps)"
                                else
                                        DELETE_KUBE_NAMESPACES=1
                                        echo "Option set - Delete namespaces"
@@ -985,6 +993,32 @@ while [ $paramerror -eq 0 ] && [ $foundparm -eq 0 ]; do
                        fi
                fi
        fi
+       if [ $paramerror -eq 0 ]; then
+               if [ "$1" == "--target-platform" ]; then
+                       shift;
+                       if [ -z "$1" ]; then
+                               paramerror=1
+                               if [ -z "$paramerror_str" ]; then
+                                       paramerror_str="No platform string found for : '--target-platform'"
+                               fi
+                       else
+                               if [ "$1" != "linux/amd64" ]; then
+                                       paramerror=1
+                                       if [ -z "$paramerror_str" ]; then
+                                               paramerror_str="Only target platform 'linux/amd64' currently supported"
+                                       fi
+                               else
+                                       export IMAGE_TARGET_PLATFORM=$1
+                                       export IMAGE_TARGET_PLATFORM_CMD_PARAM="--platform $1"
+                                       echo "Option set - Build and pull platform set to: "$1
+                                       IMAGE_TARGET_PLATFORM_IMG_TAG=$(echo "$1" | sed 's/\//_/g')
+                                       echo "Setting 'docker build' as alias for 'docker buildx'" | indent2
+                                       shift
+                                       foundparm=0
+                               fi
+                       fi
+               fi
+       fi
 done
 echo ""
 
@@ -1225,11 +1259,11 @@ image_list_file="./tmp/.image-list"
 echo -e "Application\tApp short name\tImage\ttag\ttag-switch" > $image_list_file
 
 # Check if image env var is set and if so export the env var with image to use (used by docker compose files)
-# arg: <app-short-name> <target-variable-name> <image-variable-name> <image-tag-variable-name> <tag-suffix> <image name>
+# arg: <app-short-name> <target-variable-name> <image-variable-name> <image-tag-variable-name> <tag-suffix> <image name> <target-platform>
 __check_and_create_image_var() {
-
-       if [ $# -ne 6 ]; then
-               echo "Expected arg: <app-short-name> <target-variable-name> <image-variable-name> <image-tag-variable-name> <tag-suffix> <image name>"
+       echo $@
+       if [ $# -ne 7 ]; then
+               echo "Expected arg: <app-short-name> <target-variable-name> <image-variable-name> <image-tag-variable-name> <tag-suffix> <image name> <target-platform>"
                ((IMAGE_ERR++))
                return
        fi
@@ -1245,7 +1279,9 @@ __check_and_create_image_var() {
        image="${!3}"
        tmptag=$4"_"$5
        tag="${!tmptag}"
-
+       if [ ! -z "$7" ]; then
+               tag=$tag-$7   # add platform to tag - for local images built by the test script
+       fi
        optional_image_repo_target=""
 
        if [ -z $image ]; then
@@ -1574,7 +1610,7 @@ __check_and_pull_image() {
                fi
                if [ -z "$tmp_im" ]; then
                        echo -ne "  Pulling image${SAMELINE}"
-                       out=$(docker pull $source_image)
+                       out=$(docker pull $IMAGE_TARGET_PLATFORM_CMD_PARAM $source_image)
                        if [ $? -ne 0 ]; then
                                echo ""
                                echo -e "  Pulling image -$RED could not be pulled"$ERED
@@ -1915,7 +1951,7 @@ setup_testenvironment() {
                        function_pointer="__"$imagename"_initial_setup"
                        $function_pointer
 
-                       function_pointer="__"$imagename"_statisics_setup"
+                       function_pointer="__"$imagename"_statistics_setup"
                        LOG_STAT_ARGS=$LOG_STAT_ARGS" "$($function_pointer)
                fi
        done
@@ -2758,7 +2794,7 @@ __clean_kube() {
                # This function is called and is expected to exist in the imported
                # file for the ricsim test functions
                # The resulting function impl shall scale the resources to 0
-               # For prestarted apps, the function waits until the resources are 0
+               # For pre-started apps, the function waits until the resources are 0
                # For included (not prestated) apps, the scaling is just ordered
                __check_prestarted_image $imagename
                if [ $? -eq 0 ]; then
index a745529..e93fd1b 100644 (file)
@@ -23,12 +23,12 @@ The control interface can be used by any test script.
 The following REST operations are available:
 
 >Send a message to CR<br>
-This method puts a request message from A1PMS to notify that sychronization between A1PMS and certain RIC happens.<br>
+This method puts a request message from A1PMS to notify that synchronization between A1PMS and certain RIC happens.<br>
 ```URI and payload, (PUT or POST): /callbacks/<id> <json messages>```<br>
 ```response: OK 200 or 500 for other errors```
 
 >Fetch one message for an id from CR<br>
-This method fetches the oldes message for an id, and removes the message.<br>
+This method fetches the oldest message for an id, and removes the message.<br>
 ```URI and payload, (GET): /get-event/<id>```<br>
 ```response:  <json messages> 200 or 500 for other errors```
 
@@ -37,7 +37,7 @@ This method fetches all message in an array for an id, and removes all messages.
 ```URI and payload, (GET): /get-all-events/<id>```<br>
 ```response:  <json array of json messages> 200 or 500 for other errors```
 
->Dump all currently wating callback messages in CR<br>
+>Dump all currently waiting callback messages in CR<br>
 This method fetches all message in an array for an id. Messages are left intact in the CR.<br>
 ```URI and payload, (GET): /db```<br>
 ```response:  <json> 200```
@@ -67,7 +67,7 @@ file "key.crt" is the key file
 file "generate_cert_and_key.sh" is a shell script to generate certificate and key
 file "pass" stores the password when you run the shell script
 
-This certificates/key can be overriden by mounting a volume when using "docker run" or "docker-compose"
+This certificates/key can be overridden by mounting a volume when using "docker run" or "docker-compose"
 In 'docker run', use field:<br>
 >```-v "$PWD/certificate:/usr/src/app/cert"```<br/>
 
index 2066e14..de1f1ee 100644 (file)
@@ -229,7 +229,7 @@ def events_write_mr(id):
     global cntr_msg_callbacks
     global cntr_batch_callbacks
 
-    storeas=request.args.get('storeas') #If set, store payload as a md5 hascode and dont log the payload
+    storeas=request.args.get('storeas') #If set, store payload as a md5 hascode and dont log the payload
                                         #Large payloads will otherwise overload the server
     try:
         print("Received callback (mr) for id: "+id +", content-type="+request.content_type)
@@ -308,7 +308,7 @@ def events_write_text(id):
     global cntr_msg_callbacks
     global cntr_batch_callbacks
 
-    storeas=request.args.get('storeas') #If set, store payload as a md5 hascode and dont log the payload
+    storeas=request.args.get('storeas') #If set, store payload as a md5 hascode and dont log the payload
                                         #Large payloads will otherwise overload the server
     try:
         print("Received callback for id: "+id +", content-type="+request.content_type)
@@ -446,7 +446,7 @@ def remote_hosts():
 
 
 #Set force delay response, in seconds, for all callbacks
-#/froceesponse?delay=<seconds>
+#/forceresponse?delay=<seconds>
 @app.route('/forcedelay', methods=['POST'])
 def forcedelay():
 
@@ -469,7 +469,7 @@ def do_delay():
       return Response("Force delay : " + str(forced_settings['delay']) + " sec failed", 500, mimetype=MIME_TEXT)
 ### Admin ###
 
-# Reset all messsages and counters
+# Reset all messages and counters
 @app.route('/reset',
     methods=['GET', 'POST', 'PUT'])
 def reset():
index 20413f3..21283a5 100644 (file)
@@ -2,7 +2,7 @@
 
 The http proxy is a generic http proxy which is able to proxy both http and https destination calls.
 The call to the proxy (to control the proxy call) also supports both http and https (https is using a self signed cert).
-The main usage for the proxy is as a gateway to all services and pod inside a kubernetest cluster.
+The main usage for the proxy is as a gateway to all services and pod inside a kubernetes cluster.
 However, it can be used a basic standard http proxy as well.
 
 ## Ports and certificates
index e90dfca..178b75f 100644 (file)
@@ -30,9 +30,9 @@ const fs = require('fs');
 const proxyport = 8080;
 // Proxy server port for https
 const proxyporthttps = 8433;
-// Proyx server alive check, port for http
+// Proxy server alive check, port for http
 const aliveport = 8081;
-// Proyx server alive check,  port for https
+// Proxy server alive check,  port for https
 const aliveporthttps = 8434;
 
 // Default https destination port
@@ -112,7 +112,7 @@ function httpclientrequest(clientrequest, clientresponse) {
     }
   );
 
-  // Handle the connection and data transfer between source and desitnation
+  // Handle the connection and data transfer between source and destination
   proxyrequest.on('error', function (error) {
     clientresponse.writeHead(500);
     stats['http-requests-failed']++;
@@ -158,7 +158,7 @@ function addhttpsconnect(httpserver) {
         }
       );
 
-      // Handle the connection and data transfer between source and desitnation
+      // Handle the connection and data transfer between source and destination
       proxysocket.on('data', function (chunk) {
         socketrequest.write(chunk);
       });
@@ -191,7 +191,7 @@ function addhttpsconnect(httpserver) {
 function main() {
 
   // -------------------- Alive server ----------------------------------
-  // Responde with '200' and statistics for any path (except for GET|PUT|DELETE on /debug) on the alive address
+  // Respond with '200' and statistics for any path (except for GET|PUT|DELETE on /debug) on the alive address
   const alivelistener = function (req, res) {
     if (req.url == "/debug") {
       if (req.method == "GET") {
index e562b26..75f3163 100644 (file)
@@ -40,13 +40,13 @@ import (
 
 // Note: consumer 'group' and consumer 'user' both uses hardcoded values specific to this interface
 //    globalCounters      var holding the "global counters"
-//      recieved          number of received messages from all topics                             (int)
+//      received          number of received messages from all topics                             (int)
 //      sent              number of sent messages to all topics                                   (int)
 //    topics              var holding all topic related info
 //      <topic-name>      name of a topic (present after topic is created)
 //        content-type    data type of the topic                                                  (string)
 //        counters
-//          recieved      number of received messages from the topic                              (int)
+//          received      number of received messages from the topic                              (int)
 //          sent          number of sent messages to the topic                                    (int)
 //        messages
 //          send          messages waiting to be sent (set when sending is started)               (fifo)
index bfc1a1b..4ec520b 100755 (executable)
@@ -17,7 +17,7 @@
 #  ============LICENSE_END=================================================
 #
 
-echo "This script requires golang to be installed and a running kafka instance on (or availble to) localhost"
+echo "This script requires golang to be installed and a running kafka instance on (or available to) localhost"
 
 # Script to build and start app locally
 if [ $# -ne 1 ]; then
index 202c1e5..54aae2f 100644 (file)
@@ -15,7 +15,7 @@ The certificate and key shall be placed in the same dir and the dir shall be mou
 | 3906     | https |
 
 The dir cert contains a self-signed cert. Use the script generate_cert_and_key.sh to generate a new certificate and key. The password of the certificate must be set 'test'.
-The same urls are availables on both the http port 3905 and the https port 3906. If using curl and https, the flag -k shall be given to make curl ignore checking the certificate.
+The same urls are available on both the http port 3905 and the https port 3906. If using curl and https, the flag -k shall be given to make curl ignore checking the certificate.
 
 ### Message Router interface
 
@@ -37,7 +37,7 @@ The control interface can be used by any test script.
 The following REST operations are available:
 
 >Send a message to MR<br>
-This method puts a request message in the queue for the a1pms to pick up. The returned correlationId (auto generated by the mrstub) is used when polling for the reposone message of this particular request.<br>
+This method puts a request message in the queue for the a1pms to pick up. The returned correlationId (auto generated by the mrstub) is used when polling for the response message of this particular request.<br>
 ```URI and parameters (GET): /send-request?operation=<GET|PUT|POST|DELETE>&url=<url>```<br><br>
 ```response: <correlation-id> (http 200) or 400 for parameter error or 500 for other errors```
 
@@ -70,12 +70,12 @@ file "key.crt" is the key file
 file "generate_cert_and_key.sh" is a shell script to generate certificate and key
 file "pass" stores the password when you run the shell script
 
->Start the a1-interface container without specifing external certificates:<br>
+>Start the a1-interface container without specifying external certificates:<br>
 ```docker run --rm -it -p 3905:3905 -p 3906:3906 mrstub```
 
 It will listen to http 3905 port and https 3906 port(using default certificates) at the same time.
 
-This certificates/key can be overriden by mounting a volume when using "docker run" or "docker-compose"
+This certificates/key can be overridden by mounting a volume when using "docker run" or "docker-compose"
 In 'docker run', use field:<br>
 >```-v "$PWD/certificate:/usr/src/app/cert"```<br>
 
index 0995428..c0df8c1 100644 (file)
@@ -544,7 +544,7 @@ def current_responses():
 
 ### Admin ###
 
-# Reset all messsages and counters
+# Reset all messages and counters
 @app.route('/reset',
     methods=['GET', 'POST', 'PUT'])
 def reset():
index 60a190b..6128b9a 100644 (file)
@@ -2,7 +2,7 @@
 
 The producer stub is intended for function tests of simulate data producers.
 The simulator handles the callbacks for supervision of producers as well as create/update and delete jobs.
-As an intial step, the indended job and producers, with supported types, are setup (armed) in the simulator.
+As an initial step, the intended job and producers, with supported types, are setup (armed) in the simulator.
 In addition, specific response codes can configured for each callback request.
 
 ## Ports and certificates
@@ -16,7 +16,7 @@ The certificate and key shall be placed in the same dir and the dir shall be mou
 | 8093     | https |
 
 The dir cert contains a self-signed cert. Use the script generate_cert_and_key.sh to generate a new certificate and key. The password of the certificate must be set 'test'.
-The same urls are availables on both the http port 8092 and the https port 8093. If using curl and https, the flag -k shall be given to make curl ignore checking the certificate.
+The same urls are available on both the http port 8092 and the https port 8093. If using curl and https, the flag -k shall be given to make curl ignore checking the certificate.
 
 ### Prodstub interface
 
@@ -42,16 +42,16 @@ The following REST operations are available:
 
 >Arm a job create<br>
 This method arms a job for creation and sets an optional response code for create/update<br>
-```URI and payload, (PUT): /arm/create/<producer_id>/<job_id>[?response=<resonsecode>]```<br>
+```URI and payload, (PUT): /arm/create/<producer_id>/<job_id>[?response=<responsecode>]```<br>
 ```response: 200 or 400 for other errors```
 >Arm a job delete<br>
 This method arms a job for deletion and sets an optional response code for delete<br>
-```URI and payload, (PUT): /arm/delete/<producer_id>/<job_id>[?response=<resonsecode>]```<br>
+```URI and payload, (PUT): /arm/delete/<producer_id>/<job_id>[?response=<responsecode>]```<br>
 ```response: 200 or 400 for other errors```
 
 >Arm a producer supervision<br>
 This method arms a supervision and sets an optional response code for supervision calls<br>
-```URI and payload, (PUT): /arm/delete/<producer_id>[?response=<resonsecode>]```<br>
+```URI and payload, (PUT): /arm/delete/<producer_id>[?response=<responsecode>]```<br>
 ```response: 200 or 400 for other errors```
 
 >Arm a type for a producer<br>
@@ -121,12 +121,12 @@ file "key.crt" is the key file
 file "generate_cert_and_key.sh" is a shell script to generate certificate and key
 file "pass" stores the password when you run the shell script
 
->Start the container without specifing external certificates:<br>
+>Start the container without specifying external certificates:<br>
 ```docker run --rm -it --p 8092:8092 -p 8093:8093 producer-stub```
 
 It will listen to http 8092 port and https 8093 port(using default certificates) at the same time.
 
-This certificates/key can be overriden by mounting a volume when using "docker run" or "docker-compose"
+This certificates/key can be overridden by mounting a volume when using "docker run" or "docker-compose"
 In 'docker run', use field:
 >```-v "$PWD/certificate:/usr/src/app/cert"```
 
index 13eefb3..d760440 100644 (file)
@@ -63,7 +63,7 @@ JOB_DATA="/jobdata/<string:producer_id>/<string:job_id>"
 
 STATUS="/status"
 
-#Constsants
+#Constants
 APPL_JSON='application/json'
 UNKNOWN_QUERY_PARAMETERS="Unknown query parameter(s)"
 RETURNING_CONFIGURED_RESP="returning configured response code"
@@ -185,7 +185,7 @@ def index():
 
 # Arm the create callback with a response code
 # Omitting the query parameter switch to response back to the standard 200/201 response
-# URI and parameters (PUT): /arm/create/<producer_id>/<job_id>[?response=<resonsecode>]
+# URI and parameters (PUT): /arm/create/<producer_id>/<job_id>[?response=<repsonsecode>]
 # Setting
 # response: 200 (400 if incorrect query params)
 @app.route(ARM_CREATE_RESPONSE,
@@ -218,7 +218,7 @@ def arm_create(producer_id, job_id):
 
 # Arm the delete callback with a response code
 # Omitting the query parameter switch to response back to the standard 204 response
-# URI and parameters (PUT): /arm/delete/<producer_id>/<job-id>[?response=<resonsecode>]
+# URI and parameters (PUT): /arm/delete/<producer_id>/<job-id>[?response=<responsecode>]
 # response: 200 (400 if incorrect query params)
 @app.route(ARM_DELETE_RESPONSE,
      methods=['PUT'])
@@ -239,7 +239,7 @@ def arm_delete(producer_id, job_id):
 
     job_dict=setup_callback_dict(producer_id, job_id)
 
-    if (arm_response is None): #Reset the response depening if a job exists or not
+    if (arm_response is None): #Reset the response depending if a job exists or not
         if (job_dict['json'] is None):
             job_dict['delete_response']=404
         else:
@@ -251,7 +251,7 @@ def arm_delete(producer_id, job_id):
 
 # Arm the supervision callback with a response code
 # Omitting the query parameter switch to response back to the standard 200 response
-# URI and parameters (PUT): /arm/supervision/<producer_id>[?response=<resonsecode>]
+# URI and parameters (PUT): /arm/supervision/<producer_id>[?response=<responsecode>]
 # response: 200 (400 if incorrect query params)
 @app.route(ARM_SUPERVISION_RESPONSE,
      methods=['PUT'])
index f993410..eb5d1c6 100644 (file)
@@ -48,7 +48,7 @@ function getSimCtr(url, index, cb) {
 
     try {
         http.get(url, (resp) => {
-            // A chunk of data has been recieved.
+            // A chunk of data has been received.
             resp.on('data', (chunk) => {
                 data += chunk;
             });
@@ -73,7 +73,7 @@ function getSimCtr(url, index, cb) {
 }
 
 
-//Format a comma separated list of data to a html-safe string with fixed fieldsizes
+//Format a comma separated list of data to a html-safe string with fixed field sizes
 function formatDataRow(commaList) {
        var str = "";
        var tmp=commaList.split(',');
@@ -89,7 +89,7 @@ function formatDataRow(commaList) {
        return str;
 }
 
-//Format a comma separated list of ids to a html-safe string with fixed fieldsizes
+//Format a comma separated list of ids to a html-safe string with fixed field sizes
 function formatIdRow(commaList) {
        var str = "";
        var tmp=commaList.split(',');