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

molecule: recognize platform children #228

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions f/molecule.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@
"title": "Box",
"type": "string"
},
"children": {
"items": {
"type": "string"
},
"type": "array"
},
"command": {
"title": "Command",
"type": "string"
Expand Down
5 changes: 5 additions & 0 deletions negative_test/molecule/platforms_children/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
driver:
name: delegated
platforms:
- name: foo
children: 2 # invalid, must be list of strings
2 changes: 2 additions & 0 deletions test/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ log: true
platforms:
- name: ubi8
hostname: ubi8
children: [] # list of strings
unknown_property_foo: bar # unknown properties should be allowed for drivers
groups:
- ubi8
Expand All @@ -57,6 +58,7 @@ platforms:

- name: ubi7
hostname: ubi7
children: ["ubi8"]
groups:
- ubi7
image: ubi7/ubi-init
Expand Down