-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
322 additions
and
101 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CARD.DOMAIN TYPE MODE STATUS REQUESTS | ||
---------------------------------------------- | ||
01 CEX5C CCA-Coproc online 1 | ||
01.0001 CEX5C CCA-Coproc online 1 | ||
01.0002 CEX5C CCA-Coproc offline 0 | ||
02 CEX7C EP11-Coproc online 6 | ||
02.0001 CEX7C EP11-Coproc online 4 |
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,6 @@ | ||
AES NEW: empty 0x0000000000000000 | ||
AES CUR: invalid 0x0000000000000000 | ||
AES OLD: invalid 0x0000000000000000 | ||
APKA NEW: empty 0x0000000000000000 | ||
APKA CUR: invalid 0x0000000000000000 | ||
APKA OLD: invalid 0x0000000000000000 |
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,9 @@ | ||
AES NEW: empty 0x0000000000000000 | ||
AES CUR: valid 0xd2344556789008 | ||
AES OLD: invalid 0x0000000000000000 | ||
APKA NEW: empty 0x0000000000000000 | ||
APKA CUR: invalid 0x0000000000000000 | ||
APKA OLD: invalid 0x0000000000000000 | ||
ASYM NEW: empty 0x00000000000000000000000000000000 | ||
ASYM CUR: invalid 0x00000000000000000000000000000000 | ||
ASYM OLD: invalid 0x00000000000000000000000000000000 |
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,2 @@ | ||
WK CUR: invalid - | ||
WK NEW: empty - |
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,2 @@ | ||
WK CUR: valid 0xbcd32323232325dbc44312012034455933aaacccbbbb32999abcd123bcdf1098 | ||
WK NEW: empty - |
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
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,49 @@ | ||
#!/usr/bin/env rspec | ||
|
||
# Copyright (c) [2025] 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. | ||
|
||
require_relative "../test_helper" | ||
require "cwm/rspec" | ||
require "y2partitioner/widgets/pervasive_key_selector" | ||
|
||
describe Y2Partitioner::Widgets::PervasiveKeySelector do | ||
subject(:widget) { described_class.new(apqns_by_key, initial_key) } | ||
|
||
let(:all_apqns) { [apqn1, apqn2, apqn3, apqn4, apqn5, apqn6] } | ||
let(:apqns_by_key) { all_apqns.group_by(&:master_key_pattern) } | ||
let(:initial_key) { apqn1.master_key_pattern } | ||
|
||
let(:apqn1) { apqn_mock("01.0001", "0x123") } | ||
let(:apqn2) { apqn_mock("01.0002", "0x456") } | ||
let(:apqn3) { apqn_mock("02.0001", "0x123") } | ||
let(:apqn4) { apqn_mock("03.0001", "0xabcdefgabcde", ep11: true) } | ||
let(:apqn5) { apqn_mock("03.0002", "0x7654321abcde", ep11: true) } | ||
let(:apqn6) { apqn_mock("03.0003", "0x7654321abcde", ep11: true) } | ||
|
||
include_examples "CWM::ComboBox" | ||
|
||
describe "#init" do | ||
it "sets the current key value" do | ||
expect(widget).to receive(:value=).with(initial_key) | ||
|
||
widget.init | ||
end | ||
end | ||
end |
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,37 @@ | ||
#!/usr/bin/env rspec | ||
|
||
# Copyright (c) [2025] 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. | ||
|
||
require_relative "../test_helper" | ||
require "cwm/rspec" | ||
require "y2partitioner/widgets/pervasive_key" | ||
|
||
describe Y2Partitioner::Widgets::PervasiveKey do | ||
subject { described_class.new(initial_key) } | ||
let(:initial_key) { "0x123456" } | ||
|
||
include_examples "CWM::AbstractWidget" | ||
|
||
context "when the key is longer than 20 characters" do | ||
let(:initial_key) { "0x123456789012345678901234567890" } | ||
|
||
include_examples "CWM::AbstractWidget" | ||
end | ||
end |
Oops, something went wrong.