Debian Codegraph @

ansible_collections/community/windows/tests/integration/targets/win_dotnet_ngen/tasks/main.yml

raw
1 # this only tests check mode as the full run can take several minutes to
2 # complete, this way we at least verify the script is parsable
3 ---
4 - name: run in check mode
5 win_dotnet_ngen:
6 register: result_check
7 check_mode: yes
8
9 - name: assert run in check mode
10 assert:
11 that:
12 - result_check is changed
13 - result_check.dotnet_ngen_update_exit_code == 0
14 - result_check.dotnet_ngen_update_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe update /force"
15 - result_check.dotnet_ngen_eqi_exit_code == 0
16 - result_check.dotnet_ngen_eqi_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe executeQueuedItems"
17 - result_check.dotnet_ngen64_update_exit_code == 0
18 - result_check.dotnet_ngen64_update_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\ngen.exe update /force"
19 - result_check.dotnet_ngen64_eqi_exit_code == 0
20 - result_check.dotnet_ngen64_eqi_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\ngen.exe executeQueuedItems"