-
Notifications
You must be signed in to change notification settings - Fork 14
[nodejs] enable fastify cookies tests #4803
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
base: main
Are you sure you want to change the base?
Conversation
bf8ef18
to
4fe533b
Compare
4fe533b
to
e3eb64f
Compare
tests/appsec/test_fingerprinting.py
Outdated
@@ -192,6 +187,7 @@ def setup_session_non_blocking(self): | |||
self.cookies = self.r_create_session.cookies | |||
self.r_user = weblog.get("/user_login_success_event", cookies=self.cookies) | |||
|
|||
@missing_feature(context.weblog_variant == "fastify", reason="session fingerprint not supported yet") |
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.
the whole class should fail not jusr this test no ?
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.
test_session_blocking
is passing 🤔
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.
did you add a session middleware to fastify weblog ? if not, it's a problem in the test
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.
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.
even then, it doesn't make sense that the "non_blocking" test is skipped, "but the "blocking" one passes. If a feature works with blocking, it should work without blocking
tests/appsec/test_fingerprinting.py
Outdated
@@ -192,6 +187,7 @@ def setup_session_non_blocking(self): | |||
self.cookies = self.r_create_session.cookies | |||
self.r_user = weblog.get("/user_login_success_event", cookies=self.cookies) | |||
|
|||
@missing_feature(context.weblog_variant == "fastify", reason="session fingerprint not supported yet") | |||
def test_session_non_blocking(self): | |||
assert self.r_create_session.status_code == 200 |
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.
try without this line see if the test pass ?
assert self.r_create_session.status_code == 200 | |
# assert self.r_create_session.status_code == 200 |
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.
It's working yes
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.
well, the session fingerprinting blocking test doesn't have this check, so why would the nonblocking one have it. Either they should both have it, or neither. I think it's safe to remove ?
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.
It's a test change, so talk about it with other lib engs
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.
well, I fixed the test by modifying the endpoint behaviour and I added a todo comment.
I think this should not be a blocker for this PR since we still miss session management with fastify, however we can ask @Anilm3 about this since he implemented this test https://github.com/DataDog/system-tests/pull/4382/files#diff-c4d709ffdb6e4493d3ee3f20c624c1e5ec0fa3ee4ad6ad6bb435e3c0ad56e1d1R100
Motivation
Enable fastify cookies tests
Changes
Workflow
codeowners
file quickly.🚀 Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present