Skip to content

Commit

Permalink
Merge pull request #715 from yast/fix-autosetup-test
Browse files Browse the repository at this point in the history
Fix inst_autosetup client tests
  • Loading branch information
imobachgs committed Oct 2, 2020
2 parents b2dc1f0 + ace3305 commit 041c9f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions package/autoyast2.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 2 07:04:25 UTC 2020 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Fix 'inst_autosetup' tests (bsc#1177227).
- 4.3.58

-------------------------------------------------------------------
Thu Oct 1 05:58:50 UTC 2020 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/autoyast2.spec
Expand Up @@ -22,7 +22,7 @@
%endif

Name: autoyast2
Version: 4.3.57
Version: 4.3.58
Release: 0
Summary: YaST2 - Automated Installation
License: GPL-2.0-only
Expand Down
5 changes: 3 additions & 2 deletions test/lib/clients/inst_autosetup_test.rb
Expand Up @@ -42,7 +42,7 @@
allow(Yast::Progress).to receive(:Title)
allow(Yast::AutoinstStorage).to receive(:Import).and_return(true)
allow(Yast::AutoinstStorage).to receive(:Write).and_return(true)
allow(Yast::Profile).to receive(:current).and_return(profile)

allow(Yast::WFM).to receive(:CallFunction).with(/_auto/, Array).and_return(true)
allow(Yast::Popup).to receive(:ConfirmAbort).and_return(true)

Expand All @@ -59,6 +59,7 @@
allow(subject).to receive(:probe_storage)
allow(Yast::AutoinstSoftware).to receive(:Write).and_return(true)
allow(Yast::ServicesManager).to receive(:import)
Yast::Profile.current = profile
end

it "sets up the network" do
Expand Down Expand Up @@ -174,7 +175,7 @@
end

it "sets up the software" do
expect(Yast::AutoinstSoftware).to receive(:Import).with(profile["software"])
expect(Yast::AutoinstSoftware).to receive(:Import).with(a_hash_including(profile["software"]))
expect(Yast::AutoinstSoftware).to receive(:Write).and_return(true)
subject.main
end
Expand Down

0 comments on commit 041c9f1

Please sign in to comment.