-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[http] Fix running FTR tests locally (#161336)
## Summary Running FTR tests locally (not on CI) that make API requests to public versioned Kibana endpoints is currently broken. This is because: * we require version headers to be set for both internal and **public** endpoints in **dev** by way of a runtime check (ensures our code is locked to a version) * the vast majority of FTR tests do not set these headers for talking to public endpoints * on CI, this is different as we run these tests against a distributable build (i.e., non-dev) This manifests locally as a 400 response. E.g. the current api_integration tests for data views by running: ``` node scripts/functional_test_runner.js --config ./test/api_integration/config.js --grep 'index_pattern_crud' ``` --- There are a few ways to resolve this, this PR proposes that we: * Keep FTR tests as they are (i.e., don't update all of them to set headers when making requests to public versioned endpoints), this is a useful way to exercise our intended end-user behaviour * Make the version resolution behaviour not depend on `--dev`: rather set the default resolution to `none` (new setting) when we run in `--dev` so that it can be configured to behave as we want for tests. In this way we keep the runtime check for its intended purpose and can run our FTR tests "as end users" of our endpoints. --- Close #161435
- Loading branch information
1 parent
15a86c3
commit bda0195
Showing
10 changed files
with
93 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters