]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Create fake Remotes in a more standard way 499/head
authorZack Cerza <zack@redhat.com>
Fri, 22 May 2015 21:38:35 +0000 (15:38 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 1 Jun 2015 16:21:09 +0000 (10:21 -0600)
This avoids them wanting to run 'hostname --fqdn' on remote nodes that
don't exist

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/test/task/test_ansible.py

index 1fa608ffde73eb7e0301f05a986b406cf8721224..79cd79d4959ab42b42d43265f04790d2f28bf3a6 100644 (file)
@@ -19,8 +19,8 @@ class TestAnsibleTask(TestTask):
     def setup(self):
         self.ctx = FakeNamespace()
         self.ctx.cluster = Cluster()
-        self.ctx.cluster.add(Remote('remote1'), ['role1'])
-        self.ctx.cluster.add(Remote('remote2'), ['role2'])
+        self.ctx.cluster.add(Remote('user@remote1'), ['role1'])
+        self.ctx.cluster.add(Remote('user@remote2'), ['role2'])
         self.ctx.config = dict()
 
     def test_setup(self):