Skip to content

Commit 88dc7eb

Browse files
committed
Remove scc system sync checkbox
1 parent f285be7 commit 88dc7eb

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

spec/rmt/wizard_scc_page_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
describe RMT::WizardSCCPage do
2424
subject(:scc_page) { described_class.new(config) }
2525

26-
let(:config) { { 'scc' => { 'username' => 'user_mcuserface', 'password' => 'test', 'sync_systems' => true } } }
26+
let(:config) { { 'scc' => { 'username' => 'user_mcuserface', 'password' => 'test', 'sync_systems' => false } } }
2727

2828
describe '#render_content' do
2929
it 'renders UI elements' do
@@ -34,7 +34,6 @@
3434

3535
expect(Yast::UI).to receive(:ChangeWidget).with(Id(:scc_username), :Value, config['scc']['username'])
3636
expect(Yast::UI).to receive(:ChangeWidget).with(Id(:scc_password), :Value, config['scc']['password'])
37-
expect(Yast::UI).to receive(:ChangeWidget).with(Id(:scc_sync_systems), :Value, config['scc']['sync_systems'])
3837

3938
scc_page.render_content
4039
end
@@ -80,7 +79,6 @@
8079
before do
8180
expect(Yast::UI).to receive(:QueryWidget).with(Id(:scc_username), :Value)
8281
expect(Yast::UI).to receive(:QueryWidget).with(Id(:scc_password), :Value)
83-
expect(Yast::UI).to receive(:QueryWidget).with(Id(:scc_sync_systems), :Value)
8482
end
8583

8684
context "when SCC credentials aren't valid and the error is not ignored" do

src/lib/rmt/wizard_scc_page.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ def render_content
5252
HSquash(
5353
MinWidth(30, Password(Id(:scc_password), _('Organization &Password')))
5454
),
55-
VSpacing(1),
56-
CheckBox(Id(:scc_sync_systems), _('Forward systems to SCC')),
5755
VSpacing(1)
5856
),
5957
HSpacing(1)
@@ -70,7 +68,6 @@ def render_content
7068

7169
UI.ChangeWidget(Id(:scc_username), :Value, @config['scc']['username'])
7270
UI.ChangeWidget(Id(:scc_password), :Value, @config['scc']['password'])
73-
UI.ChangeWidget(Id(:scc_sync_systems), :Value, @config['scc']['sync_systems'])
7471
end
7572

7673
def abort_handler
@@ -80,7 +77,7 @@ def abort_handler
8077
def skip_handler
8178
@config['scc']['username'] = UI.QueryWidget(Id(:scc_username), :Value)
8279
@config['scc']['password'] = UI.QueryWidget(Id(:scc_password), :Value)
83-
@config['scc']['sync_systems'] = UI.QueryWidget(Id(:scc_sync_systems), :Value)
80+
@config['scc']['sync_systems'] = false
8481

8582
return unless Popup.AnyQuestion(
8683
_('Skip SCC registration?'),
@@ -97,7 +94,7 @@ def skip_handler
9794
def next_handler
9895
@config['scc']['username'] = UI.QueryWidget(Id(:scc_username), :Value)
9996
@config['scc']['password'] = UI.QueryWidget(Id(:scc_password), :Value)
100-
@config['scc']['sync_systems'] = UI.QueryWidget(Id(:scc_sync_systems), :Value)
97+
@config['scc']['sync_systems'] = false
10198

10299
return unless scc_credentials_valid? || Popup.AnyQuestion(
103100
_('Continue with invalid credentials?'),

0 commit comments

Comments
 (0)