Skip to content

Commit

Permalink
add more ansible test (#49)
Browse files Browse the repository at this point in the history
* add more ansible test

* fix python 2 issue and upgrade some dep
  • Loading branch information
ahelal committed Apr 30, 2018
1 parent deea8ec commit cd00e2c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ platforms:
provisioner :
ansible_playbook_bin: "`avm path v2.4`ansible-playbook"

- name : "ubuntuV25"
provisioner :
ansible_playbook_bin: "`avm path v2.5`ansible-playbook"

suites :
- name : simpleNoChef
provisioner :
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
kitchen-ansiblepush (0.8.0)
kitchen-ansiblepush (0.9.1)
test-kitchen (~> 1.4)

GEM
Expand Down Expand Up @@ -91,4 +91,4 @@ DEPENDENCIES
test-kitchen

BUNDLED WITH
1.13.6
1.16.0
3 changes: 3 additions & 0 deletions callback/changes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

import os
import errno
import json as js
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen-ansible/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Kitchen
module AnsiblePush
VERSION = '0.8.0'.freeze
VERSION = '0.9.1'.freeze
end
end
6 changes: 5 additions & 1 deletion test/ansible-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ export ANSIBLE_VERSIONS_4="2.3.2.0"
export INSTALL_TYPE_4="pip"
export ANSIBLE_LABEL_4="v2.3"

export ANSIBLE_VERSIONS_5="2.4.0.0"
export ANSIBLE_VERSIONS_5="2.4.2.0"
export INSTALL_TYPE_5="pip"
export ANSIBLE_LABEL_5="v2.4"

export ANSIBLE_VERSIONS_6="2.5.0"
export INSTALL_TYPE_6="pip"
export ANSIBLE_LABEL_6="v2.5"

# Whats the default version
export ANSIBLE_DEFAULT_VERSION="v1.9"

Expand Down
5 changes: 5 additions & 0 deletions test/application/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@
copy:
content="{{ inventory_hostname }}"
dest="/var/{{ inventory_hostname }}-test.txt"

- name: Run ls
command: ls
become: False
changed_when: false

0 comments on commit cd00e2c

Please sign in to comment.