File: formats.yml

package info (click to toggle)
ansible-core 2.19.0~beta6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,628 kB
  • sloc: python: 180,313; cs: 4,929; sh: 4,601; xml: 34; makefile: 21
file content (40 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
- name: FORMATS | initial checkout
  git:
    repo: "{{ repo_format1 }}"
    dest: "{{ repo_dir }}/format1"
  register: git_result

- name: FORMATS | verify information about the initial clone
  assert:
    that:
      - "'before' in git_result"
      - "'after' in git_result"
      - "not git_result.before"
      - "git_result.changed"

- name: FORMATS | repeated checkout
  git:
    repo: "{{ repo_format1 }}"
    dest: "{{ repo_dir }}/format1"
  register: git_result2

- name: FORMATS | check for tags
  stat:
    path: "{{ repo_dir }}/format1/.git/refs/tags"
  register: tags

- name: FORMATS | check for HEAD
  stat:
    path: "{{ repo_dir }}/format1/.git/HEAD"
  register: head

- name: FORMATS | assert presence of tags/trunk/branches
  assert:
    that:
      - "tags.stat.isdir"
      - "head.stat.isreg"

- name: FORMATS | verify on a reclone things are marked unchanged
  assert:
    that:
      - "not git_result2.changed"