mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Make all doc fragments, module utils, and plugin utils private (#11896)
* Make all doc fragments private. * Make all plugin utils private. * Make all module utils private. * Reformat. * Changelog fragment. * Update configs and ignores. * Adjust unit test names.
This commit is contained in:
24
tests/unit/plugins/module_utils/_xenserver/common.py
Normal file
24
tests/unit/plugins/module_utils/_xenserver/common.py
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Copyright (c) 2019, Bojan Vitnik <bvitnik@mainstream.rs>
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def fake_xenapi_ref(xenapi_class):
|
||||
return f"OpaqueRef:fake-xenapi-{xenapi_class}-ref"
|
||||
|
||||
|
||||
testcase_bad_xenapi_refs = {
|
||||
"params": [
|
||||
None,
|
||||
"",
|
||||
"OpaqueRef:NULL",
|
||||
],
|
||||
"ids": [
|
||||
"none",
|
||||
"empty",
|
||||
"ref-null",
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user