mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-04 18:51:32 +00:00
Follow API changes
This commit is contained in:
parent
b032da8983
commit
01b247e494
@ -11,10 +11,10 @@ LOG = logging.getLogger(__name__)
|
||||
class CenatorHandler:
|
||||
keys = ['history.bash']
|
||||
|
||||
def handle_event(self, message, server_connector): # pylint: disable=no-self-use
|
||||
def handle_event(self, message, connector): # pylint: disable=no-self-use
|
||||
command = message['value']
|
||||
LOG.debug('User executed command: "%s"', command)
|
||||
MessageSender(server_connector).send('JOHN CENA', f'You\'ve executed "{command}"')
|
||||
MessageSender(connector).send('JOHN CENA', f'You\'ve executed "{command}"')
|
||||
|
||||
|
||||
class TestCommandsHandler(TerminalCommandsHandler):
|
||||
@ -33,12 +33,12 @@ class TestCommandsHandler(TerminalCommandsHandler):
|
||||
TFWUplinkConnector().send_message(literal_eval(args[0]))
|
||||
|
||||
|
||||
def messageFSMStepsHandler(message, server_connector):
|
||||
def messageFSMStepsHandler(message, connector):
|
||||
"""
|
||||
When the FSM steps this method is invoked.
|
||||
Receives a 'data' field from an fsm_update message as kwargs.
|
||||
"""
|
||||
MessageSender(server_connector).send(
|
||||
MessageSender(connector).send(
|
||||
'FSM info',
|
||||
f'FSM has stepped from state "{message["last_event"]["from_state"]}" '
|
||||
f'to state "{message["current_state"]}" in response to trigger "{message["last_event"]["trigger"]}"'
|
||||
|
Loading…
Reference in New Issue
Block a user