-
Couldn't load subscription status.
- Fork 127
[system testing] Add provision for system testing negative / false-positive scenarios in packages #1333
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
Conversation
|
test integrations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have the first negative test 🙂
I think these changes are going to affect the timings of all tests, and not only the ones with hit count assertions, could we change it so these changes only affect tests with hit count assertions?
|
test integrations |
|
Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#6778 |
|
test integrations |
|
Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#6778 |
test/packages/false_positives/httpjson_false_positive_asserts/_dev/build/build.yml
Outdated
Show resolved
Hide resolved
cb05693 to
c3808e2
Compare
|
test integrations |
|
Created or updated PR in integrations repostiory to test this vesrion. Check elastic/integrations#6778 |
|
/test |
Co-authored-by: Mario Rodriguez Molins <marrodmo@gmail.com>
💚 Build Succeeded
History
cc @bhapas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for adding this negative tests @bhapas!
This PR changes the way the
system testingasserts at the number of hits in ElasticSearch when a system test is run.Earlier, The testrunner exited when
enoughdocs are found as per the config and there were more docs that got ingested afterassertHitCountcondition satisfied.Now, The testrunner tries to get all the docs before checking for the
assertHitCountand fails if the docs are more/less than the configured countTheretryTickerin thewaitUntilTruefunction is changed to5 secondsmeaning , the retry interval for each poll to ES has been changed to5 secondsand so if for10 seconds, there is no change in number of docs , the test passes.How to test
Run
PACKAGE_TEST_TYPE=false_positives PACKAGE_UNDER_TEST=httpjson_false_positive_asserts ./scripts/test-check-packages-false-positives.shThe
test-check-packages.shfile has been modified to catch a failure from the new packagehttpjson_false_positive_assertsand atestcase failureis considered assuccess scenario