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

Display network configuration in the summary screen for NetworkManager #1198

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions package/yast2-network.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Apr 8 09:27:47 UTC 2021 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Display the network configuration in the installation summary
screen even if NetworkManager is the selected backend
(bsc#1181354).
- 4.4.1

-------------------------------------------------------------------
Wed Apr 7 11:27:26 UTC 2021 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-network
Version: 4.4.0
Version: 4.4.1
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
4 changes: 2 additions & 2 deletions src/lib/network/clients/network_proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def preformatted_proposal

proposal_text = switch_backend_link
proposal_text << toggle_virt_proposal_link if settings.virtual_proposal_required?
proposal_text.prepend(proposal_summary.text) if wicked_backend?
proposal_text.prepend(proposal_summary.text)
proposal_text
end

Expand All @@ -120,7 +120,7 @@ def switch_backend_link
# TRANSLATORS: information about the network backend in use. %s is the name of backend,
# example "wicked" or "NetworkManager"
backend_in_use = _("Using <b>%s</b>")
# TRANSLATORS: text of link for switch to another network backend. %s is the name of backend,
# TRANSLATORS: text of link to switch to another network backend. %s is the name of backend,
# example "wicked" or "NetworkManager"
switch_to = _("switch to %s")

Expand Down
12 changes: 4 additions & 8 deletions test/network_proposal_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
expect(proposal["preformatted_proposal"]).to include("rich_text_summary")
end

it "includes a link for switch to NetworkManager" do
it "includes a link to switch to NetworkManager" do
expect(proposal["preformatted_proposal"]).to match(/.*href.*NetworkManager.*/)
end

it "does not include a link for switch to wicked" do
it "does not include a link to switch to wicked" do
expect(proposal["preformatted_proposal"]).to_not match(/.*href.*wicked.*/)
end

Expand All @@ -99,15 +99,11 @@
context "when using the NetworkManager backend" do
let(:current_backend) { :network_manager }

it "does not include the Yast::Lan proposal summary" do
expect(proposal["preformatted_proposal"]).to_not include("rich_text_summary")
end

it "does not include a link for switch to NetworkManager" do
it "does not include a link to switch to NetworkManager" do
expect(proposal["preformatted_proposal"]).to_not match(/.*href.*NetworkManager.*/)
end

it "includes a link for switch to wicked" do
it "includes a link to switch to wicked" do
expect(proposal["preformatted_proposal"]).to match(/.*href.*wicked.*/)
end
end
Expand Down