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

Eradicate negative assertions tests #2278

Open
7 of 8 tasks
simon-id opened this issue Mar 29, 2024 · 4 comments
Open
7 of 8 tasks

Eradicate negative assertions tests #2278

simon-id opened this issue Mar 29, 2024 · 4 comments

Comments

@simon-id
Copy link
Member

simon-id commented Mar 29, 2024

Some tests have negative assertions, ie: test that nothing happens. This is not really useful, and it's giving false positives for xpass (easy-wins).
Here is the list I could find:

@cbeauchesne
Copy link
Collaborator

system-tests/tests/appsec/test_customconf.py fixed

@simon-id simon-id mentioned this issue Apr 25, 2024
8 tasks
@simon-id
Copy link
Member Author

@cbeauchesne the last one in the list

def test_request_method(self):

I have no idea how to fix it :/
We can't test that it's "doing something" before because it's tested in a different scenario. I made a workaround that checks when this test is used and fail directly in the weblog: #2401

@cbeauchesne
Copy link
Collaborator

There is nothing in telemetry that tells the feature is implemented, but deactivated ?

@simon-id
Copy link
Member Author

There is nothing in telemetry that tells the feature is implemented, but deactivated ?

I'm guessing if it's implemented, it should be sent in the env config telemetry payload, but I didn't pursue that lead myself as I have no idea how to implement it in the system-test. If you can figure it out, i'll test it for you.

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

No branches or pull requests

2 participants