feat(validation): read a raw option with options as a bool-or-dict toggle
This commit is contained in:
@@ -102,3 +102,15 @@ inputs_fixtures:
|
||||
expect:
|
||||
- "fixture.gate.portz: unsupported key, fixture.gate accepts port"
|
||||
- "fixture.gate.port: expected int, got str"
|
||||
|
||||
- name: raw-gate-true
|
||||
value:
|
||||
name: web01
|
||||
gate: true
|
||||
expect: []
|
||||
|
||||
- name: raw-gate-string-rejected
|
||||
value:
|
||||
name: web01
|
||||
gate: "yes"
|
||||
expect: ["fixture.gate: expected bool or dict, got str"]
|
||||
|
||||
Reference in New Issue
Block a user