Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 547abe4

Browse files
authored
molecule: recognize platform children (#228)
1 parent 1c4609d commit 547abe4

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

f/molecule.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
"title": "Box",
107107
"type": "string"
108108
},
109+
"children": {
110+
"items": {
111+
"type": "string"
112+
},
113+
"type": "array"
114+
},
109115
"command": {
110116
"title": "Command",
111117
"type": "string"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
driver:
2+
name: delegated
3+
platforms:
4+
- name: foo
5+
children: 2 # invalid, must be list of strings

test/molecule/default/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ log: true
3131
platforms:
3232
- name: ubi8
3333
hostname: ubi8
34+
children: [] # list of strings
3435
unknown_property_foo: bar # unknown properties should be allowed for drivers
3536
groups:
3637
- ubi8
@@ -57,6 +58,7 @@ platforms:
5758

5859
- name: ubi7
5960
hostname: ubi7
61+
children: ["ubi8"]
6062
groups:
6163
- ubi7
6264
image: ubi7/ubi-init

0 commit comments

Comments
 (0)