diff options
Diffstat (limited to 'tests/dcaegen2-collectors-hv-ves/testcases/resources')
5 files changed, 33 insertions, 43 deletions
diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot b/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot index b943935d..fa7248a9 100644 --- a/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot +++ b/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot @@ -23,6 +23,8 @@ Library VesHvContainersUtilsLibrary Library KafkaLibrary Library Collections +Library OperatingSystem + *** Keywords *** Configure Single xNF Simulator ${XNF_PORTS_LIST}= Create List 7000 @@ -70,8 +72,13 @@ VES-HV Collector Suite Teardown Log Kafka Status Stop And Remove All Xnf Simulators ${SUITE NAME} +Set New Mounted Configuration + [Arguments] ${NEW_CONFIGURATION_FILE_PATH} + Copy File ${NEW_CONFIGURATION_FILE_PATH} ${HV_VES_MOUNTED_CONFIGURATION_FILE_PATH} + *** Variables *** ${HTTP_METHOD_URL} http:// ${XNF_SIM_API_PATH} /simulator/async +${HV_VES_MOUNTED_CONFIGURATION_FILE_PATH} %{WORKSPACE}/plans/dcaegen2-collectors-hv-ves/testsuites/collector/configuration/hv-ves-configuration.yaml diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.json b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.json deleted file mode 100644 index 7cd830d6..00000000 --- a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "streams_publishes": { - "perf3gpp": { - "type": "kafka", - "aaf_credentials": { - "username": "admin", - "password": "admin_secret" - }, - "kafka_info": { - "bootstrap_servers": "kafka:9092", - "topic_name": "TEST_HV_VES_PERF3GPP_BUT_WITH_EXTRA_WORDS" - } - } - } -} - diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.yaml b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.yaml new file mode 100644 index 00000000..1b507c9b --- /dev/null +++ b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration-with-different-topic.yaml @@ -0,0 +1,9 @@ +streams_publishes: + perf3gpp: + aaf_credentials: + password: admin_secret + username: admin + kafka_info: + bootstrap_servers: kafka:9092 + topic_name: TEST_HV_VES_PERF3GPP_BUT_WITH_EXTRA_WORDS + type: kafka diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json deleted file mode 100644 index 019e4680..00000000 --- a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "streams_publishes": { - "perf3gpp": { - "type": "kafka", - "aaf_credentials": { - "username": "admin", - "password": "admin_secret" - }, - "kafka_info": { - "bootstrap_servers": "kafka:9092", - "topic_name": "TEST_HV_VES_PERF3GPP" - } - }, - "ves-3gpp-heartbeat": { - "type": "kafka", - "aaf_credentials": { - "username": "admin", - "password": "admin_secret" - }, - "kafka_info": { - "bootstrap_servers": "kafka:9092", - "topic_name": "TEST_SEC_3GPP_HEARTBEAT_OUTPUT" - } - } - } -} - diff --git a/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.yaml b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.yaml new file mode 100644 index 00000000..0eb41f15 --- /dev/null +++ b/tests/dcaegen2-collectors-hv-ves/testcases/resources/hv-ves-configuration.yaml @@ -0,0 +1,17 @@ +streams_publishes: + perf3gpp: + aaf_credentials: + password: admin_secret + username: admin + kafka_info: + bootstrap_servers: kafka:9092 + topic_name: TEST_HV_VES_PERF3GPP + type: kafka + ves-3gpp-heartbeat: + aaf_credentials: + password: admin_secret + username: admin + kafka_info: + bootstrap_servers: kafka:9092 + topic_name: TEST_SEC_3GPP_HEARTBEAT_OUTPUT + type: kafka |