Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make running tests with session_recording pkg #78

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions test/verify/check-session-recording
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/python2
# -*- coding: utf-8 -*-

# This file is part of Cockpit.
#
# Copyright (C) 2013 Red Hat, Inc.
#
# Cockpit is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Cockpit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.

import parent
from testlib import *

class TestSessionRecording(MachineCase):
def testBasic(self):
b = self.browser
self.login_and_go("/session_recording")
b.wait_present('div.container-fluid')
b.wait_text('div.container-fluid', 'Error getting tlog UID from system.')


if __name__ == '__main__':
test_main()
11 changes: 11 additions & 0 deletions tools/cockpit.spec
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ find %{buildroot}%{_datadir}/%{name}/machines -type f >> machines.list
echo '%dir %{_datadir}/%{name}/ovirt' > ovirt.list
find %{buildroot}%{_datadir}/%{name}/ovirt -type f >> ovirt.list

echo '%dir %{_datadir}/%{name}/session_recording' > session_recording.list
find %{buildroot}%{_datadir}/%{name}/session_recording -type f >> session_recording.list

# on CentOS systems we don't have the required setroubleshoot-server packages
%if 0%{?centos}
rm -rf %{buildroot}%{_datadir}/%{name}/selinux
Expand Down Expand Up @@ -329,6 +332,14 @@ The Cockpit components for managing virtual machines.

%files machines -f machines.list

%package session_recording
Summary: Cockpit Session Recording

%description session_recording
Cockpit Session Recording.

%files session_recording -f session_recording.list

%package ovirt
Summary: Cockpit user interface for oVirt virtual machines
Requires: %{name}-bridge >= %{required_base}
Expand Down
3 changes: 3 additions & 0 deletions tools/debian/copyright.template
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ Copyright: Copyright (C) 1994 X Consortium
License: MIT/X11

#NPM# semi-autogenerated records for node_modules/ go here
Files: node_modules/bootstrap-datetime-picker
Copyright: Copyright 2012 Sebastien MALOT
License: Apache 2.0


License: LGPL-2.1
Expand Down