Fixes #37440 - Enable multiple repositories for host registration
Some operating systems do not ship all required packages and need additional repositories to make the host registration work. Therefore, users need to provide more than one repository in order to make the host registration work.
In this PR, we replace the existing text fields for the repository and the gpg key that can be entered for host registration with a modal. The modal contains a list where repository entries can be added and removed from.
The API takes a struct array with repository and GPG key URL instead of two separate values per entry. The GPG key URL entry on the UI is optional. If only a GPG key URL is entered, the entry is ignored.
One thing that needs improvement is the alignment of the header and the input fields inside the modal. Any hints how to do this best are highly appreciated.
I did some tests for AlmaLinux, SLES and Ubuntu. On my tests the rendered global_registration.erb added the provided repositories as expected (with or without GPG key).
Thanks a lot @goarsna , @Manisha15 and @MariaAga
@stejskalleos Could you re-trigger the tests? Some of them were cancelled for some reason.
I again had a look at the changes and again did tests (with Ubuntu and AlmaLinux) with adding two repositories during registration. The repositories were added as expected and the repository modal was behaving as expected. => LGTM
Regarding the failing test: Could the it be caused by a timeout or hickup as it only says "operating was canceled"?