Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/odbc/tasks/negative_tests.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 #
7 # Missing params for the module
8 # There is nothing you need to do here because the params are required
9 #
10
11 #
12 # Invalid DSN in the module
13 #
14 - name: "Test with an invalid DSN"
15 odbc:
16 dsn: "t1"
17 query: "SELECT * FROM nothing"
18 register: results
19 ignore_errors: true
20
21 - assert:
22 that:
23 - results is failed
24 - "'Failed to connect to DSN' in results.msg"