tree: 2a08f02520e514a9df021d336b48619c075a38a2 [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. defs.h
  4. meta/
  5. trigger_test_agent.cc
  6. trigger_test_module.cc
  7. trigger_test_service.fidl
  8. trigger_test_session_shell.cc
peridot/tests/trigger/README.md

trigger integration test

This test verifies that Agents are woken up on triggers for:

  1. New messages on a queue.
  2. An explicitly deleted message queue.
  3. A message queue being deleted as part of story tear down.

The general structure of the test is a session shell is created, which in turn creates a story and adds the test module to it.

The test module then verifies (1) and (2) by interacting with the test agent. It also creates a message queue that it does not delete explicitly and hands the token to the session shell.

Once (1) and (2) have been verified, the session shell deletes the story and waits for the token it was handed by the module to appear in the test store. This signals that the agent was woken by the deletion trigger for that queue.