20 lines
461 B
Python
20 lines
461 B
Python
from {beat} import BaseTest
|
|
|
|
import os
|
|
|
|
|
|
class Test(BaseTest):
|
|
|
|
def test_base(self):
|
|
"""
|
|
Basic test with exiting {Beat} normally
|
|
"""
|
|
self.render_config_template(
|
|
path=os.path.abspath(self.working_dir) + "/log/*"
|
|
)
|
|
|
|
{beat}_proc = self.start_beat()
|
|
self.wait_until(lambda: self.log_contains("{beat} is running"))
|
|
exit_code = {beat}_proc.kill_and_wait()
|
|
assert exit_code == 0
|