Commit graph

182 commits

Author SHA1 Message Date
Justin Stephenson
c48e7f69d1 Config: Add SSSD exclude_users and exclude_groups
Add configuration functionality to allow sssd exclude_users, and
exclude_groups configuration options. These options are only
applicable when scope=all. Refer to man sssd-session-recording(5)
2021-09-10 12:45:12 -04:00
Justin Stephenson
2fe72717b2 TESTS: Fix testSessionRecordingConf cleanup issue
Run SSSD session recording scope=none test last
to leave system in working state.
2021-08-16 12:14:28 -04:00
Justin Stephenson
d3110ea7ef TESTS: Restart SSSD after restoring config 2021-08-12 14:06:51 -04:00
Justin Stephenson
7092e13518 TESTS: Allow metainfo journal error 2021-08-12 11:56:11 -04:00
Matej Marusak
d2708cf533 test: Enter session-recording page
Cockpit can have multiple pages opened at the same time. This is
handled through iframes. When switching between pages we need to tell
tests that we will be now working with different iframe.

Before this test was checking `b.wait_present("#app")` in `/apps` page
and not in `/session-recording` page.
2021-08-12 09:27:57 -04:00
Justin Stephenson
f7b2bdccda Tests: Fix RHEL9 filter test timing failures 2021-07-21 11:28:07 -04:00
Justin Stephenson
d038d2bd55 Throttle journalctl restarts
This addresses an issue with typeahead search generating a significant
load on the system, a single filter test run can make ~100 calls to
journalctl restart if not throttled.
2021-07-14 23:22:19 -04:00
Justin Stephenson
6379950582 CI: Update TEST_OS fedora version 2021-07-07 14:15:26 -04:00
Justin Stephenson
7ff310a705 Fix CentOS 8 stream test journal messages
audit: type=1400 audit(1625668755.740:6): avc:  denied  { getattr } for
pid=1589 comm="systemctl" name="/" dev="vda1" ino=128
scontext=system_u:system_r:cockpit_ws_t:s0
tcontext=system_u:object_r:fs_t:s0 tclass=filesystem permissive=0
2021-07-07 14:15:26 -04:00
Justin Stephenson
2c16ca3e2f Add selector conditional in testZoomSpeedControls
Fixes downstream failure
2021-04-28 11:29:21 -04:00
Justin Stephenson
e561f18f56 spec: Add BuildRequires: make
See https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-13 10:50:55 -05:00
Justin Stephenson
370f58c543 Update changelog 2021-01-13 10:50:55 -05:00
Justin Stephenson
255a8bdde1 Set timezone for Logs Correlation test
Fixes a local timezone issue with centos-8-stream
2021-01-13 10:01:00 -05:00
Justin Stephenson
fcfc5f40f8 Install cockpit-packagekit in local VM
Fix testAppMenu when running make check locally
2021-01-13 10:01:00 -05:00
Scott Poore
74bc71b190 Add Applications Menu test
testAppMenu navigates to the Applications menu before connecting to the
Session Recording page.

Update to semaphone job config to add cockpit-packagekit for Fedora 32
and Centos 8
2020-11-19 13:42:56 -05:00
Justin Stephenson
e504489ab0 Use journalctl --utc for Logs view to handle DST 2020-11-05 09:32:48 -05:00
Justin Stephenson
819da4d495 Remove bots sudo rm from Makefile 2020-11-04 21:34:59 -05:00
Justin Stephenson
0e8f87a000 Add binary recording test 2020-10-09 12:56:58 -04:00
Justin Stephenson
ada0bacaed test: Bump testlib to 229 2020-10-06 10:15:05 -04:00
Benjamin Graham
cf618957af Updated CI to work with patternfly update
* added multiple log artifacting
* fixed component ids and classes to match patternfly
2020-07-24 12:53:46 -04:00
Benjamin Graham
aa63c3871c Updated UI to use patternfly
* Removed unused css files
* Converted all UI elements to patternfly 4
* Implemented config page under same app
* Replaced slider with patternfly `Progress` component
2020-07-24 12:53:46 -04:00
Benjamin Graham
46ad9834b3 Updated dependencies to match latest starterkit
* removed unused dependencies
* updated dependencies to match starterkit
* updated build pipeline
2020-07-24 12:53:46 -04:00
Martin Pitt
7eada9f82a metainfo: Fix launchable and update description
`<launchable>` must coincide with the actual URL path defined by the
manifest.

Remove the period from <summary>, as the spec [1] suggests. Also remove
the redundant "Provides". This makes Cockpit's "Applications" page more
consistent.

[1] https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#sect-Metadata-GenericComponent

https://bugzilla.redhat.com/show_bug.cgi?id=1856639
2020-07-14 08:36:43 -04:00
Benjamin Graham
bc24785d98 Added artifact collection upon failure 2020-06-18 10:57:29 -04:00
Benjamin Graham
7d9391da3f Added testing for username and time filtering
Gave search box ids for ease of access, fixed date input bug, and added tests
`testFilterUsername`, `testFilterSince`, and `testFilterUntil`
2020-06-18 10:57:29 -04:00
Benjamin Graham
0a85319c5e Added search testing
Added test `testSearch`
2020-06-16 22:42:46 -04:00
Benjamin Graham
36173c8b9c Added test for zooming while playing at 16x
Added test `testZoomSpeedControls`
2020-06-16 22:42:46 -04:00
Benjamin Graham
8275cca551 Added log correlation testing
Added `testLogCorrelation`
2020-06-16 22:42:46 -04:00
Benjamin Graham
11fd640fe5 Fixed download error in testSessionRecordingConf 2020-06-09 13:03:54 -04:00
Benjamin Graham
7592ce8ab0 Adding a semaphore workflow to run CI 2020-06-09 13:03:54 -04:00
Benjamin Graham
fe02babb2f Simplified testing functions
Added helper functions to make tests smaller and less repetative
2020-06-03 12:30:28 -04:00
Benjamin Graham
95c92fd984 Added test for cockpit session display drag
Created testDisplayDrag to test the initialization and effect of
enabling display drag
2020-06-03 10:20:33 -04:00
Benjamin Graham
c4d2ec525b Added test for pause button and config file saving
Added the tests `testPlaybackPause` and `testSessionRecordingConf`
2020-06-03 10:00:11 -04:00
Benjamin Graham
de0b26f1e4 Removed unnecessary calls to wait_timeout 2020-06-03 10:00:11 -04:00
Benjamin Graham
5283e234a1 Fixed and simplified tests
Gave buttons IDs for ease of access, fixed `fit-to` testing to
better reflect purpose, and fixed occasional timing error in
`testSkipFrame` caused by call overlap
2020-06-03 10:00:11 -04:00
Benjamin Graham
019f61fda1 Bump cockpit test version from 199 to 219
Calls to `allow_authorize_journal_messages` are no longer needed
2020-06-03 10:00:11 -04:00
Benjamin Graham
78c850acf3 Fixed timezone issue by searching in client time 2020-06-01 15:15:56 -04:00
Justin Stephenson
179fb8c5e6 Use --all journalctl option
journalctl encodes fields with "non-printable" characters,
like unicode control characters, as an array.

This ensures that the tlog MESSAGE field is shown in full using
the journalctl API.
2020-05-28 11:05:46 -04:00
Justin Stephenson
4abce7ae8d Fix Downstream gating test issues 2020-05-26 14:51:37 -04:00
Justin Stephenson
395cbdc2c9 Move code out of deprecated componentWillUpdate()
> warning: Warning: componentWillUpdate has been renamed, and is not
recommended for use. See https://fb.me/react-unsafe-component-lifecycles
for details.

* Move data fetching code or side effects to componentDidUpdate.
2020-04-27 16:49:36 -04:00
Justin Stephenson
6a7f6805d9 Move code out of deprecated componentWillMount()
> warning: Warning: componentWillMount has been renamed, and is not
recommended for use. See https://fb.me/react-unsafe-component-lifecycles
for details.

* Move code with side effects to componentDidMount, and set initial
state in the constructor
2020-04-27 16:49:36 -04:00
Justin Stephenson
5a6e0beb53 Don't clobber cockpit bots directory 2020-04-21 13:57:27 -04:00
Justin Stephenson
198e49cfff Handle byte-array encoded journal data
Journalctl json output formats field values as JSON strings with the
exception:

  Fields containing non-printable or non-UTF8 bytes are encoded as arrays
  containing the raw bytes individually formatted as unsigned numbers.
2020-04-21 13:53:48 -04:00
Justin Stephenson
564c9c25f7 Fix rpmmacro to resolve correct path on CentOS7 2020-04-21 13:24:20 -04:00
Matej Marusak
ca14ae94ec manifest: Define documentation url 2020-02-03 11:38:06 -05:00
Matej Marusak
4bdbec47fb manifest: Define keywords 2020-02-03 11:38:06 -05:00
Matej Marusak
bd2e75f7ee manifest2po: Parse also docs from manifest 2020-02-03 11:38:06 -05:00
Matej Marusak
adc5913b76 manifest2po: Parse also keywords from manifest 2020-02-03 11:38:06 -05:00
Matej Marusak
7032a2e74f Remove unused 'manifest.json.in' 2020-02-03 11:38:06 -05:00
Justin Stephenson
d2a9be4564 Update parent id in metainfo file 2020-01-13 10:00:41 -05:00