diff options
author | Adheli Tavares <adheli.tavares@est.tech> | 2023-12-19 11:35:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-12-19 11:35:48 +0000 |
commit | b9d434aeef048c4ea2cf9bd8a27681d375ec5b85 (patch) | |
tree | 45ee0f104d040100f13dba2865a13f7f826573ef /csit/resources/tests/common-library.robot | |
parent | b688e1ed0c5780b8c4239ed72827913d48383137 (diff) | |
parent | f2609a349565f74237024f2f546e03ea5c772cb5 (diff) |
Merge "Add kafka docker container for policy CSITs"
Diffstat (limited to 'csit/resources/tests/common-library.robot')
-rw-r--r-- | csit/resources/tests/common-library.robot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/csit/resources/tests/common-library.robot b/csit/resources/tests/common-library.robot index 8c279176..f5db8e0e 100644 --- a/csit/resources/tests/common-library.robot +++ b/csit/resources/tests/common-library.robot @@ -147,3 +147,13 @@ CheckTopic Status Should Be OK ${resp} Should Contain ${resp.text} ${expected_status} [Return] ${resp.text} + +CheckKafkaTopic + [Arguments] ${topic} ${expected_status} + ${resp}= Run Process ${CURDIR}/kafka_consumer.py ${topic} 30 ${expected_status} + Log to console Received response from kafka ${resp.stdout} + Should Contain ${resp.text} ${expected_status} + +GetKafkaTopic + [Arguments] ${topic} + ${resp}= Run Process ${CURDIR}/make_topics.py ${topic}
\ No newline at end of file |