-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
curl_certificate test #5281
curl_certificate test #5281
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
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.
Do we have any other tests that rely on general internet access? Other than that I think this is fine, just want to be careful about setting precedent.
I'm going to accept, to remove it from my review queue, but I think @fmanco should weigh in on this (or @akindyakov) |
Thanks for working on improving osquery tests @nasehim7 . If you could rebase it on the experimental branch, I will merge it soon. |
@nasehim7 Seems reasonable. https://dev.azure.com/trailofbits/osquery/_build/results?buildId=651 says formatting error |
d24db54
to
63cb8c7
Compare
@directionless Thanks! I am not able to understand where exactly I am messing it up. I am not using an IDE instead just a simple editor(Sublime Text) |
@nasehim7 The linter is running I also don't use an IDE. I manually run my code through |
3adc764
to
c0210ec
Compare
It's not the same as calling clang-format on the whole file though, the script checks and eventually format only the modified lines, which is what we would like to maintain since it creates less noise and conflicts between different versions of clang-format used. |
@Smjert Understandable, thanks for the explanation. It seems the formatting is fixed now but it is throwing: /Users/vsts/agent/2.155.1/work/1/s/tests/integration/tables/curl_certificate.cpp:37:30: error: expected '}' Not sure why is it throwing that because if there was some parenthesis mismatch, it wouldn't have done the building with buck. Is it because of some vital differences in the build system? |
The error is not showing with Buck because it's not running those tests, good catch! |
de0ec39
to
d11143b
Compare
Hi @nasehim7, sorry for leaving this pending, are you still interested on working on this PR? The curl_certificates table got some updates, especially there are many more columns now. So you would need to:
|
10ba8b1
to
7b40230
Compare
Heads up @nasehim7, I rebased this onto our master. |
This PR has proved helpful! The I think we should change the column API here to remove the |
tests for the table
curl_certificate
- Fix #5061