Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
Because we've enabled the installer updates repository, we have more
repositories in our list than before. If we don't remove them from the
list with grep, the list will grow with every newly released product and
break our tests.
  • Loading branch information
tmuntaner committed Aug 26, 2020
1 parent f34602c commit b36b57f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/repos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
end

it do
expect(`/usr/bin/rmt-cli repos list | wc -l`.strip&.to_i ).to eq(10) # 5 lines for table headers
# We need to remove the Installer-Updates from our list of repos because they are added by default.
# We cannot just keep them and change the expectation because the number will grow with every newly released product
# and break this test.
expect(`/usr/bin/rmt-cli repos list | grep -v Installer-Updates | wc -l`.strip&.to_i).to eq(10) # 5 lines for table headers
end
end

0 comments on commit b36b57f

Please sign in to comment.