-
Notifications
You must be signed in to change notification settings - Fork 59
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
Test failes when using negativ values in delta operator #391
Comments
Hi , Could you please check and let me know , if following functionality works according to your requirements . the delta function is as per below . if pre-snapshot is 100 and post-snapshot value 90 and delta is 10% if post-snapthot is 111 or 89 , delta check will Fail. Positive percentage - Negative percentage - if pre-snapstho is 100 and post-snapshot value is within the range of 100 to 90 and delta is -10% Thanks & Regards |
Hi, I'm seeing similar issues when using negative percentages in JSNAPy version: 1.3.6.
As you can see, I only expect to see an error message when the post value decreases by 25% from pre-value, however, this does not seem to be the case, and error is still raised even if the post value has increased by more than 25%. As I understand, this should not be raised as an error.
I have added comments to the #392 . |
Hi, I have updated the fix and verified , please find the results . Case 1: When pre-snapshot value is 100 and post-snanpshot is +10% i.e 111
Thanks & Regards |
* fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391 * fixed issue #391
Fixed issue as port of fix #396 |
Fixed #396 |
Description of Issue/Question
Delta values are not calculated correctly when using negative values e.g. -10% or postive values e.g +10%
It looks like delta tests are behaving just like when using only the percentage 10%
Setup
(Please provide relevant configs, xml snapshots and related files (Be sure to remove sensitive info).)
Pre snapshot:
Post snapshot:
Testfile:
Config file:
Test result:
jsnapy --port 22 --check pre post -f jsnapy-host.cfg -v
As you see, both tests are failing instead of just one which has the delta set to +10%
If I change the
<active-route-count>
in the post snapshot to<active-route-count>89</active-route-count>
e.g -10% of the pre value, both tests fail again:When using following testfile with only
10%
:the test fails for every value lower/higher then 10% from the pre snapshot value (here 100)
Steps to Reproduce Issue
(Include debug logs if possible and relevant. Error trace would be helpful too)
see above
Versions Report
(Provided by running
jsnapy --version
. Please also mention python version.)JSNAPy version: 1.3.6
The text was updated successfully, but these errors were encountered: