Commit graph

204 commits

Author SHA1 Message Date
Jelle van der Waa
95723f2817 Makefile: Adjust to changed rpmspec -q behaviour
Fedora 37's rpmspec changed behaviour: `-q` now shows the source RPM
name instead of the binary one. `--srpm` and `--rpms` don't influence
this behaviour any more. So get along with both variants.
2023-02-06 15:02:28 -05:00
Martin Pitt
9e482dab7d Use standard "translate" marker in HTML
Cockpit's test-static-code complains about `translatable`, so let's use
the correct attribute to avoid spreading it further.
2023-02-06 15:02:28 -05:00
Justin Stephenson
92f3b7b75d Update dependencies excluding Patternfly
Update to webpack 5
2023-01-16 08:55:35 -05: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
6f5ec24e16 Drop moment.js dependency
Addresses CVE-2022-24785
2022-05-19 14:17:07 -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
e716567dfc CI: Update image to ubuntu 20.04 2022-04-19 15:14:37 -04:00
Justin Stephenson
bab09074b3 Enable SSSD files domain unconditionally
Use authselect to update nsswitch to work with files domain
2022-04-18 10:35:58 -04:00
Justin Stephenson
da32f4f344 Avoid crash in unmount if journal is null 2021-11-17 13:55:10 -05:00
Justin Stephenson
1d81c8e828 Sync Makefile closer to starter-kit 2021-11-17 13:05:47 -05:00
Katerina Koukiou
c855f12deb Use current babel/eslint integration
Fixes these `npm install` warnings:

> deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
> deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin

Cherry-picked from starter-kit commit 0e608d562a
2021-11-17 13:05:47 -05:00
Katerina Koukiou
fec5fd1ae7 Use Flex layout for spacing the two config cards in the config page 2021-11-17 13:05:47 -05:00
Katerina Koukiou
3244a4c37d Use Page/PageSection/Breadcrumb patternfly components to make the app aligned with the PF design guidelines 2021-11-17 13:05:47 -05:00
Katerina Koukiou
3ebdcfa4fe Move to xz dist tarballs
For consistency with the already xz'ed node tarball.

Rename the oddly named `dist-gzip` target to the standard `dist`.

Cherry-picked from starter-kit commit 4ca75f143c
2021-11-17 13:05:47 -05:00
Katerina Koukiou
47c1eb0804 Remove unused slider.html file 2021-11-17 13:05:47 -05:00
Katerina Koukiou
8b9f7f490e package.json: explicitely depend on @patternfly/react-icons otherwise we get an import error 2021-11-17 13:05:47 -05:00
Katerina Koukiou
03a5445b35 webpack: Use relative resolve path for npm 7 compatibility
npm 7 changed how it resolves dependencies, and cockpit-machines fails
to build with lots of unresolved peer dependencies of PatternFly.

With an absolute path, `resolve.modules` will only look in that
directory; the default is a relative path "node_modules" that just
works [1]. We need to keep the `$SRCDIR` support, but convert the path
to a relative one to keep the old recursive search behaviour.

This magically fixes the label alignment in dialogs, update the pixel
test references accordingly.

[1] https://webpack.js.org/configuration/resolve/#resolvemodules

See also a117600dff
2021-11-17 13:05:47 -05:00
Katerina Koukiou
abc5922946 package.json: update patternfly packages 2021-11-17 13:05:47 -05:00
Katerina Koukiou
4be61896ea package.json: use sass instead of node-sass
node-sass is a compiled ELF module, which is problematic for
distributions that want to rebuild everything from source. The sassc CLI
program is packaged everywhere, and both use the same libsass library.

So drop node-sass and replace it with sass which is also what cockpit
and other external plugins are using.

Port alerts in PF-react-core and fix missing icons in alerts
2021-11-17 13:05:47 -05:00
Katerina Koukiou
e13c9d1bf3 Fetch pkg/lib automatically from cockpit instead of keeping a local copy
* remove mustache module as it's not used anymore.
* port alert component to react-core as the current code creates a
broken UI
2021-11-17 13:05:47 -05:00
Justin Stephenson
e49176b966 Update Docker image and TEST_OS run to Fedora 35 2021-11-16 08:54:31 -05:00
Justin Stephenson
7ac04a4917 Tests: Test SSSD exclude_users and exclude_groups 2021-09-10 12:45:12 -04:00
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