# How to test resource based testcases on rancher server console?

**URL:** <https://forums.suse.com/t/how-to-test-resource-based-testcases-on-rancher-server-console/6364>\
**Category:** General\
**Created:** [May 12, 2017, 7:45am UTC](https://forums.suse.com/t/how-to-test-resource-based-testcases-on-rancher-server-console/6364 "2017-05-12T07:45:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shilakha](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Shilakha](https://forums.suse.com/u/Shilakha)\
**Post date:** [May 12, 2017, 7:45am UTC](https://forums.suse.com/t/how-to-test-resource-based-testcases-on-rancher-server-console/6364/1 "2017-05-12T07:45:43Z")

</div>

I have to test scenarios related to memory reserve, CPU reserve etc like 🙂

Service that is over the CPU and Mem reserve  
Service with no reserve after CPU and Mem are maxed out  
Service to fill host/cpu, then add another service without reserve  
Service to fill host/cpu, then add another service with mem reserve  
Service to fill host/cpu, then add another service with CPU reserve  
Service with sidekicks that is under mem reserve  
Service with sidekicks that is over mem reserve  
Service with sidekicks that is under CPU reserve  
Service with sidekicks that is over CPU reserve  
Service that uses only sidekick reserve that is under mem  
Service that uses only sidekick reserve that is over mem  
Service that uses only sidekick reserve that is under CPU  
Service that uses only sidekick reserve that is over CPU  
Container under reserve  
Container over reserve

How to test them ?

---

<div class="post-metadata">

**Author:** ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)\
**Post date:** [May 15, 2017, 4:59pm UTC](https://forums.suse.com/t/how-to-test-resource-based-testcases-on-rancher-server-console/6364/2 "2017-05-15T16:59:38Z")

</div>

Here’s the documentation on how to set those fields: [https://docs.rancher.com/rancher/v1.6/en/rancher-services/scheduler/#scheduling-with-resource-constraints](https://docs.rancher.com/rancher/v1.6/en/rancher-services/scheduler/#scheduling-with-resource-constraints)

You’d just have to iterate through your different scenarios to see if the behavior is as expected. You can manually edit the CPU and memory a host has available for scheduling by clicking “Edit Host” on the Infrastructure \> Hosts page. If you lower the values, it might make your testing easier.
