VictoriaMetrics/app
Aliaksandr Valialkin db85744e04
app/vmauth: follow-up for b155b20de4
- Use exact matching by default for the query arg value provided via arg=value syntax at src_query_args.
  Regex matching can be enabled by using =~ instead of = . For example, arg=~regex.
  This ensures that the exact matching works as expected without the need to escape special regex chars.

- Add helper functions for creating QueryArg, Header and Regex structs in tests.
  This improves maintainability of the tests.

- Remove url.QueryUnescape() call on the url in TestCreateTargetURLSuccess(), since this is bogus approach.
  The url.QueryUnescape() must be applied to individual query args, and it mustn't be applied to the whole url,
  since in this case it may perform invalid unescaping in the context of the url, or make the resulting url invalid.

While at it, properly marshal all the fields inside UserInfo config to yaml in tests.
Previously Header and QueryArg structs were improperly marshaled because the custom MarshalYAML
is called only on pointers to Header and QueryArg structs. This improves test coverage.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6070
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6115
2024-04-17 14:27:52 +02:00
..
victoria-logs fixed EXPOSE port for VictoriaLogs' Dockerfiles (#6082) 2024-04-09 13:54:52 -07:00
victoria-metrics all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
vlinsert all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after the recent changes at app/vmui 2024-04-04 02:08:24 +03:00
vlstorage app/vlselect: follow-up for 451d2abf50 2024-02-18 23:05:51 +02:00
vmagent app/{vmagent,vminsert}: accept Prometheus remote write protocol requests at /prometheus/api/v1/push additionally to /api/v1/push 2024-04-04 02:15:52 +03:00
vmalert vmalert: support any status code from the range 200-299 from alertmanager as successful (#6111) 2024-04-16 09:33:11 +02:00
vmalert-tool all: add support for specifying multiple -httpListenAddr options 2024-02-09 03:15:04 +02:00
vmauth app/vmauth: follow-up for b155b20de4 2024-04-17 14:27:52 +02:00
vmbackup lib/snapshot: move Time, Validate and NewName into lib/snapshot/snapshotutil package 2024-02-09 04:18:45 +02:00
vmbackupmanager docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:21:00 +02:00
vmctl app/vmctl: properly close file descriptor in verify-block action (#6106) 2024-04-16 11:33:04 +02:00
vmgateway docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:21:00 +02:00
vminsert app/{vmagent,vminsert}: accept Prometheus remote write protocol requests at /prometheus/api/v1/push additionally to /api/v1/push 2024-04-04 02:15:52 +03:00
vmrestore all: add support for specifying multiple -httpListenAddr options 2024-02-09 03:15:04 +02:00
vmselect chore: fix function names in comment (#6076) 2024-04-08 01:11:12 -07:00
vmstorage lib/storage: adds metrics for downsampling (#382) 2024-03-30 01:11:49 +02:00
vmui vmui: preserve Select value if it matches list on blur (#6101) 2024-04-17 11:37:46 +02:00