From ffc2e5a62784239da201a26f6f5ac8159cee499d Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 11 Nov 2014 21:04:07 -0800 Subject: [PATCH] Do not fail on failure of md5 checksumming tests for non_destructive tests --- test/integration/roles/test_copy/tasks/main.yml | 14 ++++++++++++-- test/integration/roles/test_stat/tasks/main.yml | 7 +++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/test/integration/roles/test_copy/tasks/main.yml b/test/integration/roles/test_copy/tasks/main.yml index fa09d37eb4..2b671c122d 100644 --- a/test/integration/roles/test_copy/tasks/main.yml +++ b/test/integration/roles/test_copy/tasks/main.yml @@ -55,9 +55,14 @@ - name: verify that the file checksums are correct assert: that: - - "copy_result.md5sum == 'c47397529fe81ab62ba3f85e9f4c71f2'" - "copy_result.checksum == 'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'" +- name: verify that the legacy md5sum is correct + assert: + that: + - "copy_result.md5sum == 'c47397529fe81ab62ba3f85e9f4c71f2'" + ignore_errors: True + - name: check the stat results of the file stat: path={{output_file}} register: stat_results @@ -72,9 +77,14 @@ - "stat_results.stat.isfifo == false" - "stat_results.stat.isreg == true" - "stat_results.stat.issock == false" - - "stat_results.stat.md5 == 'c47397529fe81ab62ba3f85e9f4c71f2'" - "stat_results.stat.checksum == 'c79a6506c1c948be0d456ab5104d5e753ab2f3e6'" +- name: verify that the legacy md5sum is correct + assert: + that: + - "stat_results.stat.md5 == 'c47397529fe81ab62ba3f85e9f4c71f2'" + ignore_errors: True + - name: overwrite the file via same means copy: src=foo.txt dest={{output_file}} register: copy_result2 diff --git a/test/integration/roles/test_stat/tasks/main.yml b/test/integration/roles/test_stat/tasks/main.yml index b0b16d7f9e..f34f77a936 100644 --- a/test/integration/roles/test_stat/tasks/main.yml +++ b/test/integration/roles/test_stat/tasks/main.yml @@ -45,7 +45,6 @@ - "'issock' in stat_result.stat" - "'isuid' in stat_result.stat" - "'md5' in stat_result.stat" - - "stat_result.stat.md5 == '5eb63bbbe01eeed093cb22bb8f5acdc3'" - "'checksum' in stat_result.stat" - "stat_result.stat.checksum == '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'" - "'mode' in stat_result.stat" # why is this 420? @@ -63,4 +62,8 @@ - "'xgrp' in stat_result.stat" - "'xoth' in stat_result.stat" - "'xusr' in stat_result.stat" - + +- assert: + that: + - "stat_result.stat.md5 == '5eb63bbbe01eeed093cb22bb8f5acdc3'" + ignore_errors: True