ansible/test/integration/targets/win_data_deduplication/tasks/tests.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

Win data deduplication module (#59723) * win_data_deduplication initial commit * Ansible version added bump * integration tests * missing aliases * Fixing documentation * license and metadata * documentation formating * removing win_format ref * documentation fixes * trailing whitespace * Fixing more documentation :( * missing return * documentation cleanup * align copyright with doc * indentation fixes... * updated examples * ignore meta and future for python doc * removing when * use Get-PSVolume * Get-Volume not PSVolume * missing updated var * updated old drive refs * make sure that the T drive is formated as NTFS * path and drive_letter are exclusive * idempotence test fix * changing task order + reboot timeout * implementing the requested changes to the code * updating documentation to reflect code changes * simplifying tests * missing feature install before running the tasks * pslint trailing whitespace * putting old tests back * missing win_format * skip windows 2012 * Fixing message for OS check * pass settings and dedup_job variables * Removing unnecessary module * logic issue * replacing tabs with double space * documentation fix + removing tabs * Update documentation with recent changes * Apply changes requested * switch feature install with partition format * replace tabs with spaces * trailing whitespace * we don't need those ignores anymore * minor fixes * updated test to match latest code changes * removing dedup job task * adding check mode yes test * fixes for check_mode support * updating examples in documentation * wrong indentation for check_mode in tests * convert indentation to spaces * -not $check_mode * removing unneeded spec in documentation * Switch to Ansible.Basic * 2.9 is already gone, so let's add this module to 2.10... * removing useless else condition * updated documentation * fixing specs and removing useless try/catch + fix exit/fail * spaces indentation * $null check is actually needed if volume never had dedup * Missing check_mode update * removing required for default state in documentation * converted tabs to spaces
2019-12-04 05:21:21 +01:00
---
- name: Enable Data Deduplication on the T drive - check mode
win_data_deduplication:
drive_letter: "T"
state: present
settings:
no_compress: true
minimum_file_age_days: 2
minimum_file_size: 0
check_mode: yes
register: win_data_deduplication_enable_check_mode
- name: Check that it was successful with a change - check mode
assert:
that:
- win_data_deduplication_enable_check_mode is changed
- name: Enable Data Deduplication on the T drive
win_data_deduplication:
drive_letter: "T"
state: present
settings:
no_compress: true
minimum_file_age_days: 2
minimum_file_size: 0
register: win_data_deduplication_enable
- name: Check that it was successful with a change
assert:
that:
- win_data_deduplication_enable is changed
- name: Enable Data Deduplication on the T drive
win_data_deduplication:
drive_letter: "T"
state: present
settings:
no_compress: true
minimum_file_age_days: 2
minimum_file_size: 0
register: win_data_deduplication_enable_again
- name: Check that it was successful without a change
assert:
that:
- win_data_deduplication_enable_again is not changed