Fix actuator and basic optim scenario

This patch fixes actuator and basic optim scenario to create server
as non admin user

Change-Id: I6d316a1bce5fc48c793699450867875167c5a21c
This commit is contained in:
Hidekazu Nakamura 2018-04-12 10:33:58 +09:00
parent eac71568e9
commit f453e4f7e5
2 changed files with 8 additions and 2 deletions

View File

@ -145,7 +145,10 @@ class TestExecuteActionsViaActuator(base.BaseInfraOptimScenarioTest):
# landed on the host in question.
instance = self.create_server(image_id=CONF.compute.image_ref,
wait_until='ACTIVE',
clients=self.mgr)
clients=self.os_primary)
# get instance object again as admin
instance = self.mgr.servers_client.show_server(
instance['id'])['server']
created_servers.append(instance)
self.make_instance_statistic(instance)

View File

@ -125,7 +125,10 @@ class TestExecuteBasicStrategy(base.BaseInfraOptimScenarioTest):
name="instance-%d" % idx,
image_id=CONF.compute.image_ref,
wait_until='ACTIVE',
clients=self.mgr)
clients=self.os_primary)
# get instance object again as admin
instance = self.mgr.servers_client.show_server(
instance['id'])['server']
self.make_instance_statistic(instance)
def test_execute_basic_action_plan(self):