From: mcp-jenkins Date: Tue, 16 Jan 2018 08:53:54 +0000 (+0000) Subject: Merge "Optimize kitchen tests for Travis CI and fix test repo" X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=commitdiff_plain;h=63a7863f5b37773ed15bc2a4fe46abab3b613b91;hp=35a3c92b8ae82cd4e515f79deef9453c6116c3cd Merge "Optimize kitchen tests for Travis CI and fix test repo" --- diff --git a/.kitchen.travis.yml b/.kitchen.travis.yml deleted file mode 100644 index 6bcad13..0000000 --- a/.kitchen.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -suites: - - - name: <%= ENV['SUITE'] %> - provisioner: - pillars-from-files: - influxdb.sls: tests/pillar/<%= ENV['SUITE'] %>.sls diff --git a/.travis.yml b/.travis.yml index 2e36211..9abec6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,8 @@ before_script: - make test | tail script: - - KITCHEN_LOCAL_YAML=.kitchen.travis.yml bundle exec kitchen test -t tests/integration + - test ! -e .kitchen.yml || bundle exec kitchen converge ${SUITE} || true + - test ! -e .kitchen.yml || bundle exec kitchen verify ${SUITE} -t tests/integration notifications: webhooks: diff --git a/influxdb/server.sls b/influxdb/server.sls index 972dd28..4f9fdd2 100644 --- a/influxdb/server.sls +++ b/influxdb/server.sls @@ -6,6 +6,7 @@ influxdb_packages: pkg.installed: - names: {{ server.pkgs }} + - force_yes: True {%- endif %} {{ server.prefix_dir }}/etc/influxdb: diff --git a/tests/pillar/repo_influxdata.sls b/tests/pillar/repo_influxdata.sls index 012a7ae..3c8f522 100644 --- a/tests/pillar/repo_influxdata.sls +++ b/tests/pillar/repo_influxdata.sls @@ -3,6 +3,7 @@ linux: enabled: true repo: linux_influxdata: - source: "deb http://repos-backend.influxdata.com/ubuntu {{ grains.get('oscodename') }} stable" + source: "deb http://repos.influxdata.com/ubuntu {{ grains.get('oscodename') }} stable" architectures: amd64 - key_url: "http://repos-backend.influxdata.com/influxdb.key" + # key_url: "http://repos.influxdata.com/influxdb.key" + # https repo not working - see https://github.com/influxdata/influxdb/issues/9199 for more info