Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/pipx/tasks/testcase-9619-latest-global.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: 9619-Ensure application hello-world is uninstalled
7 community.general.pipx:
8 name: hello-world
9 state: absent
10 global: true
11
12 - name: 9619-Install application hello-world
13 community.general.pipx:
14 name: hello-world
15 source: hello-world==0.1
16 global: true
17 register: install_hw
18
19 - name: 9619-Upgrade application hello-world
20 community.general.pipx:
21 state: latest
22 name: hello-world
23 global: true
24 register: latest_hw
25
26 - name: 9619-Ensure application hello-world is uninstalled
27 community.general.pipx:
28 name: hello-world
29 state: absent
30 global: true
31
32 - name: 9619-Assertions
33 ansible.builtin.assert:
34 that:
35 - install_hw is changed
36 - latest_hw is changed
37 - latest_hw.cmd[-3] == "upgrade"
38 - latest_hw.cmd[-2] == "--global"