lars
80337411ae
svn:keywords set fixed: shutdown - delay reboot/poweroff by some seconds to finish the web page before added: format_fs - show link to umount in case of active device added: new plugin "language_selection" fixed: recently introduced syntax error in 'network' added: "volume_props" mentions encryption support via "format_fs" (including link) updated: plugin-interface.txt fixed: broken test case for date plugin (caused by twill, I guess) added: "partition" plugin - better handling of config partition
21 lines
617 B
Python
21 lines
617 B
Python
import WebInterfaceTestClass
|
|
|
|
class unittests(WebInterfaceTestClass.WebInterfaceTestClass):
|
|
|
|
def test_read_logs(self):
|
|
log_url = self.URL + "logs"
|
|
self.register_auth(log_url)
|
|
self.cmd.go(log_url)
|
|
self.cmd.find('class="console"')
|
|
|
|
def test_write_logs(self):
|
|
## we have to assume two things:
|
|
## 1) log level is at least "error"
|
|
## 2) the log message does not get lost in a possible stream of log messages
|
|
log_text = "unittest - just a marker - please ignore"
|
|
self.cbox.log.error(log_text)
|
|
log_url = self.URL + "logs"
|
|
self.register_auth(log_url)
|
|
self.cmd.go(log_url)
|
|
self.cmd.find(log_text)
|
|
|