Skip to content

Commit

Permalink
Merge pull request #1198 from yast/nm-proposal
Browse files Browse the repository at this point in the history
Display network configuration in the summary screen for NetworkManager
  • Loading branch information
imobachgs committed Apr 8, 2021
2 parents 6981d43 + 958491f commit b96f404
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 8 additions & 0 deletions package/yast2-network.changes
@@ -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
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
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
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

0 comments on commit b96f404

Please sign in to comment.