diff --git a/test/integration/targets/deploy_helper/aliases b/test/integration/targets/deploy_helper/aliases new file mode 100644 index 0000000000..4485d76162 --- /dev/null +++ b/test/integration/targets/deploy_helper/aliases @@ -0,0 +1 @@ +posix/ci/group1 diff --git a/test/integration/targets/deploy_helper/tasks/main.yml b/test/integration/targets/deploy_helper/tasks/main.yml index 1bf87a4307..962c894a81 100644 --- a/test/integration/targets/deploy_helper/tasks/main.yml +++ b/test/integration/targets/deploy_helper/tasks/main.yml @@ -62,7 +62,7 @@ # Setup older releases for tests - file: path={{ deploy_helper.releases_path }}/{{ item }} state=directory - with_items: ['first','second','third', 'fourth', 'fifth', 'sixth', 'seventh'] + with_items: ['first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh'] # Setup the new release - file: path={{ deploy_helper.new_release_path }} state=directory # Add a buildfile, just like in a real deploy @@ -90,12 +90,12 @@ assert: that: - "not third_release_path.stat.exists" - - "{{ releases_count.stdout|trim }} == 5" + - "releases_count.stdout|trim == '6'" - deploy_helper: path={{ deploy_helper_test_root }} release={{ deploy_helper.new_release }} state=query - name: Assert State=finalize with default parameters (previous_release checks) assert: that: - - "{{ deploy_helper.new_release }} == {{ deploy_helper.previous_release }}" + - "deploy_helper.new_release == deploy_helper.previous_release" - name: State=absent with default parameters deploy_helper: path={{ deploy_helper_test_root }} state=absent @@ -122,7 +122,7 @@ # Setup older releases for tests - file: path={{ deploy_helper.releases_path }}/{{ item }} state=directory - with_items: ['first','second','third', 'fourth', 'fifth'] + with_items: ['first', 'second', 'third', 'fourth', 'fifth'] # Setup the new release - file: path={{ deploy_helper.new_release_path }} state=directory # Add a buildfile, just like in a real deploy @@ -142,8 +142,8 @@ assert: that: - "not third_release_path.stat.exists" - - "{{ before_releases_count.stdout|trim }} == 6" - - "{{ releases_count.stdout|trim }} == 3" + - "before_releases_count.stdout|trim == '6'" + - "releases_count.stdout|trim == '3'" # Remove the root folder - file: path={{ deploy_helper_test_root }} state=absent