diff options
| author | Will Woods <wwoods@redhat.com> | 2012-02-10 16:00:20 -0500 |
|---|---|---|
| committer | Will Woods <wwoods@redhat.com> | 2012-02-15 12:07:40 -0500 |
| commit | ea271b4dc6137ddc5477385ad537c17b3507e376 (patch) | |
| tree | 278dca3368b0e22c00addc4e3c33986266e8b7ab /tests | |
| parent | 98bf3f655a483c0041645bf59676ee8637224235 (diff) | |
| download | anaconda-ea271b4dc6137ddc5477385ad537c17b3507e376.tar.gz anaconda-ea271b4dc6137ddc5477385ad537c17b3507e376.tar.xz anaconda-ea271b4dc6137ddc5477385ad537c17b3507e376.zip | |
move vncpassword handling into anaconda; remove recoverVNCPassword
loader was writing the vncpassword out to a file, because:
a) many years ago, VNC got started by loader, and
b) VNC used to need to read its password from a file.
But now it is the Glorious Future and anaconda can just read the
'vncpassword' boot/cmdline arg and hand it to the VncServer object.
This also removes recoverVNCPassword and pw_init_file from the VncServer
class, and the tests associated with them.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pyanaconda_test/vnc_test.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/pyanaconda_test/vnc_test.py b/tests/pyanaconda_test/vnc_test.py index 45b79e273..8b703c81c 100644 --- a/tests/pyanaconda_test/vnc_test.py +++ b/tests/pyanaconda_test/vnc_test.py @@ -27,29 +27,12 @@ class VncTest(mock.TestCase): self.DESKTOP = 'Desktop' self.PASS = '' self.LOG_FILE = '/tmp/vnc.log' - self.PW_INIT_FILE = '/tmp/vncpassword.dat' self.PW_FILE = '/tmp/vncpassword' self.VNCCONNECTHOST = 'host' def tearDown(self): self.tearDownModules() - def recover_vnc_password_1_test(self): - import pyanaconda.vnc - pyanaconda.vnc.open = mock.Mock(side_effect=IOError()) - - server = pyanaconda.vnc.VncServer() - server.recoverVNCPassword() - self.assertEqual(server.password, '') - - def recover_vnc_password_2_test(self): - import pyanaconda.vnc - self.fs.open(self.PW_INIT_FILE, 'w').write('abcdef') - - server = pyanaconda.vnc.VncServer(pw_init_file=self.PW_INIT_FILE) - server.recoverVNCPassword() - self.assertEqual(server.password, 'abcdef') - def set_vnc_password_1_test(self): import pyanaconda.vnc server = pyanaconda.vnc.VncServer() |
