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

Validation scopes. #357

Merged
merged 9 commits into from
Oct 3, 2024
Merged

Validation scopes. #357

merged 9 commits into from
Oct 3, 2024

Conversation

jmalloc
Copy link
Member

@jmalloc jmalloc commented Sep 25, 2024

This PR:

  • Adds dogma.CommandValidationScope, EventValidationScope, and TimeoutValidationScope implementations that can be used by application developers when testing their validation logic. As these interfaces are currently empty the implementations are also empty.
  • Adds support for passing validation scopes to messages within expectations and the interval in-memory engine.
  • Removes several tests that are no longer relevant now that any given dogma.Message can only be one of dogma.Command, Event or Timeout.

@jmalloc jmalloc force-pushed the validation-scopes branch 5 times, most recently from 8aa7bdf to 735372e Compare September 29, 2024 21:55
@jmalloc jmalloc force-pushed the validation-scopes branch 2 times, most recently from 701aae4 to 6e63dc4 Compare October 2, 2024 21:53
@jmalloc jmalloc marked this pull request as ready for review October 2, 2024 21:54
@jmalloc jmalloc enabled auto-merge October 3, 2024 03:00
@jmalloc jmalloc merged commit b137006 into main Oct 3, 2024
4 of 5 checks passed
@jmalloc jmalloc deleted the validation-scopes branch October 3, 2024 03:02
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.

1 participant