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

Integration tests #101

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Integration tests #101

merged 2 commits into from
Sep 10, 2024

Conversation

MbolotSuse
Copy link
Contributor

@MbolotSuse MbolotSuse commented Sep 5, 2024

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.

@MbolotSuse MbolotSuse requested a review from a team as a code owner September 5, 2024 16:23
@MbolotSuse MbolotSuse requested review from bigkevmcd and removed request for bigkevmcd September 5, 2024 16:31
tomleb
tomleb previously approved these changes Sep 5, 2024
Copy link
Contributor

@tomleb tomleb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work 🎉

Copy link
Contributor

@bigkevmcd bigkevmcd left a 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.

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.
Copy link
Contributor

@moio moio left a 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.

@MbolotSuse MbolotSuse merged commit e298e0c into rancher:master Sep 10, 2024
1 check passed
moio added a commit to moio/rancher that referenced this pull request Oct 2, 2024
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>
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

Successfully merging this pull request may close these issues.

None yet

5 participants