supported_tags.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [
  2. {
  3. "desc": "test with unsupported text field",
  4. "query": "browser:\"chrome\" os:*windows*",
  5. "additionalConfig": {
  6. "validateKeys": true,
  7. "supportedTags": {
  8. "browser": {
  9. "key": "browser",
  10. "kind": "field"
  11. }
  12. }
  13. },
  14. "result": [
  15. {"type": "spaces", "value": ""},
  16. {
  17. "type": "filter",
  18. "filter": "text",
  19. "negated": false,
  20. "key": {"type": "keySimple", "value": "browser", "quoted": false},
  21. "operator": "",
  22. "value": {"type": "valueText", "value": "chrome", "quoted": true}
  23. },
  24. {"type": "spaces", "value": " "},
  25. {
  26. "type": "filter",
  27. "filter": "text",
  28. "negated": false,
  29. "invalid": {
  30. "reason": "Invalid key. \"os\" is not a supported search key."
  31. },
  32. "key": {"type": "keySimple", "value": "os", "quoted": false},
  33. "operator": "",
  34. "value": {"type": "valueText", "value": "*windows*", "quoted": false}
  35. },
  36. {"type": "spaces", "value": ""}
  37. ]
  38. },
  39. {
  40. "desc": "test with unsupported numeric field",
  41. "query": "browser:\"chrome\" transaction.duration:>0",
  42. "additionalConfig": {
  43. "validateKeys": true,
  44. "supportedTags": {
  45. "browser": {
  46. "key": "browser",
  47. "kind": "field"
  48. }
  49. }
  50. },
  51. "result": [
  52. {"type": "spaces", "value": ""},
  53. {
  54. "type": "filter",
  55. "filter": "text",
  56. "negated": false,
  57. "key": {"type": "keySimple", "value": "browser", "quoted": false},
  58. "operator": "",
  59. "value": {"type": "valueText", "value": "chrome", "quoted": true}
  60. },
  61. {"type": "spaces", "value": " "},
  62. {
  63. "type": "filter",
  64. "filter": "numeric",
  65. "negated": false,
  66. "invalid": {
  67. "reason": "Invalid key. \"transaction.duration\" is not a supported search key."
  68. },
  69. "key": {"type": "keySimple", "value": "transaction.duration", "quoted": false},
  70. "operator": ">",
  71. "value": {
  72. "type": "valueNumber",
  73. "rawValue": 0,
  74. "value": "0",
  75. "unit": null
  76. }
  77. },
  78. {"type": "spaces", "value": ""}
  79. ]
  80. }
  81. ]