From ceafb5411a66c90472c22bf8371276395f31204a Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Thu, 9 Feb 2023 20:18:27 +0100 Subject: [PATCH] Add an integration test to ensure that defaults don't count towards mutually exclusive (#79949) --- test/integration/targets/argspec/library/argspec.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/argspec/library/argspec.py b/test/integration/targets/argspec/library/argspec.py index b6d6d110f26..2d86d77ba79 100644 --- a/test/integration/targets/argspec/library/argspec.py +++ b/test/integration/targets/argspec/library/argspec.py @@ -23,6 +23,10 @@ def main(): 'type': 'str', 'choices': ['absent', 'present'], }, + 'default_value': { + 'type': 'bool', + 'default': True, + }, 'path': {}, 'content': {}, 'mapping': { @@ -246,7 +250,7 @@ def main(): ('state', 'present', ('path', 'content'), True), ), mutually_exclusive=( - ('path', 'content'), + ('path', 'content', 'default_value',), ), required_one_of=( ('required_one_of_one', 'required_one_of_two'),