Revision 7688d0d3 test/ganeti.ssh_unittest.py
b/test/ganeti.ssh_unittest.py | ||
---|---|---|
41 | 41 |
|
42 | 42 |
def test(self): |
43 | 43 |
cfg = mocks.FakeConfig() |
44 |
sstore = mocks.FakeSStore() |
|
45 |
ssh.WriteKnownHostsFile(cfg, sstore, self.tmpfile.name) |
|
44 |
ssh.WriteKnownHostsFile(cfg, self.tmpfile.name) |
|
46 | 45 |
self.assertFileContent(self.tmpfile.name, |
47 |
"%s ssh-rsa %s\n" % (sstore.GetClusterName(),
|
|
46 |
"%s ssh-rsa %s\n" % (cfg.GetClusterName(),
|
|
48 | 47 |
mocks.FAKE_CLUSTER_KEY)) |
49 | 48 |
|
50 | 49 |
|
Also available in: Unified diff