security.test.ts.snap 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`SecuritySettingsSchema fixtures > parses none byte-stably 1`] = `
  3. {
  4. "security": "none",
  5. }
  6. `;
  7. exports[`SecuritySettingsSchema fixtures > parses reality-basic byte-stably 1`] = `
  8. {
  9. "realitySettings": {
  10. "maxClientVer": "",
  11. "maxTimediff": 0,
  12. "minClientVer": "",
  13. "mldsa65Seed": "",
  14. "privateKey": "wM-2_oQRWXyLcXhV5q1ifTBcS3K8mYR3wQI3PqGFK1k",
  15. "serverNames": [
  16. "yahoo.com",
  17. "www.yahoo.com",
  18. ],
  19. "settings": {
  20. "fingerprint": "chrome",
  21. "mldsa65Verify": "",
  22. "publicKey": "Tx5yj1bRcOPHkdvT2pIAQ2zh0gQ8m4OPdnzqXJxxV3o",
  23. "serverName": "",
  24. "spiderX": "/",
  25. },
  26. "shortIds": [
  27. "a3f1",
  28. "b8c2",
  29. "d9e4",
  30. ],
  31. "show": false,
  32. "target": "yahoo.com:443",
  33. "xver": 0,
  34. },
  35. "security": "reality",
  36. }
  37. `;
  38. exports[`SecuritySettingsSchema fixtures > parses tls-cert-file byte-stably 1`] = `
  39. {
  40. "security": "tls",
  41. "tlsSettings": {
  42. "alpn": [
  43. "h2",
  44. "http/1.1",
  45. ],
  46. "certificates": [
  47. {
  48. "buildChain": false,
  49. "certificateFile": "/etc/ssl/certs/cdn.example.test.crt",
  50. "keyFile": "/etc/ssl/private/cdn.example.test.key",
  51. "oneTimeLoading": false,
  52. "usage": "encipherment",
  53. },
  54. ],
  55. "cipherSuites": "",
  56. "disableSystemRoot": false,
  57. "echServerKeys": "",
  58. "enableSessionResumption": false,
  59. "maxVersion": "1.3",
  60. "minVersion": "1.2",
  61. "rejectUnknownSni": false,
  62. "serverName": "cdn.example.test",
  63. "settings": {
  64. "echConfigList": "",
  65. "fingerprint": "chrome",
  66. },
  67. },
  68. }
  69. `;