Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/cargo/tasks/test_version.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: Install application helloworld-yliu 0.1.0
7 community.general.cargo:
8 name: helloworld-yliu
9 version: 0.1.0
10 register: install_helloworld_010
11
12 - name: Install application helloworld-yliu 0.1.0 (idempotent)
13 community.general.cargo:
14 name: helloworld-yliu
15 version: 0.1.0
16 register: install_helloworld_010_idem
17
18 - name: Upgrade helloworld-yliu 0.1.0
19 community.general.cargo:
20 name: helloworld-yliu
21 state: latest
22 register: upgrade_helloworld_010
23
24 - name: Upgrade helloworld-yliu 0.1.0 (idempotent)
25 community.general.cargo:
26 name: helloworld-yliu
27 state: latest
28 register: upgrade_helloworld_010_idem
29
30 - name: Downgrade helloworld-yliu 0.1.0
31 community.general.cargo:
32 name: helloworld-yliu
33 version: 0.1.0
34 register: downgrade_helloworld_010
35
36 - name: Downgrade helloworld-yliu 0.1.0 (idempotent)
37 community.general.cargo:
38 name: helloworld-yliu
39 version: 0.1.0
40 register: downgrade_helloworld_010_idem
41
42 - name: Check assertions helloworld-yliu
43 assert:
44 that:
45 - install_helloworld_010 is changed
46 - install_helloworld_010_idem is not changed
47 - upgrade_helloworld_010 is changed
48 - upgrade_helloworld_010_idem is not changed
49 - downgrade_helloworld_010 is changed
50 - downgrade_helloworld_010_idem is not changed