mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
win_dotnet_ngen: fix after broken in 2.4 (#31076)
* win_dotnet_ngen: fix after broken in 2.4 * added description to return values
This commit is contained in:
parent
7d74c126a9
commit
12a4dca447
4 changed files with 117 additions and 54 deletions
1
test/integration/targets/win_dotnet_ngen/aliases
Normal file
1
test/integration/targets/win_dotnet_ngen/aliases
Normal file
|
@ -0,0 +1 @@
|
|||
windows/ci/group1
|
20
test/integration/targets/win_dotnet_ngen/tasks/main.yml
Normal file
20
test/integration/targets/win_dotnet_ngen/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# this only tests check mode as the full run can take several minutes to
|
||||
# complete, this way we at least verify the script is parsable
|
||||
---
|
||||
- name: run in check mode
|
||||
win_dotnet_ngen:
|
||||
register: result_check
|
||||
check_mode: yes
|
||||
|
||||
- name: assert run in check mode
|
||||
assert:
|
||||
that:
|
||||
- result_check|changed
|
||||
- result_check.dotnet_ngen_update_exit_code == 0
|
||||
- result_check.dotnet_ngen_update_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe update /force"
|
||||
- result_check.dotnet_ngen_eqi_exit_code == 0
|
||||
- result_check.dotnet_ngen_eqi_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe executeQueuedItems"
|
||||
- result_check.dotnet_ngen64_update_exit_code == 0
|
||||
- result_check.dotnet_ngen64_update_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\ngen.exe update /force"
|
||||
- result_check.dotnet_ngen64_eqi_exit_code == 0
|
||||
- result_check.dotnet_ngen64_eqi_output == "check mode output for C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\ngen.exe executeQueuedItems"
|
Loading…
Add table
Add a link
Reference in a new issue