diff --git a/.travis.yml b/.travis.yml index 1dbacf8..d0a3a0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ env: global: - BS_PIP_ALLOWED=1 - BS_ECHO_DEBUG=1 + - SALT_ARGS="--local --retcode-passthrough --pillar-root=test/pillar --file-root=$PWD" matrix: - STATE=rsyncd - STATE=rsyncd.config @@ -21,14 +22,14 @@ install: - sudo salt-call grains.items --local script: - - sudo salt-call state.show_sls $STATE --local --retcode-passthrough --config-dir=test/etc - - sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc + - sudo salt-call state.show_sls $STATE $SALT_ARGS + - sudo salt-call state.sls $STATE $SALT_ARGS # For debugging purpose - cat /etc/default/rsync - test -f /etc/rsyncd.conf && cat /etc/rsyncd.conf || echo "No rsyncd.conf" # Idempotence check - - sudo salt-call state.sls $STATE --local --retcode-passthrough --config-dir=test/etc > /tmp/second + - sudo salt-call state.sls $STATE $SALT_ARGS > /tmp/second - cat /tmp/second - bash -c '! grep -q "^Not Run:" /tmp/second' diff --git a/test/salt/top.sls b/test/salt/top.sls deleted file mode 100644 index 755c05c..0000000 --- a/test/salt/top.sls +++ /dev/null @@ -1,4 +0,0 @@ -base: - '*': - - rsyncd - - rsyncd.config