mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-23 18:28:42 +02:00
Implement basic support for read-only and write-only keys in api_info and api_modify (#213)
* Implement basic support for read-only and write-only keys in api_info and api_modify. * Do not show write-only fields as 'disabled'.
This commit is contained in:
parent
4d8ebaeb8d
commit
cf6c79e1b3
6 changed files with 137 additions and 4 deletions
|
@ -99,6 +99,10 @@ def test_key_info_errors():
|
|||
KeyInfo(remove_value='')
|
||||
assert exc.value.args[0] == 'remove_value can only be specified if can_disable=True'
|
||||
|
||||
with pytest.raises(ValueError) as exc:
|
||||
KeyInfo(read_only=True, write_only=True)
|
||||
assert exc.value.args[0] == 'read_only and write_only cannot be used at the same time'
|
||||
|
||||
|
||||
SPLITTED_PATHS = [
|
||||
('', [], ''),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue