See https://ci.suse.de/job/yast-registration-master/96/display/redirect?page=cha...
Changes:
[mfilka] Try to read reg code from install.inf
[mfilka] Updated changelog
[mfilka] Support for selecting product via install.inf option
[mfilka] Pickup reg code according to selected base product
[mfilka] Improved testsuite
[mfilka] happy rubocop
[mfilka] Moved loading of reg code from install.inf to separate method
[mfilka] Updated testsuite
[mfilka] Made reg_codes_from_install_inf consistent with other reg code loaders
[mfilka] Minor fixes
[mfilka] Updated changelog
[mfilka] Dropped AutoinstConfig build requirement
[mfilka] Refactoring: moved merging of reg code and AY profile into SCC AY client
[mfilka] Happy rubocop
------------------------------------------
[...truncated 123.01 KB...]
[ 11s] returns the SLP server selected by user
[ 11s] returns nil when the SLP dialog is canceled
[ 11s] returns nil in other cases
[ 11s] at AutoYaST installation
[ 11s] returns registration server which has been defined in the AutoYaST configuration file
[ 11s] returns default server if it has not been defined in the AutoYaST configuration file
[ 11s] at AutoYaST upgrade
[ 11s] returns registration server which has been defined in the AutoYaST configuration file
[ 11s] returns default server if it has not been defined in the AutoYaST configuration file
[ 11s] at installed system
[ 11s] return nil (default) if config file is not present
[ 11s] reads the URL from config file if present
[ 11s] at upgrade
[ 11s] returns 'regurl' boot parameter from Linuxrc
[ 11s] the system has been already registered with NCC
[ 11s] return default when NCC registration server was used
[ 11s] when the system has been already registered with SMT server
[ 11s] returns URL of SMT server
[ 11s] returns default URL (nil) when the old URL failed at upgrade
[ 11s] the system has not been registered
[ 11s] calls SLP discovery
[ 11s] returns nil (default URL) when no SLP server is available
[ 11s] in other modes
[ 11s] returns nil (default URL)
[ 11s] .service_url
[ 11s] converts a SLP service to plain URL
[ 11s] .credentials_from_url
[ 11s] returns credentials parameter from URL
[ 11s] returns nil if the URL misses credentials parameter
[ 11s] raises URI::InvalidURIError when URL is invalid
[ 11s] .reset_registration_url
[ 11s] resets cached URL
[ 11s] .slp_discovery
[ 11s] returns SLP services excluding SUSE Manager services
[ 11s] .slp_discovery_feedback
[ 11s] runs SLP discovery with progress message
[ 11s] .boot_reg_url
[ 11s] when a URL was given through Linuxrc
[ 11s] returns that URL
[ 11s] when no URL was given through Linuxrc
[ 11s] returns nil
[ 11s]
[ 11s] Registration::EulaDownloader
[ 11s] .download
[ 11s] downloads the license with translations
[ 11s] it raises an exception when download fails
[ 11s]
[ 11s] Registration::Widgets::RegistrationCode
[ 11s] has help text
[ 11s] initialization
[ 11s] when a previous registration code exists
[ 11s] initializes the widget with it
[ 11s] when no previous registration code exists
[ 11s] initializes the widget with custom url if exists
[ 11s] initializes the widget with the cmdline boot url if no custom url
[ 11s] validation
[ 11s] reports an error in case of a url but not valid one
[ 11s] store
[ 11s] when the value is empty or not an URL
[ 11s] stores the current value
[ 11s] stores as the custom url the default one
[ 11s] tries to register to the default url
[ 11s] when the value is a valid URL
[ 11s] stores the custom url and an empty registration code
[ 11s] tries to register to the given URL
[ 11s] #register
[ 11s] skips registration if empty and returns false
[ 11s] skips registration if already registered and returns false
[ 11s] skips registration if not base product, reports and error and returns false
[ 11s] returns false if registration fails
[ 11s] saves the state of the system registration if success and returns true
[ 11s]
[ 11s] Registration::UI::MigrationSelectionDialog
[ 11s] .run
[ 11s] displays the possible migrations and returns the user input
[ 11s] saves the entered values when clicking Next
[ 11s] displays an error when the selected migration contains an unavailable product
[ 11s] displays a product summary
[ 11s]
[ 11s] Registration::UI::AddonSelectionRegistrationDialog
[ 11s] #initialize
[ 11s] sets the beta filter to the previous state
[ 11s] .run
[ 11s] returns response from addon selection according to pressed button
[ 11s] returns `:skip` if no addon is selected and user click next
[ 11s] returns `:next` if some addons are selected and user click next
[ 11s] works in textmode
[ 11s] recomputes auto_selection after each widget change
[ 11s] a recommended addon is available
[ 11s] preselects the recommended addons
[ 11s] does not preselect the recommended addons if something is already selected
[ 11s] does not preselect the recommended addons if something is already registered
[ 11s] when beta versions are not filtered
[ 11s] sets the filter as not checked in the UI
[ 11s] displays beta add-ons
[ 11s] when beta versions are filtered
[ 11s] sets the filter as checked in the UI
[ 11s] does not display beta add-ons that are not registered
[ 11s] display registered beta add-ons
[ 11s] displays recommended beta add-ons
[ 11s] when there is no beta versions to filter
[ 11s] shows no filter in the UI
[ 11s] #handle_dialog
[ 11s] filters beta releases
[ 11s]
[ 11s] Registration::EulaReader
[ 11s] #current_language
[ 11s] returns the current language if there is a license for it
[ 11s] returns the country fallback if the current language is missing
[ 11s] returns 'en_US' fallback if the current language and country is missing
[ 11s] returns 'en' fallback if 'en_US' fallback is missing
[ 11s] returns any present translation when no English fallback is found
[ 11s]
[ 11s] discover_registration_services client
[ 11s] when no SLP server is annnounced
[ 11s] returns nil and does not ask the user
[ 11s] when a SLP server is present
[ 11s] returns the SLP server selected by user
[ 11s] returns :cancel when the SLP dialog is canceled
[ 11s]
[ 11s] Registration::UI::BaseSystemRegistrationDialog
[ 11s] .run
[ 11s] runs the dialog
[ 11s] #run
[ 11s] when system is not registered
[ 11s] when user enters a correct regcode
[ 11s] registers the base system with provided email and reg. code
[ 11s] when user enters a wrong regcode
[ 11s] does not register the system
[ 11s] when user sets a registration URL through regurl= parameter
[ 11s] uses the given URL to register the system
[ 11s] when user enters a local SMT server
[ 11s] registers the system via local SMT server
[ 11s] when user enters an invalid local SMT server
[ 11s] shows an error and does not try to register the system
[ 11s] when user skips registration
[ 11s] does not try to register the system and close the dialog
[ 11s] when system is already registered
[ 11s] in installation mode
[ 11s] disables widgets
[ 11s]
[ 11s] Registration::FinishDialog
[ 11s] #run
[ 11s] raises RuntimeError if unknown action passed as first parameter
[ 11s] first paramater "Info"
[ 11s] returns info entry hash with scenarios in "when" key
[ 11s] first parameter "Write"
[ 11s] do nothing if system is not registered
[ 11s] creates at target system configuration for suse connect
[ 11s] restores the repository setup
[ 11s]
[ 11s] Registration::UI::RegistrationUpdateDialog
[ 11s] .run
[ 11s] updates system registration, base and add-on products
[ 11s]
[ 11s] Registration::UI::MigrationReposSelectionDialog
[ 11s] .run
[ 11s] displays the configured repositories and returns the user input
[ 11s] configures the selected repositories for distribution upgrade
[ 11s] starts the repository manager when the respective button is pressed
[ 11s]
[ 11s] scc client
[ 11s] the system is already registered
[ 11s] returns :abort when closing the status dialog
[ 11s]
[ 11s] Yast::InstSccClient
[ 11s] the system is already registered
[ 11s] returns :abort when closing the status dialog
[ 11s] displays an error when loading the available extensions fails
[ 11s] goes back to initial screen when aborting selection of url
[ 11s] the system is updating reusing old credentials
[ 11s] switchs to manual registration when aborting selection of url
[ 11s]
[ 11s] Registration::RegistrationUI
[ 11s] #register_system_and_base_product
[ 11s] registers the system using the provided registration code
[ 11s] #get_available_addons
[ 11s] returns available addons
[ 11s] #update_system
[ 11s] updates the system registration with the new target distro
[ 11s] resets registration credentials and registration url in case of failure
[ 11s] #update_base_product
[ 11s] updates the base product registration
[ 11s] resets registration credentials in case of failure
[ 11s] #register_addons
[ 11s] when the addons are free
[ 11s] does not ask for reg. code if all addons are free
[ 11s] returns :next if everything goes fine
[ 11s] returns :back if some registration failed
[ 11s] when the addons need reg. code
[ 12s] returns :next if everything goes fine
[ 12s] keep asking for a reg. code if some reg. code failed
[ 12s] #migration_products
[ 12s] returns migration products from the server with UI feedback
[ 12s] #downgrade_product
[ 12s] displays UI feedback and downgrades the product
[ 12s] #synchronize_products
[ 12s] displays UI feedback and synchronizes the products
[ 12s] registered_addons_to_rollback
[ 12s] returns an empty array in case of not 'registered but not installed' addons
[ 12s] returns an empty array if the user doesn't want to rollback the obtained addons
[ 12s] returns an array with all the registered but not installed addons if user accepts
[ 12s]
[ 12s] Registration::UI::ImportCertificateDialog
[ 12s] .run
[ 12s] displays the certificate details and returns the user input
[ 12s]
[ 12s] Failures:
[ 12s]
[ 12s] 1) Registration::SslCertificate.update_instsys_ca adds new certs under anchors to system CA certificates
[ 12s] Failure/Error: CERT_LINKS.each { |l| expect(ca_dir.join(subdir, l)).to be_symlink }
[ 12s] expected `#Pathname:/tmp/d20180110-32522-1kb64kn/pem/8820a2e8.0.symlink?` to return true, got false
[ 12s] # ./test/ssl_certificate_spec.rb:77:in `block (5 levels) in