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

Wolfgangkarall anchors bugfix #95

Merged
merged 7 commits into from
Oct 11, 2016
Merged

Conversation

whyscream
Copy link
Owner

Adapt the test suite to make better use of the anchoring idea from Wolfgang

wolfgangkarall and others added 7 commits September 30, 2016 18:03
…ests.

Also add missing '%' to the end of POSTFIX_SCACHE_LOOKUPS.
- some didn't define the end of the line properly, like POSTFIX_SMTPD_LOSTCONN,
  POSTFIX_SMTPD_PIPELINING, POSTFIX_SMTP_LOSTCONN or POSTFIX_SMTP_TIMEOUT
- some where only lucky to pass the test data because of the missing anchors,
  like POSTFIX_DISCARD or POSTFIX_PS_VIOLATIONS
- remove () around single patterns in aggregated patterns list, which were
  added when moving anchors there but are not necessary
- fix data in test/discard_0001.yaml, we're matching the message only
…tern.

Also use POSTFIX_VIRTUAL pattern in virtual_0001.yaml. Testing for untested
patterns using:

sed -n '/aggregate all patterns/,$s/ .*//p' postfix.grok | tail -n +2 | \
  while read pattern; do
    grep -q "pattern: $pattern$" test/*.yaml \
       || echo $pattern not found
done
@whyscream
Copy link
Owner Author

whyscream commented Oct 5, 2016

@wolfgangkarall I wanted to change the test setup for some time already, but never got around to it. This was a good reason :)
Any comments to merge this in favor of #94?

@whyscream whyscream merged commit 158921b into master Oct 11, 2016
@whyscream whyscream deleted the wolfgangkarall-anchors-bugfix branch October 11, 2016 20:45
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

2 participants