Add Node Resource Consolidation tempest
Partially Implements: blueprint node-resource-consolidation Depends-on: Ia979781b32202c1821aa1cb91d24253fe6d7bd2d Depends-on: I104c864d532c2092f5dc6f0c8f756ebeae12f09e Change-Id: Ie9963aeef564f63a5cd88e94e94f2652660cccbd
This commit is contained in:
parent
447fc7b7d2
commit
6560602ff5
@ -168,3 +168,31 @@ class TestExecuteStrategies(base.BaseInfraOptimScenarioTest):
|
||||
audit_kwargs = {"parameters": audit_parameters}
|
||||
|
||||
self.execute_strategy(goal_name, strategy_name, **audit_kwargs)
|
||||
|
||||
def test_execute_node_resource_consolidation_strategy_with_auto(self):
|
||||
self.addCleanup(self.rollback_compute_nodes_status)
|
||||
self._create_one_instance_per_host_with_statistic()
|
||||
|
||||
goal_name = "server_consolidation"
|
||||
strategy_name = "node_resource_consolidation"
|
||||
audit_kwargs = {
|
||||
"parameters": {
|
||||
"host_choice": 'auto'
|
||||
}
|
||||
}
|
||||
|
||||
self.execute_strategy(goal_name, strategy_name, **audit_kwargs)
|
||||
|
||||
def test_execute_node_resource_consolidation_strategy_with_specify(self):
|
||||
self.addCleanup(self.rollback_compute_nodes_status)
|
||||
self._create_one_instance_per_host_with_statistic()
|
||||
|
||||
goal_name = "server_consolidation"
|
||||
strategy_name = "node_resource_consolidation"
|
||||
audit_kwargs = {
|
||||
"parameters": {
|
||||
"host_choice": 'specify'
|
||||
}
|
||||
}
|
||||
|
||||
self.execute_strategy(goal_name, strategy_name, **audit_kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user