1 from ganeti_web
.tests
.views
.virtual_machine
.base
import TestVirtualMachineViewsBase
3 __all__
= ['TestVirtualMachineLogViews']
7 class TestVirtualMachineLogViews(TestVirtualMachineViewsBase
):
10 def test_view_object_log(self
):
12 Tests view for object log:
15 * lack of permissions returns 403
16 * nonexistent Cluster returns 404
17 * nonexistent VirtualMachine returns 404
19 url
= "/cluster/%s/%s/object_log/"
20 args
= (cluster
.slug
, vm
.hostname
)
21 self
.validate_get(url
, args
, 'object_log/log.html')