Debian Codegraph @

ansible_collections/community/general/tests/unit/plugins/module_utils/_xenserver/common.py

raw
1 #
2 # Copyright (c) 2019, Bojan Vitnik <[email protected]>
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 from __future__ import annotations
7
8
9 def fake_xenapi_ref(xenapi_class):
10 return f"OpaqueRef:fake-xenapi-{xenapi_class}-ref"
11
12
13 testcase_bad_xenapi_refs = {
14 "params": [
15 None,
16 "",
17 "OpaqueRef:NULL",
18 ],
19 "ids": [
20 "none",
21 "empty",
22 "ref-null",
23 ],
24 }