Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YaST integration #79

Merged
merged 43 commits into from
Nov 30, 2021
Merged

Add YaST integration #79

merged 43 commits into from
Nov 30, 2021

Conversation

skazi0
Copy link
Contributor

@skazi0 skazi0 commented Oct 14, 2021

No description provided.

@skazi0 skazi0 changed the title Add readme for YaST integration Add YaST integration Oct 14, 2021
@skazi0 skazi0 requested a review from djoreilly October 14, 2021 11:23
Copy link
Collaborator

@djoreilly djoreilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some questions. I still need to test from yast. Thanks for improving the Ruby side of this.

internal/connect/credentials.go Outdated Show resolved Hide resolved
libsuseconnect/libsuseconnect.go Show resolved Hide resolved
yast/lib/suse/connect/config.rb Outdated Show resolved Hide resolved
yast/README.md Outdated Show resolved Hide resolved
yast/lib/suse/connect/yast.rb Show resolved Hide resolved
yast/test.rb Outdated Show resolved Hide resolved
@skazi0 skazi0 force-pushed the yast-integration-poc branch 4 times, most recently from 501806b to 2783e38 Compare October 14, 2021 22:25
@skazi0
Copy link
Contributor Author

skazi0 commented Oct 14, 2021

rebased

@djoreilly djoreilly mentioned this pull request Oct 15, 2021
@skazi0 skazi0 force-pushed the yast-integration-poc branch 4 times, most recently from 7576c92 to 1023a23 Compare October 19, 2021 10:36
@skazi0 skazi0 force-pushed the yast-integration-poc branch 4 times, most recently from 0eea901 to 7bb214d Compare October 29, 2021 21:06
@skazi0 skazi0 requested a review from djoreilly November 3, 2021 15:53
internal/connect/connection.go Outdated Show resolved Hide resolved
libsuseconnect/libsuseconnect.go Outdated Show resolved Hide resolved
@skazi0 skazi0 marked this pull request as ready for review November 9, 2021 21:12
@skazi0
Copy link
Contributor Author

skazi0 commented Nov 10, 2021

rebased to get package search in

Some additional mapping of Go SSL errors to OpenSSL ones expected by
YaST. This should correctly trigger custom dialogs implemented in YaST
registration and enable automatic import functions for untrusted certs.
Added handling for JSON, Net and Timeout errors expected by YaST.
To avoid redundant implementation of execute(), calling
update-ca-certificates was delegated to Go.
Also extend Repo structure with all fields from API docs.
Add release_type to Product.toQuery() to match original.
Some Unmarshal() calls didn't have the error wrapped correctly.
Is-Base product information is handled differently in different
contexts. Extended unmarshaler joins information from different sources
into one attribute. Default "isbase" is reserved for YaST integration to
match original.
Exported missing function required for migration scenario.
Also added "shortname" attribute to Product as it's used in the YaST UI.
Some debug messages from config parsing were not forwarded to YaST
logger.
Fixed crash when using uninitialized logger function.
Also restored original Logger mixin to make it easier to use logging in
the shim.
SSLCertificate uses only class methods so it requires extend instead of
include for mixins to work correctly.
Added Dockerfile which can be used to run original yast-registration
tests with libsuseconnect and shim injected.
Modified curlrc handling to match original behavior of ignoring errors.
RPM spec file was updated to build libsuseconnect and
suseconnect-ruby-bindings subpackages.
In addition spec file got some minor cleanups and tweaks.
Shared library needs the same dependencies as CLI and while it doesn't
require the CLI iteself it's easier to "Requires" suseconnect-ng to get
all dependencies indirectly.
Additional benefit is that suseconnect-ng will always be installed when
switching from old (Ruby) version to the new one.
@skazi0
Copy link
Contributor Author

skazi0 commented Nov 30, 2021

rebased to pull package-search in

Copy link
Collaborator

@JanZerebecki JanZerebecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only checked the spec file, Makefile, and Dockerfiles. Those look good.

@skazi0 skazi0 merged commit 296ab4a into SUSE:main Nov 30, 2021
@skazi0 skazi0 deleted the yast-integration-poc branch November 30, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants