feat(validation): check the contents of a raw option that holds a dict or list
This commit is contained in:
@@ -39,7 +39,7 @@ inputs_fixtures:
|
||||
value:
|
||||
name: web01
|
||||
userz: {}
|
||||
expect: ["fixture.userz: unsupported key, fixture accepts count, disks, enabled, kind, name, secret, servers, users"]
|
||||
expect: ["fixture.userz: unsupported key, fixture accepts count, disks, enabled, gate, kind, name, secret, servers, users"]
|
||||
|
||||
- name: wrong-element-type
|
||||
value:
|
||||
@@ -84,5 +84,21 @@ inputs_fixtures:
|
||||
enabled: "true"
|
||||
userz: {}
|
||||
expect:
|
||||
- "fixture.userz: unsupported key, fixture accepts count, disks, enabled, kind, name, secret, servers, users"
|
||||
- "fixture.userz: unsupported key, fixture accepts count, disks, enabled, gate, kind, name, secret, servers, users"
|
||||
- "fixture.enabled: expected bool, got str"
|
||||
|
||||
- name: raw-gate-false
|
||||
value:
|
||||
name: web01
|
||||
gate: false
|
||||
expect: []
|
||||
|
||||
- name: raw-gate-dict-checked
|
||||
value:
|
||||
name: web01
|
||||
gate:
|
||||
port: http
|
||||
portz: 1
|
||||
expect:
|
||||
- "fixture.gate.portz: unsupported key, fixture.gate accepts port"
|
||||
- "fixture.gate.port: expected int, got str"
|
||||
|
||||
Reference in New Issue
Block a user