test: MCP server tests, benchmarks, and nix build fix
- Add MCP server protocol tests (initialize, tools/list, errors) - Add database benchmarks (batch inserts, search, children) - Add sample options.json test fixture - Fix flake.nix vendor hash for nix build Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
107
testdata/options-sample.json
vendored
Normal file
107
testdata/options-sample.json
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"services.nginx.enable": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/nginx/default.nix"],
|
||||
"default": false,
|
||||
"description": "Whether to enable Nginx Web Server.",
|
||||
"readOnly": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"services.nginx.package": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/nginx/default.nix"],
|
||||
"default": {},
|
||||
"description": {"_type": "mdDoc", "text": "The nginx package to use."},
|
||||
"readOnly": false,
|
||||
"type": "package"
|
||||
},
|
||||
"services.nginx.user": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/nginx/default.nix"],
|
||||
"default": "nginx",
|
||||
"description": "User account under which nginx runs.",
|
||||
"readOnly": false,
|
||||
"type": "string"
|
||||
},
|
||||
"services.nginx.group": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/nginx/default.nix"],
|
||||
"default": "nginx",
|
||||
"description": "Group account under which nginx runs.",
|
||||
"readOnly": false,
|
||||
"type": "string"
|
||||
},
|
||||
"services.nginx.virtualHosts": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/nginx/default.nix"],
|
||||
"default": {},
|
||||
"description": "Declarative vhost configuration.",
|
||||
"readOnly": false,
|
||||
"type": "attrsOf (submodule)"
|
||||
},
|
||||
"services.caddy.enable": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/caddy/default.nix"],
|
||||
"default": false,
|
||||
"description": "Enable the Caddy web server.",
|
||||
"readOnly": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"services.caddy.package": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/web-servers/caddy/default.nix"],
|
||||
"default": {},
|
||||
"description": "Caddy package to use.",
|
||||
"readOnly": false,
|
||||
"type": "package"
|
||||
},
|
||||
"programs.git.enable": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/programs/git.nix"],
|
||||
"default": false,
|
||||
"description": "Whether to enable git.",
|
||||
"readOnly": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"programs.git.package": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/programs/git.nix"],
|
||||
"default": {},
|
||||
"description": "The git package to use.",
|
||||
"readOnly": false,
|
||||
"type": "package"
|
||||
},
|
||||
"programs.git.config": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/programs/git.nix"],
|
||||
"default": {},
|
||||
"description": "Git configuration options.",
|
||||
"readOnly": false,
|
||||
"type": "attrsOf (attrsOf anything)"
|
||||
},
|
||||
"networking.firewall.enable": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/networking/firewall.nix"],
|
||||
"default": true,
|
||||
"description": "Whether to enable the firewall.",
|
||||
"readOnly": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"networking.firewall.allowedTCPPorts": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/networking/firewall.nix"],
|
||||
"default": [],
|
||||
"description": "List of TCP ports to allow through the firewall.",
|
||||
"readOnly": false,
|
||||
"type": "listOf port"
|
||||
},
|
||||
"networking.firewall.allowedUDPPorts": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/services/networking/firewall.nix"],
|
||||
"default": [],
|
||||
"description": "List of UDP ports to allow through the firewall.",
|
||||
"readOnly": false,
|
||||
"type": "listOf port"
|
||||
},
|
||||
"boot.loader.grub.enable": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/system/boot/loader/grub/grub.nix"],
|
||||
"default": true,
|
||||
"description": "Whether to enable GRUB.",
|
||||
"readOnly": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"boot.loader.grub.device": {
|
||||
"declarations": ["/nix/store/xxx-source/nixos/modules/system/boot/loader/grub/grub.nix"],
|
||||
"default": "",
|
||||
"description": "The device where GRUB will be installed.",
|
||||
"readOnly": false,
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user