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
Adapting nss integration tests #59
Conversation
4c5c7fd
to
c68bd18
Compare
Fixed the linking process for the nss c library and the cache options to be passed to the aad-auth executable. Co-authored by: Gabriel Nagy <gabriel.nagy@canonical.com>
Also planning on adding checks for the type of error that was returned as well.
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.
Just some nitpicks related to how we build the lib. Happy we got this working \o/
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.
Some small comments, but overall, this is great!
Please double check again that all previous tests cases are still covered with the refactoring, I saw at least that those one are not: try to list by name or uid in group and passwd without access to shadow.
Also, we discussed on MM about listing the group. I doubt this is a buffer issue, we can check together.
Added test cases to handle calls to Getent with "" keys. Co-authored by: Didier Roche <didrocks@ubuntu.com>
Now the call to outNssCommandForLib actually returns all the entries, as requested. Also addressed a few other comments in the PR. Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Now it's possible to pass an explicit empty key ("") to the aad-auth cli and have it perform the same operation as getent would -> query the database for the "" key, rather than treating it as a nil value. Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Co-authored-by: Didier Roche <didrocks@ubuntu.com>
Codecov Report
@@ Coverage Diff @@
## main #59 +/- ##
==========================================
+ Coverage 75.98% 82.76% +6.78%
==========================================
Files 39 34 -5
Lines 2436 2234 -202
==========================================
- Hits 1851 1849 -2
+ Misses 524 324 -200
Partials 61 61
📣 We’re building smart automated test selection to slash your CI/CD build times. 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.
All comments are resolved! Good work, it’s reassuring to have integration tests back!
Adapting the tests to fit in the new NSS C library.