Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ncdssdk/src/tests/RunTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
make_zookeeper_process, make_kafka_server, make_kafka_consumer,
terminate,
)
from security import safe_command

ROOT = Path(__file__).parent.parent.parent.parent
THIS_DIR = Path(__file__).parent
Expand All @@ -25,7 +26,7 @@

def test_integration(kafka_server: Tuple[Popen, int]):
RUN_TESTS_CMD = ['pytest', '-s', THIS_DIR / 'NCDSSDKPyTest.py']
test_process = subprocess.Popen(RUN_TESTS_CMD)
test_process = safe_command.run(subprocess.Popen, RUN_TESTS_CMD)
test_process.wait()
delete_test_topics()
sleep(5)
Expand All @@ -40,6 +41,6 @@ def delete_test_topics():
delete_gids_topic_cmd = [str(KAFKA_SCRIPTS) +
"/kafka-topics.sh", "--zookeeper", "localhost:2181", "--delete", "--topic",
"GIDS.stream"]
subprocess.Popen(delete_ctrl_topic_cmd)
subprocess.Popen(delete_mock_topic_cmd)
subprocess.Popen(delete_gids_topic_cmd)
safe_command.run(subprocess.Popen, delete_ctrl_topic_cmd)
safe_command.run(subprocess.Popen, delete_mock_topic_cmd)
safe_command.run(subprocess.Popen, delete_gids_topic_cmd)
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ urllib3==1.26.6
# via requests
zipp==3.4.1
# via importlib-metadata
pytz==2023.3
pytz==2023.3
security==1.3.1
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This library holds security tools for protecting Python API calls.

License: MITOpen SourceMore facts