Commit graph

26 commits

Author SHA1 Message Date
Viktor Szépe
5ff1ec08a0
Fix typos throughout codebase (#23813)
Several typos and common misspellings of words exists throughout Cockpit. This fixes the spellings.
2026-10-14 14:02:30 +02:00
Jelle van der Waa
a9ed56117d networkmanager: Disable activating new connections
When adding a new virtual network interface (bond,bridge,vpn) or
configuring a new connection (e.g. ethernet/wifi) don't activate it
directly but allow a system administrator to configure it first.

This behaviour is similar to what GNOME does when adding new network
interfaces.

Closes: https://redhat.atlassian.net/browse/RHEL-34153
2026-08-12 09:21:32 +02:00
Jelle van der Waa
15e8166e19 networkmanager: Navigate to interface after creation
After creating a Bond/VPN/Team/VLan interface navigate to interface
details page so the user can further configure the interface itself.

In a follow up commit the connection will be disabled on creation so
navigating to it will make that more clear.
2026-07-01 09:43:29 +02:00
Jelle van der Waa
8289c0e34a test: Drop Ubuntu 2204 test workarounds 2026-05-13 18:13:44 +02:00
Marius Vollmer
048a9c3ade test: Remove "memory_mb" provision parameter when less than 1G
Let's not try to use machines with less RAM than the default, which is
a little bit more than 1G.  Recent centos-10 images fail to boot with
less than 1G.
2026-02-06 13:54:57 +02:00
Jelle van der Waa
a91f855457 test: use existing data-* attributes for wireguard tests 2025-12-08 14:05:47 +01:00
Jelle van der Waa
2693e61d61 test: switch to wait_in_text/wait_text from wait_visible
In these cases the selector is already strong enough for us not to have
to rely on Sizzle.
2025-11-25 16:13:34 +01:00
tomasmatus
adbc8f3d87 networking: stop using deprecated addresses endpoint, improve validation
replace following properties on IP and IPv6 objects
addresses -> addressData + gateway
routes -> route-data
dns -> dns-data

dns-data is available since NM 1.42.0 so also keep support for older
dns prop as it is required on ubuntu-2204.

ipaddr.js is used to validate addresses so cockpit does not only rely on
network manager to handle this.
2025-09-17 14:17:51 +03:00
tomasmatus
d883beadbb networking: add IPv6 configuration to Wireguard modal
fixes: #20270
2025-08-14 20:30:02 +02:00
tomasmatus
1a0c4d4768 networking: shorten IPv6 following RFC 5952
fixes: #22046
https://issues.redhat.com/browse/RHEL-97552
2025-08-07 14:49:43 +03:00
Jelle van der Waa
acfb4d013b test: use system package manager for removing packages
Prepare our tests for the eventual removal of PackageKit from RHEL and
switch to dnf5daemon for the "on demand install dialog".
2025-07-30 23:53:41 +02:00
Jelle van der Waa
4b2391d1f0 test: disable preloading of packagekit for Wireguard test
Starting this test with limited memory runs into dnf-restart memory
issues on RHEL-10-1 which flakes around ~ 20% of the time.
2025-07-30 22:28:24 +02:00
Jelle van der Waa
d2b51f312d test: drop Arch Linux PackageKit repository workaround 2025-07-28 13:20:36 +02:00
Jelle van der Waa
3483f0c1f5 test: enable wireguard tests on centos/rhel-10 2025-05-15 15:42:02 +02:00
Freya Gustavsson
8db6565337 lib: Update to Patternfly v6
Huge team-effort to redesign Cockpit with Patternfly v6 in mind and to
reduce the amount of hacks and legacy code we have. This also paves the
way to further improve Patternfly itself by keeping up-to-date with
their latest releases.

Commit includes codemod changes, updated tests, improved layout for
desktop and mobile, as well as inline-comments here and there for what
we need to fix.

Co-authored-by: Garrett LeSage <garrett@redhat.com>
Co-authored-by: Tomas Matus <tomatus777@gmail.com>
Co-authored-by: Martin Pitt <mpitt@redhat.com>
Relates-to: #21651, #20973

https://issues.redhat.com/browse/COCKPIT-1266
2025-03-24 12:12:46 +01:00
Martin Pitt
cf38f8619d test: Drop rhel4edge special cases
That image was removed in
https://github.com/cockpit-project/bots/commit/0700c461cb99b6
2024-08-19 09:40:41 +02:00
Martin Pitt
e4ae43ffc0 test: Drop CentOS 8 special cases
CentOS 8 is EOL, we have stopped running c8s tests on cockpit main long
ago, and the image got removed in
https://github.com/cockpit-project/bots/pull/6348
2024-05-07 14:55:37 +02:00
Martin Pitt
ae44e9457f test: Adjust special cases for CentOS/RHEL 10
- Generalize the nginx skip (it's also not installed on
   centos-9-stream, we just never have started to test it there on our
   CI)
 - vdo and wireguard are not currently available in RHEL 10
 - NM team devices are not supported, see
   https://issues.redhat.com/browse/RHEL-33026
2024-04-19 09:27:41 +02:00
Martin Pitt
0bf52a4fcd test: Skip NM config file hack test in TestWireGuard
Ubuntu ≥ 23.04 (mantic) integrates netplan into NetworkManager much more
tightly. The primary config is now in netplan. That particular check
just concerns our internal error handling of the networking page, and
it's enough to run it on one OS. Skip this on all Ubuntus, so that we
won't trip over this again once we move ubuntu-2204 to -2404.
2023-12-11 22:14:23 +01:00
Martin Pitt
9613e51549 test: Use defined constants instead of repeated values in TestWireGuard 2023-12-11 22:14:23 +01:00
Jelle van der Waa
5ac51ecd0d test: Fix unintentional ignoring of console errors
Commit ccab549331 broke the checking of browser errors, as with an
unset `$TEST_ALLOW_JOURNAL_MESSAGES` (which is the case in our CI) it
was adding the empty string as allowed pattern, which always matches.

Ignore the React errors that happen with our current code,  and add some
explanations. We have so many of them that we can't fix all of them in
one go, but we have to put a stop to introducing new ones. Some of them
are test specific.

Co-Authored-By: Martin Pitt <mpitt@redhat.com>
2023-10-18 08:24:24 +02:00
Subho
7fce27997c test: configure wireguard server side using the browser object 2023-10-16 18:29:58 +02:00
Subho
f823dfe68b networking: trim spaces before submitting wireguard dialog
For some properties like `public-key` NM doesn't mind extra spaces, but
for others it might complain about passing invalid input. Fix it by
removing the spaces before sending it to NM.
2023-09-27 11:58:47 +02:00
Subho
d067cfe481 test: use delete sed command instead of substitute
It is simply more suitable and readable.
2023-09-27 11:58:47 +02:00
Subho
af7ea65ad8 networking: fix page crash when wg properties go missing
Though the original issue #19384 used wg-quick to configure wireguard, I
was unable to reproduce the issue with it, unless I created a brand new
connection which seems unnecessary as the tests already had a profile
configured. Using `sed` to edit wg keyfile and reproduce should be
equivalent.

Other wireguard properties `endpoint` and `listen-port` are either
optional or have a default value, so the /network page shouldn't break
if they're not set. Missing or invalid `public-key` is equivalent to no
peer, so it shouldn't break /network page as well.

fixes #19384
2023-09-27 07:45:00 +02:00
Subho
84096195ab networking: Add support for WireGuard 2023-09-13 11:36:49 +02:00