test(pip): replace dxpy with iotop

This commit is contained in:
Javier Bértoli 2021-11-07 21:37:15 -03:00
parent ece367995c
commit a1c32e089f
9 changed files with 13 additions and 49 deletions

View file

@ -447,9 +447,9 @@ suites:
provisioner:
dependencies:
- name: node
branch: test-kitchen
branch: fix-version-usage-on-package-install
repo: git
source: https://github.com/saltstack-formulas/node-formula.git
source: https://github.com/netmanagers/node-formula.git
state_top:
base:
'*':

View file

@ -41,7 +41,7 @@ packages:
- epel
wanted:
- dxpy
- iotop
- attrs
unwanted:
- campbel

View file

@ -1,34 +0,0 @@
### WANTED/REQUIRED
case platform[:family]
when 'fedora', 'suse'
wanted_pips = []
else
wanted_pips = %w{
dxpy
attrs
}
end
control 'Wanted/Required python packages' do
title 'should be installed'
wanted_pips.each do |p|
describe pip(p) do
it { should be_installed }
end
end
end
### UNWANTED
control 'Unwanted python packages' do
title 'should be uninstalled'
%w{
campbel
reverse_geocode
indy-crypto
}.each do |p|
describe pip(p) do
it { should_not be_installed }
end
end
end

View file

@ -91,14 +91,13 @@ values:
required:
pkgs:
- libpython2.7-dev
- python-pip
states: []
unwanted:
- campbel
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:

View file

@ -91,14 +91,13 @@ values:
required:
pkgs:
- libpython2.7-dev
- python-pip
states: []
unwanted:
- campbel
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:

View file

@ -98,7 +98,7 @@ values:
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:

View file

@ -3,10 +3,10 @@
---
# Dependency (node)
node:
version: 12.16.1-1nodesource1
install_from_ppa: true
ppa:
repository_url: https://deb.nodesource.com/node_12.x
version: 17.0.1-deb-1nodesource1
pkg:
version: 17.0.1-deb-1nodesource1
use_upstream_repo: true
packages:
pkgs:
@ -42,7 +42,7 @@ packages:
# will take care of getting it if needed.
- libpython2.7-dev
wanted:
- dxpy
- iotop
- attrs
unwanted:
- campbel

View file

@ -20,7 +20,7 @@ packages:
- python3-dnf-plugin-versionlock
pips:
wanted:
# - dxpy
# - iotop
- attrs
unwanted:
- campbel

View file

@ -39,7 +39,7 @@ packages:
- python-pip
wanted:
# TODO: Investigate why this is longer working; OK when running locally
# - dxpy
# - iotop
- attrs
unwanted:
- campbel