1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-15 02:47:16 +00:00

Exterminate TFWConnector from TestFSM

This commit is contained in:
R. Richard 2019-06-04 15:44:47 +02:00
parent 14f300d610
commit 8b15da39ae

View File

@ -4,25 +4,21 @@ states:
- name: '0' - name: '0'
- name: '1' - name: '1'
on_enter: | on_enter: |
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 1!')" printf "Entered state 1!\n\n" > /tmp/tfw_bot_send
- name: '2' - name: '2'
on_enter: | on_enter: |
file=/home/user/workdir/cat.txt file=/home/user/workdir/cat.txt
echo "As you can see it is possible to execute arbitrary shell commands here." >> $file echo "As you can see it is possible to execute arbitrary shell commands here." >> $file
python3 -c \ printf "Entered state 2! Written stuff to $file\n\n" > /tmp/tfw_bot_send
"
from tfwconnector import MessageSender
MessageSender().send('FSM', 'Entered state 2! Written stuff to $file')
"
- name: '3' - name: '3'
on_enter: | on_enter: |
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 3!')" printf "Entered state 3!\n\n" > /tmp/tfw_bot_send
- name: '4' - name: '4'
on_enter: | on_enter: |
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 4!')" printf "Entered state 4!\n\n" > /tmp/tfw_bot_send
- name: '5' - name: '5'
on_enter: | on_enter: |
python3 -c "from tfwconnector import MessageSender; MessageSender().send('FSM', 'Entered state 5!')" printf "Entered state 5!\n\n" > /tmp/tfw_bot_send
transitions: transitions:
- trigger: step_1 - trigger: step_1
source: '0' source: '0'