-
Notifications
You must be signed in to change notification settings - Fork 72
Test: Mtl manager fixture #1219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Please add sensible git PR description |
for host in hosts.values(): | ||
mgr = MtlManager(host) | ||
mgr.start() | ||
managers[host.name] = mgr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should raise error here if start returned False
connection = self.host.connection | ||
try: | ||
logger.info("Stopping MtlManager using sudo pkill MtlManager...") | ||
connection.execute_command("sudo pkill MtlManager") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to use self.mtl_manager_process.stop() method or wait / kill () methods than this.
Also it would be nice to verify logs for errors.
This class adds a class to manage the lifecycle of the MtlManager process on a remote host, as well as a connected fixture, that turns the MtlManager on at the beginning of the test and off at the end of it.