Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Asynchronous Events + More #878

Merged
merged 6 commits into from
Mar 12, 2020

Conversation

rmace001
Copy link
Contributor

In ReservatioFlowIntegrationTest, add an asynchronous extension to the database to enable detecting RESERVATION_CONFIRMED (an asynchronous event). We clear the extension_log table whenever we assert for presence of log. This PR also tests for RESERVATION_CANCELLED, TICKET_ASSIGNED, and TICKET_CHECKED_IN. Each time an event is logged, we expect to find exactly two logs for the event.

Find all RESERVATION_CONFIRMED

  • There is only one log(WARN) from script with event: RESERVATION_CONFIRMED in the test output

YeeitsAlex and others added 6 commits March 3, 2020 21:56
* Test fails for different reasons in different runs

Co-authored-by: Mark Alexander Bis <35311810+MarkBis415@users.noreply.github.com>
Co-authored-by: Rogelio Macedo <32654086+rmace001@users.noreply.github.com>
* add asynchronous extension to database
* detect logs after RESERVATION_CONFIRMED
* lay-out steps to perform future tests on extensions that have been fired
    * Includes clearing extension_log table before asserting what logs are present

Co-authored-by: Mark Alexander Bis <35311810+MarkBis415@users.noreply.github.com>
Co-authored-by: Alexander Yee <32520269+YeeitsAlex@users.noreply.github.com>
  * RESERVATION_CONFIRMED is an asynchronous event (test by inserting asynchronous extension)
  * Find all RESERVATION_CONFIRMED
    * There is only one log(warn) from script with event: RESERVATION_CONFIRMED
  * Clear the extension_log table whenever we assert for presence of log
  * Each time an event is logged, we expect to find exactly two logs for the event

Co-authored-by: Mark Alexander Bis <35311810+MarkBis415@users.noreply.github.com>
Co-authored-by: Alexander Yee <32520269+YeeitsAlex@users.noreply.github.com>
Co-authored-by: Mark Alexander Bis <35311810+MarkBis415@users.noreply.github.com>
Co-authored-by: Alexander Yee <32520269+YeeitsAlex@users.noreply.github.com>
@cbellone cbellone merged commit 795d99b into alfio-event:master Mar 12, 2020
@cbellone
Copy link
Member

Merged. Thank you guys, great job! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants