Skip to content

Commit

Permalink
Merge pull request #1094 from yast/test_fix2
Browse files Browse the repository at this point in the history
Yet another unit test architecture fix
  • Loading branch information
lslezak committed Aug 27, 2020
2 parents 547a8a8 + a2a76e6 commit 1c925ec
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
13 changes: 12 additions & 1 deletion library/packages/test/y2packager/resolvable_test.rb
Expand Up @@ -4,6 +4,15 @@
require "y2packager/resolvable"
require "tmpdir"

################################################################################
#
# WARNING: The testing repository in the y2packager/zypp/test_repo directory
# contains only the "noarch" and "x86_64" packages.
# Be careful when writing tests here, on the other archs than x86_64 only
# the "noarch" packages will be visible!
#
################################################################################

# This is rather an integration test because it actually
# reads a real repository metadata using libzypp.
describe Y2Packager::Resolvable do
Expand Down Expand Up @@ -46,12 +55,14 @@

it "finds packages via an RPM dependency filter" do
res = Y2Packager::Resolvable.find(kind: :package, provides: "application()")
# use some noarch package here, the testing data covers only the x86_64 arch
# it is enough to check just one of them
expect(res).to include(an_object_having_attributes(name: "yast2-packager"))
expect(res).to include(an_object_having_attributes(name: "yast2-registration"))
end

it "finds packages via an RPM dependency regexp filter" do
res = Y2Packager::Resolvable.find(kind: :package, obsoletes_regexp: "^yast2-config-")
# use some noarch package here, the testing data covers only the x86_64 arch
# it is enough to check just one of them
expect(res).to include(an_object_having_attributes(name: "yast2-firewall"))
end
Expand Down
7 changes: 7 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Aug 27 09:20:42 UTC 2020 - Ladislav Slezák <lslezak@suse.cz>

- Yet another unit test architecture fix :-(
(related to bsc#1175317)
- 4.3.23

-------------------------------------------------------------------
Thu Aug 27 08:30:07 UTC 2020 - Ladislav Slezák <lslezak@suse.cz>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 4.3.22
Version: 4.3.23
Release: 0
Summary: YaST2 Main Package
License: GPL-2.0-only
Expand Down

0 comments on commit 1c925ec

Please sign in to comment.