File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
tests/integration/targets/v3.5/tasks Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,7 @@ Parameters
655
655
- :ansible-option-choices-entry: `"read-write" `
656
656
- :ansible-option-choices-entry: `"read-only" `
657
657
- :ansible-option-choices-entry: `"hidden" `
658
+ - :ansible-option-choices-entry: `"hidden-ifunset" `
658
659
659
660
660
661
.. raw :: html
Original file line number Diff line number Diff line change 114
114
- read-write
115
115
- read-only
116
116
- hidden
117
+ - hidden-ifunset
117
118
type: str
118
119
version_added: "3.10.0"
119
120
validation_minimum:
@@ -250,6 +251,7 @@ def main():
250
251
"read-write" ,
251
252
"read-only" ,
252
253
"hidden" ,
254
+ "hidden-ifunset" ,
253
255
],
254
256
type = "str" ,
255
257
),
Original file line number Diff line number Diff line change 106
106
- test_five['diff']['after']['state'] == "absent"
107
107
- test_five['custom_field']['name'] == "A_CustomField"
108
108
- test_five['msg'] == "custom_field A_CustomField deleted"
109
+
110
+ - name : " CUSTOM_FIELD 6: UI Visibility (hidden-ifunset)"
111
+ netbox.netbox.netbox_custom_field :
112
+ netbox_url : http://localhost:32768
113
+ netbox_token : 0123456789abcdef0123456789abcdef01234567
114
+ data :
115
+ content_types :
116
+ - " dcim.device"
117
+ name : A_CustomField
118
+ type : text
119
+ ui_visibility : hidden-ifunset
120
+ state : present
121
+ register : test_six
122
+
123
+ - name : " CUSTOM_FIELD 6: UI Visibility (hidden-ifunset)"
124
+ assert :
125
+ that :
126
+ - test_six is changed
127
+ - test_six['custom_field']['name'] == "A_CustomField"
128
+ - test_six['custom_field']['ui_visibility'] == "hidden-ifunset"
You can’t perform that action at this time.
0 commit comments