aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/benchmark/contexts/test_model.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/benchmark/contexts/test_model.py')
-rw-r--r--tests/unit/benchmark/contexts/test_model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/benchmark/contexts/test_model.py b/tests/unit/benchmark/contexts/test_model.py
index 48584cf33..a1978e320 100644
--- a/tests/unit/benchmark/contexts/test_model.py
+++ b/tests/unit/benchmark/contexts/test_model.py
@@ -167,6 +167,7 @@ class ServerTestCase(unittest.TestCase):
self.mock_context.name = 'bar'
self.mock_context.keypair_name = 'some-keys'
self.mock_context.secgroup_name = 'some-secgroup'
+ self.mock_context.user = "some-user"
def test_construct_defaults(self):
@@ -215,6 +216,7 @@ class ServerTestCase(unittest.TestCase):
mock_template.add_server.assert_called_with(
'some-server', 'some-image', 'some-flavor',
ports=['some-server-some-network-port'],
+ user=self.mock_context.user,
key_name=self.mock_context.keypair_name,
scheduler_hints='hints')