Skip to content

Commit

Permalink
Merge 3535137 into fa6603d
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 11, 2019
2 parents fa6603d + 3535137 commit 5aed693
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
8 changes: 8 additions & 0 deletions package/yast2-network.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Nov 10 09:28:14 UTC 2019 - Knut Anderssen <kanderssen@suse.com>

- Wireless: Fix wpa auth modes selection removing the prefix from
the combobox value which is not used when writing the config.
(bsc#1155639)
- 4.2.26

-------------------------------------------------------------------
Fri Nov 8 13:15:15 UTC 2019 - Knut Anderssen <kanderssen@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.2.24
Version: 4.2.26
Release: 0
Summary: YaST2 - Network Configuration
License: GPL-2.0-only
Expand Down
4 changes: 2 additions & 2 deletions src/lib/y2network/widgets/wireless_auth.rb
Expand Up @@ -71,8 +71,8 @@ def refresh
case auth_mode_widget.value
when "no-encryption" then replace_widget.replace(empty_auth_widget)
when "sharedkey", "open" then replace_widget.replace(wep_keys_widget)
when "wpa-psk" then replace_widget.replace(encryption_widget)
when "wpa-eap" then replace_widget.replace(eap_widget)
when "psk" then replace_widget.replace(encryption_widget)
when "eap" then replace_widget.replace(eap_widget)
else
raise "invalid value #{auth_mode_widget.value.inspect}"
end
Expand Down
4 changes: 2 additions & 2 deletions src/lib/y2network/widgets/wireless_auth_mode.rb
Expand Up @@ -45,8 +45,8 @@ def items
["no-encryption", _("No Encryption")],
["open", _("WEP - Open")],
["sharedkey", _("WEP - Shared Key")],
["wpa-psk", _("WPA-PSK (\"home\")")],
["wpa-eap", _("WPA-EAP (\"Enterprise\")")]
["psk", _("WPA-PSK (\"home\")")],
["eap", _("WPA-EAP (\"Enterprise\")")]
]
end

Expand Down
31 changes: 31 additions & 0 deletions test/y2network/widgets/wireless_auth_mode_test.rb
@@ -0,0 +1,31 @@
# Copyright (c) [2019] 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 "y2network/widgets/wireless_auth_mode"
require "y2network/interface_config_builder"

describe Y2Network::Widgets::WirelessAuthMode do
let(:builder) { Y2Network::InterfaceConfigBuilder.for("wlan") }
subject { described_class.new(builder) }

include_examples "CWM::ComboBox"
end

0 comments on commit 5aed693

Please sign in to comment.