connect-ng

module
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2026 License: LGPL-3.0

README

SUSEConnect-ng

build result

SUSEConnect is a Golang command line tool for connecting a client system to the SUSE Customer Center. It will connect the system to your product subscriptions and enable the product repositories/services locally.

SUSEConnect-ng reduces the size of its runtime dependencies compared to the replaced Ruby SUSEConnect.

SUSEConnect-ng is distributed as RPM for all SUSE distributions and gets built in the openSUSE build service.

Please visit https://scc.suse.com to see and manage your subscriptions.

SUSEConnect-ng communicates with SCC over this REST API.

Build

Requires Go >= 1.21

make build

This will create a out/suseconnect binary.

Build in container

If you don't have a go compiler installed, you can run the build in a container:

docker run --rm -v $(pwd):/connect registry.suse.com/bci/golang:1.21-openssl sh -c "git config --global --add safe.directory /connect; cd /connect; make build"

This will create a out/suseconnect binary on the host.

Testing

You can run all unit tests by running make test. If you then want to run unit tests for a specific package, you can simply run it as you would do for any Go project, for example: go test ./internal/collectors/.

For feature tests you first need to create an .env file in the root directory of the project with the following contents:

BETA_VALID_REGCODE="<regcode>"
BETA_NOT_ACTIVATED_REGCODE="<regcode>"
VALID_REGCODE="<regcode>"
EXPIRED_REGCODE="<regcode>"
NOT_ACTIVATED_REGCODE="<regcode>"

These values can be picked up from Glue's production environment. Once that is done, you can then simply run make feature-tests. This will run a all feature tests inside of a container by using the registration codes as provided by the .env file.

Directories

Path Synopsis
cmd
public-api-demo command
suseconnect command
features
internal
collectors
How to use the collector framework: In the business logic, we would handle the mandatory/optional metrics For hw_infos : we can call this framework on mandatory collectors and send the data to scc For tahoe : we can call this with mandatory collectors.
How to use the collector framework: In the business logic, we would handle the mandatory/optional metrics For hw_infos : we can call this framework on mandatory collectors and send the data to scc For tahoe : we can call this with mandatory collectors.
pkg
connection
Package connection handles communication with the SCC API.
Package connection handles communication with the SCC API.
registration
Package registration holds all the needed data structures and functions in order to register a SUSE product, either in online or offline mode.
Package registration holds all the needed data structures and functions in order to register a SUSE product, either in online or offline mode.
third_party
libsuseconnect command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL