Skip to content

Commit e5786a7

Browse files
committed
tests: update config_fuzzer with new passthrough format
Now it will generate a mix of old and new formats in the passthrough section.
1 parent 5dd0b9e commit e5786a7

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

tests/config_fuzzer/schemas/common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ export const networkmanager_settings = {
210210
type: "string"
211211
}
212212
},
213+
patternProperties: {
214+
"[azAZ09-]{1,10}": {
215+
type: "object",
216+
}
217+
}
213218
}
214219
},
215220
required: ["passthrough"]

tests/config_fuzzer/schemas/nm-devices.js

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import common_properties, { minMaxProperties } from "./common.js";
1+
import { minMaxProperties, networkmanager_settings } from "./common.js";
22

33
const nmdevices_schema = {
44
type: "object",
@@ -34,29 +34,7 @@ const nmdevices_schema = {
3434
type: "string",
3535
enum: ["NetworkManager"]
3636
},
37-
networkmanager: {
38-
type: "object",
39-
additionalProperties: false,
40-
properties: {
41-
uuid: {
42-
type: "string"
43-
},
44-
name: {
45-
type: "string"
46-
},
47-
passthrough: {
48-
type: "object",
49-
additionalProperties: true,
50-
properties: {
51-
"connection.type": {
52-
type: "string"
53-
}
54-
},
55-
required: ["connection.type"]
56-
}
57-
},
58-
required: ["passthrough"]
59-
},
37+
...networkmanager_settings
6038
},
6139
required: ["networkmanager"]
6240
}

0 commit comments

Comments
 (0)