Commit graph

59 commits

Author SHA1 Message Date
Scott Poore
cba99b097a test: add check for sssd config id_provider proxy
The sssd files provider configuration was changed to use the proxy with
a files proxy library.  Adding a check to the testSessionRecordingConf
test case to confirm expected settings added to config stub when
created.

Signed-off-by: Scott Poore <spoore@redhat.com>
2023-07-19 08:28:35 -04:00
Justin Stephenson
a89d6d646c Tests: Allow invalid non-UTF8 journal messages
The following error is generated on fedora rawhide:

cockpit-ws[12427]: invalid non-UTF8 @data passed as text
to web_socket_connection_send()
2023-07-18 15:07:57 -04:00
Justin Stephenson
bd2765f636 Tests: Update data list to PF5 for testAppMenu 2023-07-18 15:07:57 -04:00
Allison Karlitskaya
804a15b07f Makefile: bump our test/common dependency
... and make use of the new pywrap feature from our test.

Use the same eslint and stylelint plugin configuration as the cockpit
main repo.

Co-authored-by: Katerina Koukiou <kkoukiou@redhat.com>
(cherry picked from commit 2215aa3bf8)
2023-05-31 08:36:26 -04:00
Justin Stephenson
4426f62000 Bump PF5 react-{table, tokens} not in starter kit 2023-05-24 10:45:14 -04:00
Justin Stephenson
b2738e6548 Play after rewind in testFastforwardControls 2023-05-09 13:04:00 -04:00
Justin Stephenson
4367e8dd61 Set TZ to avoid CI failures with testFilter* tests 2023-05-09 09:38:34 -04:00
Justin Stephenson
0ae9d17487 testZoomSpeedControls incorrectly checks scale
Also relax the scale (value) assertion, as the scale value
switches between 0.X values in different environments.
2023-05-08 15:36:34 -04:00
Justin Stephenson
acf2d299ac Fix testSessionRecordingConf
This test creates the sssd config within the test itself
2023-05-08 13:37:21 -04:00
Justin Stephenson
cfd219f31f Read TMT_TEST_DATA variable for LOGS in browser.sh 2023-05-04 13:56:58 -04:00
Justin Stephenson
7414584afe Fix node-modules in run-test.sh 2023-05-03 15:42:27 -04:00
Justin Stephenson
806eeab1f2 Install sssd-proxy in test browser.sh 2023-05-03 14:29:14 -04:00
Justin Stephenson
5b5fc11b94 Add Files path for test recordings 2023-05-03 13:50:09 -04:00
Justin Stephenson
ce70a6d4ee FMF: Run tests together 2023-05-03 11:30:59 -04:00
Justin Stephenson
c3616baaa2 Add executable bit to browser shell scripts 2023-05-03 10:52:41 -04:00
Justin Stephenson
f577208220 Add FMF tests and test scripts 2023-04-28 11:28:25 -04:00
Justin Stephenson
aeb3cb6d8d Remove CentOS condition in testZoomSpeedControls 2023-04-27 14:47:24 -04:00
Justin Stephenson
cc2a205b13 testFastforwardControls update after player-restart
New xterm js accessibility tree no longer displays "Blank line"
2023-04-27 14:47:24 -04:00
Justin Stephenson
527941da25 Switch wait_present to wait_visible
wait_visible() is now deprecated.
2023-04-27 14:47:24 -04:00
Justin Stephenson
235f110ec7 Bring up to date with cockpit starter kit
This encompasses a number of changes to the build process.
2023-04-27 14:47:24 -04:00
Justin Stephenson
39a359bffb Remove unneeded tlog UID code
The tlog UID was being set explicitly to ensure journalctl matches
used during tests would find pre-recorded journals. This is no longer
needed as we removed the TLOG_UID filter from the journalctl match
string.
2022-06-09 10:36:25 -04:00
Justin Stephenson
88a167a89a Tests: Assert pause state with a later command in rec1
On some systems, the 'whoami' command may still show in the terminal output
if the pause does not happen fast enough.
2022-04-19 15:53:33 -04:00
Justin Stephenson
7ac04a4917 Tests: Test SSSD exclude_users and exclude_groups 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
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
255a8bdde1 Set timezone for Logs Correlation test
Fixes a local timezone issue with centos-8-stream
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
0e8f87a000 Add binary recording test 2020-10-09 12:56:58 -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
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
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
Justin Stephenson
4abce7ae8d Fix Downstream gating test issues 2020-05-26 14:51:37 -04:00
Justin Stephenson
cddcb1f40a Replace term.js with xterm.js 2019-08-26 13:17:13 -04:00