fleet/cmd
Roberto Dip d0cde1aaaa
Use the same HTTP server config as the production server in tests (#8254)
* Use the same HTTP server config as the production server in tests

This abstracts the default config we use to run the server into a
function so it can be used in tests to run an HTTP server using the same
configuration.

Additionally, this fixes a data race in tests, as an HTTP server
configuration can't be changed once you call `server.Start()`[1]

[1]:
https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/net/http/httptest/server.go;l=40;drc=19309779ac5e2f5a2fd3cbb34421dafb2855ac21
2022-10-19 07:42:21 -03:00
..
cpe Fixes various bugs with NVD vulnerability detection (#7963) 2022-10-04 07:04:48 -04:00
fleet Use the same HTTP server config as the production server in tests (#8254) 2022-10-19 07:42:21 -03:00
fleetctl Deep-clone the appconfig when getting from cache (#8194) 2022-10-17 15:03:49 -04:00
msrc Use directories to organize msrc assets (#7851) 2022-09-20 14:12:19 -04:00
osquery-perf token rotation for fleet desktop (#7779) 2022-10-10 17:15:35 -03:00