-
Notifications
You must be signed in to change notification settings - Fork 55
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
Integration tests #101
Integration tests #101
Conversation
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.
LGTM, nice work 🎉
de9cf90
to
e138690
Compare
e138690
to
cf3afe4
Compare
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.
Tests are a good start.
cf3afe4
to
9557e46
Compare
9557e46
to
f7cbf0d
Compare
Adds integration tests using env-test to the sql pacakge. This only adds some tests for using the cache with filters.
Adds a functionality to install env test for CI. Also adjusts the make test functionality to check for setup-envtest.
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.
Excellent work, thanks for taking the lead on this @MbolotSuse !
Very appreciated.
This includes various fixes to the UI Server-Side Pagination experimental feature: https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-experimental-features/ui-server-side-pagination - rancher/lasso#86 - rancher/lasso#90 - rancher/lasso#85 - rancher/lasso#92 - rancher/lasso#79 - rancher/lasso#97 - rancher/lasso#94 - rancher/lasso#98 - rancher/lasso#108 - rancher/lasso#99 It also includes improvements to code collecting metrics: - rancher/lasso#89 - rancher/lasso#95 And to test code: - rancher/lasso#100 - rancher/lasso#101 Signed-off-by: Silvio Moioli <silvio@moioli.net>
Related to rancher/rancher#45243. Adds some env-test based tests that attempt to use the SQL cache closer to how it's used in production. This only covers some basic filter cases, but sets up the framework to add tests for things like: transform functions, sorting, and pagination.
Note: This PR may need to be re-opened on a branch in the repo to allow the CI to run successfully.