You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/WINDOWS-TEST.md

1.4 KiB

Integration Tests on Windows

Index

Pre-built core images

Before running the integration tests, you must pre-build the core images that the tests require to be ran on the Windows environment. Make sure to check out the BUILD-IMAGES file here for this purpose.

Integration test images

During the execution of the integration tests, several images are built based-on the pre-built core images. To get more information about these and how to run them independently, please check out the docker.windows file here.

Run tests

To run all the integration tests, you need to execute next command

go test -v -timeout=30s -tags integration ./test/integration/connect/envoy -run="TestEnvoy" -win=true

To run a single test case, the name should be specified. For instance, to run the case-badauthz test, you need to execute next command

go test -v -timeout=30m -tags integration ./test/integration/connect/envoy -run="TestEnvoy/case-badauthz" -win=true

⚠️ Note that the flag -win=true must be specified as shown in the above commands. This flag is very important because the same allows to indicate that the tests will be executed on the Windows environment.