-
Notifications
You must be signed in to change notification settings - Fork 44
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
D-Bus API for registration #791
Merged
Merged
Changes from 5 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
b48ae86
[service] Some renames in Software D-Bus API
joseivanlopez 8bbd567
[service] WIP Registration D-Bus API
joseivanlopez c39c376
add registration mock class
jreidinger e50337b
[service] Replace Validation by Issues interface
joseivanlopez c5535f7
[service] Fix names
joseivanlopez 851e85f
[service] WIP return error number and message
joseivanlopez 9300a72
initial forst working POC
jreidinger 12102fd
[service] More fixes to adapt to changes in D-Bus API
joseivanlopez 78c4df0
[web] Adapt UI to D-Bus API changes
joseivanlopez 8ac9699
use suse connect directly without yast
jreidinger cdc9bb4
[service] Work on some tests
joseivanlopez f16b07e
[service] Small fixes
joseivanlopez 94dd896
[service] Improve generation of connect result
joseivanlopez b0734a5
fix missing require
jreidinger 551a643
make rubocop happy
jreidinger 4098011
fix typo
jreidinger 834a7dc
drop removed method from y2-registration
jreidinger d875395
try registation without release type
jreidinger 861c202
[service] Small improvements
joseivanlopez 719d421
[service] Fix tests
joseivanlopez 9881d89
[service] Continue working on the D-Bus API
joseivanlopez 4f90278
support deregister
jreidinger fe89d84
[service] Add registration issue
joseivanlopez 7ccfa41
add to deregister also code
jreidinger 60ab7ba
fix typo and order
jreidinger 18f5de9
fix base product cannot be deactivated
jreidinger a4cc72b
remove credentials file
jreidinger 895a092
properly uninitialize internal variables
jreidinger cd6a22b
[service] Add Product and ProductBuilder
joseivanlopez b50ac90
[service] Adapt manager to use products
joseivanlopez 66c509a
[service] Register selected product instead of hardcoded
joseivanlopez b36e988
[service] Add version to config file
joseivanlopez c3a1422
Merge branch 'master' into registration-dbus-api
joseivanlopez 3632f6a
[web] Fix pattern selector
joseivanlopez c4dcbb9
add pkg related stuff after registration
jreidinger 61147b7
fix crash for unknown version
jreidinger 72cbf53
fix crash for wrong namespace
jreidinger 9275479
fix typos
jreidinger bede9c3
add service specific credentials file
jreidinger a7b856d
[service] Improve documentation
joseivanlopez db7567a
[service] Rubocop
joseivanlopez ef1a0f2
[service] Minor fixes and tests
joseivanlopez dfd547f
[service] Prevent change of product if needed
joseivanlopez dd866c7
[service] Document Registration D-Bus interface
joseivanlopez 6c4c742
[service] Partially document Software D-Bus interface
joseivanlopez 2bb1a00
[service] Fix D-Bus documentation
joseivanlopez cc4ba95
[web] Fix tests
joseivanlopez 88141e1
[rust] Adapt to Software D-Bus changes
joseivanlopez 4032595
[rust] Use better error name
joseivanlopez 70b2def
move service operations to software and fix target init
jreidinger 5a38dac
fix namespace
jreidinger 254dfe4
add dependency on suse connect it is used
jreidinger 6c6cba2
[service] Export a separate product object
joseivanlopez fe0d63b
[web] Adapt software client
joseivanlopez 7b1cd3c
[service] Unit tests and minor fixes
joseivanlopez 5c3809a
copy credentials in installation
jreidinger 0b21ca7
[service] Registration tests and minor fixes
joseivanlopez 0814460
[service] Add missing check
joseivanlopez 691f71c
[service] Use ruby-dbus 0.23.1
joseivanlopez a2c702b
[service] Update D-Bus documentation
joseivanlopez 7317e61
[web] Fix tests
joseivanlopez c99a98e
run probe and propose after registration/deregistration
jreidinger 133acc8
fix return statement
jreidinger aa57609
[rust] Adapt software proxies and client
joseivanlopez 847952e
[service] Rubocop
joseivanlopez 56d8935
Merge branch 'master' into registration-dbus-api
joseivanlopez a78702b
Add missing package to setup script
joseivanlopez aa32a97
fix writting credentials to target system
jreidinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) [2024] SUSE LLC | ||
# | ||
# All Rights Reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of version 2 of the GNU General Public License as published | ||
# by the Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
# more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, contact SUSE LLC. | ||
# | ||
# To contact SUSE LLC about this file by physical or electronic mail, you may | ||
# find current contact information at www.suse.com. | ||
|
||
module Agama | ||
# Handles everything related to registration of system to SCC, RMT or similar | ||
class Registration | ||
attr_reader :reg_code | ||
attr_reader :email | ||
|
||
# initializes registration with instance of software manager for query about products | ||
def initialize(software_manager) | ||
@software = software_manager | ||
end | ||
|
||
def register(code, email: nil) | ||
end | ||
|
||
def deregister | ||
end | ||
|
||
def disabled? | ||
end | ||
|
||
def optional? | ||
end | ||
end | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when we touch it we probably also need to solve issue with version...as there can be two products with same name and different version like it happen with micro based on some SP. And registration need version....maybe product should be tuple of strings with name and version?