mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
test(qa): assert Telegram command denial (#102732)
This commit is contained in:
parent
5b4302b52e
commit
a0267273d0
1 changed files with 4 additions and 6 deletions
|
|
@ -43,17 +43,15 @@ flow:
|
|||
- call: waitForTransportReady
|
||||
args: [{ ref: env }, 60000]
|
||||
- resetTransport: true
|
||||
- set: deniedStart
|
||||
value:
|
||||
expr: "state.getSnapshot().messages.filter((message) => message.direction === 'outbound').length"
|
||||
- sendInbound:
|
||||
conversation: { id: telegram-command-room, kind: channel }
|
||||
senderId: qa-command-operator
|
||||
senderName: QA Command Operator
|
||||
text: /status@openclaw
|
||||
- waitForNoOutbound:
|
||||
quietMs: 8000
|
||||
sinceIndex: { ref: deniedStart }
|
||||
- waitForOutbound:
|
||||
conversation: { id: telegram-command-room, kind: channel }
|
||||
textIncludes: You are not authorized to use this command.
|
||||
timeoutMs: 60000
|
||||
finally:
|
||||
- call: env.gateway.restartAfterStateMutation
|
||||
args:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue