Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/sync_plan.yml

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 tasks:
9 - include_tasks: tasks/organization.yml
10 vars:
11 organization_state: present
12 - include_tasks: tasks/product.yml
13 vars:
14 product_state: present
15 - include_tasks: tasks/sync_plan.yml
16 vars:
17 sync_plan_state: absent
18
19 - hosts: tests
20 collections:
21 - theforeman.foreman
22 gather_facts: false
23 vars_files:
24 - vars/server.yml
25 tasks:
26 - include_tasks: tasks/sync_plan.yml
27 vars:
28 expected_change: true
29 expected_diff: true
30 expected_diff_before: "{}"
31 expected_diff_after: "name.*Test Sync Plan"
32 - include_tasks: tasks/sync_plan.yml
33 vars:
34 sync_plan_products:
35 - Test Product
36 expected_change: true
37 expected_diff: true
38 expected_diff_before: "product_ids.*\\[\\]"
39 expected_diff_after: "product_ids.*\\["
40 - include_tasks: tasks/sync_plan.yml
41 vars:
42 sync_plan_products:
43 - Test Product
44 expected_change: false
45 - include_tasks: tasks/sync_plan.yml
46 vars:
47 expected_change: true
48 sync_plan_products: []
49 - include_tasks: tasks/sync_plan.yml
50 vars:
51 sync_plan_description: Sync daily, not weekly
52 sync_plan_interval: "daily"
53 expected_change: true
54 - include_tasks: tasks/sync_plan.yml
55 vars:
56 sync_plan_interval: custom cron
57 sync_plan_cron_expression: "* * * * */5"
58 expected_change: true
59 - include_tasks: tasks/product.yml
60 vars:
61 product_sync_plan: Test Sync Plan
62 product_state: present
63 expected_change: true
64 - include_tasks: tasks/sync_plan.yml
65 vars:
66 sync_plan_description: This will not be updated
67 sync_plan_products:
68 - And this too
69 sync_plan_state: present_with_defaults
70 expected_change: false
71 - include_tasks: tasks/sync_plan.yml
72 vars:
73 sync_plan_state: absent
74 expected_change: true
75
76 - hosts: localhost
77 collections:
78 - theforeman.foreman
79 gather_facts: false
80 vars_files:
81 - vars/server.yml
82 tasks:
83 - include_tasks: tasks/product.yml
84 vars:
85 product_state: absent
86 - include_tasks: tasks/organization.yml
87 vars:
88 organization_state: absent
89 ...