Skip to content

Testing an Automation : YAML help #58

Answered by jstanden
boringpapa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pakiyabhai!

This is a great question, and the docs on cerb.ai need to cover simulating automations better. You actually have much more visibility into what's going on with an automation than you ever did with bot behaviors.

I'm going to assume we're using an automation policy like:

commands:
  record.search:
    deny/type@bool: {{inputs.record_type is not record type ('ticket')}}
    allow@bool: yes
  record.update:
    deny/type@bool: {{inputs.record_type is not record type ('ticket')}}
    allow@bool: yes

An automation will run all commands like normal during simulation unless you implement an on_simulate: event for a command. It can even be empty.

So in your example, the record.sea…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jstanden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants