fleet/test/upgrade
Michal Nicpon d4be5ad2a1
add upgrade tests (#6596)
* add upgrade tests

* fix lint issues

go.mod

* remove req.cnf

* revert unrelated changes

* make version configurable in test

* fix golangci-lint ruleguard issue

Related to https://github.com/go-critic/go-critic/issues/1152
Need to have github.com/quasilyte/go-ruleguard/dsl

* fix lint issues

* fix

* clean up docker-compose.yml

* fix http request

* add readme

* fix lint issues

* address feedback

* fix

* add platform

* address feedback

* run go fmt
2022-07-19 15:11:51 -06:00
..
nginx add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
docker-compose.yaml add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
fleet_test.go add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
fleet.crt add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
fleet.key add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
generate_cert.sh add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
osquery.flags add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
README.md add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
upgrade_test.go add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00

Upgrade Tests

The tests located in test/upgrade are intended to test fleet upgrades with online migrations as proposed in #6376. To run the tests, you need to specify the from and to versions. For example

$ FLEET_VERSION_A=v4.16.0 FLEET_VERSION_B=v4.17.0 go test ./test/upgrade

Ensure that Docker is installed with Compose V2. To check if you have the correct version, run the following command

$ docker compose version
Docker Compose version v2.6.0