mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 15:41:22 -07:00
More true/false normalization (#6152)
* More true/false normalization. * Boolean do not need explicit choices. * One more. * Fix type argument.
This commit is contained in:
parent
627371e2d8
commit
11c7611ced
48 changed files with 203 additions and 219 deletions
|
@ -53,7 +53,7 @@
|
|||
- name: Create a user to run the tests with
|
||||
shell: echo "CREATE USER {{ my_user }} SUPERUSER PASSWORD '{{ my_pass }}'" | psql postgres
|
||||
become_user: "{{ pg_user }}"
|
||||
become: True
|
||||
become: true
|
||||
|
||||
- name: Create a table
|
||||
odbc:
|
||||
|
@ -68,7 +68,7 @@
|
|||
len interval hour to minute
|
||||
);
|
||||
become_user: "{{ pg_user }}"
|
||||
become: True
|
||||
become: true
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
|
@ -83,7 +83,7 @@
|
|||
dsn: "{{ dsn }}"
|
||||
query: "INSERT INTO films (code, title, did, date_prod, kind, len) VALUES ('asdfg', 'My First Movie', 1, '2019-01-12', 'SyFi', '02:00')"
|
||||
become_user: "{{ pg_user }}"
|
||||
become: True
|
||||
become: true
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
|
@ -102,7 +102,7 @@
|
|||
- 'Comedy'
|
||||
- '01:30'
|
||||
become_user: "{{ pg_user }}"
|
||||
become: True
|
||||
become: true
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
|
@ -135,7 +135,7 @@
|
|||
- 'asdfg'
|
||||
- 'qwert'
|
||||
register: results
|
||||
changed_when: False
|
||||
changed_when: false
|
||||
|
||||
- assert:
|
||||
that:
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
dsn: "t1"
|
||||
query: "SELECT * FROM nothing"
|
||||
register: results
|
||||
ignore_errors: True
|
||||
ignore_errors: true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
odbc:
|
||||
dsn: "Test"
|
||||
query: "SELECT * FROM nothing"
|
||||
ignore_errors: True
|
||||
ignore_errors: true
|
||||
register: results
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue