mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
adds channel parameter
This commit is contained in:
4
tests/integration/targets/android_sdk/handlers/main.yml
Normal file
4
tests/integration/targets/android_sdk/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: delete_newroot
|
||||
file:
|
||||
path: "{{ newroot.path }}"
|
||||
state: absent
|
||||
@@ -62,6 +62,7 @@
|
||||
path: "{{ ansible_env.HOME }}/newroot"
|
||||
state: directory
|
||||
register: newroot
|
||||
notify: delete_newroot
|
||||
|
||||
- name: Accept licenses in the new root
|
||||
shell: "yes | sdkmanager --sdk_root={{ newroot.path }} --licenses"
|
||||
@@ -78,6 +79,13 @@
|
||||
path: "{{ newroot.path }}/build-tools/34.0.0"
|
||||
register: new_root_package_stat
|
||||
|
||||
- name: Install a package from canary channel
|
||||
android_sdk:
|
||||
name: build-tools;33.0.0
|
||||
state: present
|
||||
channel: canary
|
||||
register: package_canary
|
||||
|
||||
- name: Run tests
|
||||
assert:
|
||||
that:
|
||||
@@ -89,4 +97,5 @@
|
||||
- not platform_tools_present.changed
|
||||
- platform_tools_updated.changed
|
||||
- new_root_package.changed
|
||||
- new_root_package_stat.stat.exists
|
||||
- new_root_package_stat.stat.exists
|
||||
- package_canary.changed
|
||||
Reference in New Issue
Block a user