mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
config tests
also a couple of fixes to manager
This commit is contained in:
55
test/units/config/test.yml
Normal file
55
test/units/config/test.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
# mock config defs with diff use cases
|
||||
config_entry: &entry
|
||||
name: test config
|
||||
default: DEFAULT
|
||||
description:
|
||||
- This does nothing, its for testing
|
||||
env:
|
||||
- name: ENVVAR
|
||||
ini:
|
||||
- section: defaults
|
||||
key: inikey
|
||||
type: string
|
||||
config_entry_multi: &entry_multi
|
||||
name: has more than one entry per config source
|
||||
default: DEFAULT
|
||||
description:
|
||||
- This does nothing, its for testing
|
||||
env:
|
||||
- name: MATTERLESS
|
||||
- name: MATTERMORE
|
||||
ini:
|
||||
- section: defaults
|
||||
key: matterless
|
||||
- section: defaults
|
||||
key: mattermore
|
||||
type: string
|
||||
config_entry_bool:
|
||||
<<: *entry
|
||||
type: bool
|
||||
default: False
|
||||
config_entry_list:
|
||||
<<: *entry
|
||||
type: list
|
||||
default: [DEFAULT]
|
||||
config_entry_deprecated:
|
||||
<<: *entry
|
||||
deprecated: &dep
|
||||
why: 'cause i wanna'
|
||||
version: 9.2
|
||||
alternative: 'none whatso ever'
|
||||
config_entry_multi_deprecated:
|
||||
<<: *entry_multi
|
||||
deprecated: *dep
|
||||
config_entry_multi_deprecated_source:
|
||||
<<: *entry_multi
|
||||
env:
|
||||
- name: MATTERLESS
|
||||
deprecated: *dep
|
||||
- name: MATTERMORE
|
||||
ini:
|
||||
- section: defaults
|
||||
key: matterless
|
||||
deprecated: *dep
|
||||
- section: defaults
|
||||
key: mattermore
|
||||
Reference in New Issue
Block a user