Skip to content

Commit

Permalink
test(pkgs_spec): fix rubocop violations (--enable-pending-cops)
Browse files Browse the repository at this point in the history
```
Offenses:

test/integration/default/controls/pkgs_spec.rb:27:5: W: [Corrected] Lint/SymbolConversion:
Unnecessary symbol conversion; use iotop: instead.
    'iotop': ''
    ^^^^^^^
test/integration/default/controls/pkgs_spec.rb:33:5: W: [Corrected] Lint/SymbolConversion:
Unnecessary symbol conversion; use alien: instead.
    'alien': '8.95-8.fc29',
    ^^^^^^^
test/integration/default/controls/pkgs_spec.rb:34:5: W: [Corrected] Lint/SymbolConversion:
Unnecessary symbol conversion; use iotop: instead.
    'iotop': '0.6-18.fc29'
    ^^^^^^^
test/integration/default/controls/pkgs_spec.rb:46:5: W: [Corrected] Lint/SymbolConversion:
Unnecessary symbol conversion; use alien: instead.
    'alien': '8.95',
    ^^^^^^^
test/integration/default/controls/pkgs_spec.rb:48:5: W: [Corrected] Lint/SymbolConversion:
Unnecessary symbol conversion; use iotop: instead.
    'iotop': '0.6-'
    ^^^^^^^
```
  • Loading branch information
myii committed Mar 26, 2021
1 parent e7bbefa commit f7a6fcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/default/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
held_packages = {
# We use this test for held packages in a list,
# with no version (current version).
'iotop': ''
iotop: ''
}
lock_file = '/etc/yum/pluginconf.d/versionlock.list'
when 'fedora'
platform_packages = ['python3-dnf-plugin-versionlock']
held_packages = {
'alien': '8.95-8.fc29',
'iotop': '0.6-18.fc29'
alien: '8.95-8.fc29',
iotop: '0.6-18.fc29'
}
lock_file = '/etc/dnf/plugins/versionlock.list'
# Adding empty Suse entries, to get tests passing
Expand All @@ -43,9 +43,9 @@
when 'debian'
platform_packages = %w[]
held_packages = {
'alien': '8.95',
alien: '8.95',
# To match also ubuntu16's
'iotop': '0.6-'
iotop: '0.6-'
}
lock_file = '/var/lib/dpkg/status'
when 'linux'
Expand Down

0 comments on commit f7a6fcf

Please sign in to comment.