Skip to content

Commit

Permalink
tests: update config_fuzzer with new passthrough format
Browse files Browse the repository at this point in the history
Now it will generate a mix of old and new formats in the passthrough
section.
  • Loading branch information
daniloegea committed Nov 8, 2024
1 parent 23cd665 commit f3762c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
5 changes: 5 additions & 0 deletions tests/config_fuzzer/schemas/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ export const networkmanager_settings = {
type: "string"
}
},
patternProperties: {
"[azAZ09-]{1,10}": {
type: "object",
}
}
}
},
required: ["passthrough"]
Expand Down
26 changes: 2 additions & 24 deletions tests/config_fuzzer/schemas/nm-devices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import common_properties, { minMaxProperties } from "./common.js";
import { minMaxProperties, networkmanager_settings } from "./common.js";

const nmdevices_schema = {
type: "object",
Expand Down Expand Up @@ -34,29 +34,7 @@ const nmdevices_schema = {
type: "string",
enum: ["NetworkManager"]
},
networkmanager: {
type: "object",
additionalProperties: false,
properties: {
uuid: {
type: "string"
},
name: {
type: "string"
},
passthrough: {
type: "object",
additionalProperties: true,
properties: {
"connection.type": {
type: "string"
}
},
required: ["connection.type"]
}
},
required: ["passthrough"]
},
...networkmanager_settings
},
required: ["networkmanager"]
}
Expand Down

0 comments on commit f3762c9

Please sign in to comment.