diff options
author | Yunge Zhu <37337818+yungezz@users.noreply.github.com> | 2018-08-29 07:41:11 +0800 |
---|---|---|
committer | Zim Kalinowski <zikalino@microsoft.com> | 2018-08-29 07:41:11 +0800 |
commit | 2bd0a66c08bd27f289087553a8a12d3551255886 (patch) | |
tree | 0e96369d0edf4c6c4de49a61a3322bd27c4930db /test/integration/targets/azure_rm_webapp | |
parent | 408868ed4900af76bf7e4cc51485498ce755eb21 (diff) | |
download | ansible-2bd0a66c08bd27f289087553a8a12d3551255886.tar.gz |
start/stop/restart azure webapp (#44498)
* add webapp start/stop/restart
* disable test with facts
* fix lint
* fix lint
* fix check mode
* rename power_action to app_state
* refine names of choices
* fix renaming bug
Diffstat (limited to 'test/integration/targets/azure_rm_webapp')
-rw-r--r-- | test/integration/targets/azure_rm_webapp/tasks/main.yml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/test/integration/targets/azure_rm_webapp/tasks/main.yml b/test/integration/targets/azure_rm_webapp/tasks/main.yml index 8cb6cbf206..bd92fea4e2 100644 --- a/test/integration/targets/azure_rm_webapp/tasks/main.yml +++ b/test/integration/targets/azure_rm_webapp/tasks/main.yml @@ -22,6 +22,31 @@ plan: "{{ win_plan_name }}" register: output +- name: stop the web app + azure_rm_webapp: + resource_group: "{{ resource_group }}" + name: "{{ win_app_name }}2" + plan: "{{ win_plan_name }}" + app_state: stopped + register: output + +- name: assert output changed + assert: + that: + output.changed + +# enable after webapp_facts merged +# - name: get the web app +# azure_rm_webapp_facts: +# resource_group: "{{ resource_group }}" +# name: "{{ win_app_name }}2" +# register: stopped + +# - name: assert web app is stopped +# assert: +# that: +# - stopped.properties.state == "Stopped" + - name: Create a windows web app with existing app service plan, try to update some root level params azure_rm_webapp: resource_group: "{{ resource_group }}" @@ -251,4 +276,4 @@ - name: Assert the web app was created assert: - that: output.changed
\ No newline at end of file + that: output.changed |