[UT] Add SQL tests for mem_pool property of resource groups (backport #65859) #66060
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I'm doing:
The mem_pool property for resource groups was recently introduced.
There are currently no end-to-end SQL test cases for this functionality.
What I'm doing:
This pull request adds SQL tests, checking the correctness of the behavior under the following scenarios:
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check:
Note
Add end-to-end SQL tests validating resource group mem_pool creation, sharing, immutability, and mem_limit constraints.
mem_poolin resource groups:mem_poolsucceeds (test_create_resource_group_with_mem_pool).mem_poolwith matchingmem_limit(test_create_two_resource_groups_with_mem_pool).mem_poolwith a differentmem_limit(test_create_two_resource_groups_with_mem_pool_different_mem_limit).mem_poolandmem_limitonce set; allow changingmax_cpu_cores(test_create_resource_group_with_mem_pool_then_try_alter,test_create_two_resource_groups_with_mem_pool_then_try_alter).R/expected-result files with regex assertions and error codes.Written by Cursor Bugbot for commit 6f8a6c8. This will update automatically on new commits. Configure here.
This is an automatic backport of pull request #65859 done by [Mergify](https://mergify.com).