Remove Salt deprecations and switch tests to Salt 2017.7
Change-Id: If96f95fdab13eae187a843f81b0d0060339a5f98
diff --git a/.kitchen.yml b/.kitchen.yml
index f3fc5b6..e708ea2 100644
--- a/.kitchen.yml
+++ b/.kitchen.yml
@@ -29,9 +29,9 @@
sudo: true
platforms:
- - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%>
+ - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial-2017.7'%>
driver_config:
- image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%>
+ image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial-2017.7'%>
platform: ubuntu
diff --git a/.travis.yml b/.travis.yml
index 714c249..0b24242 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,12 +22,19 @@
- bundle install
env:
+ - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=network
+ - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=network
+ # - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=storage
+ # - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=storage
+ - PLATFORM=trevorj/salty-whales:trusty-2017.7 SUITE=system
+ - PLATFORM=trevorj/salty-whales:xenial-2017.7 SUITE=system
- PLATFORM=trevorj/salty-whales:trusty SUITE=network
- PLATFORM=trevorj/salty-whales:xenial SUITE=network
# - PLATFORM=trevorj/salty-whales:trusty SUITE=storage
# - PLATFORM=trevorj/salty-whales:xenial SUITE=storage
- PLATFORM=trevorj/salty-whales:trusty SUITE=system
- PLATFORM=trevorj/salty-whales:xenial SUITE=system
+## Test on both Salt version until there is new test policy accepted
before_script:
- set -o pipefail
diff --git a/linux/files/multipath.conf b/linux/files/multipath.conf
index 382d775..b32f1b3 100644
--- a/linux/files/multipath.conf
+++ b/linux/files/multipath.conf
@@ -10,7 +10,7 @@
blacklist {
{%- for device in storage.multipath.get('blacklist_devices', []) %}
- wwid {{ salt['cmd.run']('/lib/udev/scsi_id -g -u '+device) }}
+ wwid {{ salt['cmd.shell']('/lib/udev/scsi_id -g -u '+device) }}
{%- endfor %}
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|nbd)[0-9]*"
}
diff --git a/tests/pillar/system.sls b/tests/pillar/system.sls
index 497aee2..d542587 100644
--- a/tests/pillar/system.sls
+++ b/tests/pillar/system.sls
@@ -61,6 +61,7 @@
testuser:
enabled: true
name: testuser
+ password: passw0rd
sudo: true
uid: 9999
full_name: Test User