-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed alerting_api_integration/security_and_spaces tests failing if actions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' #75232
Fixed alerting_api_integration/security_and_spaces tests failing if actions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' #75232
Conversation
…ctions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner'
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and works as expected 👍
I would love it if we could use a command line arg instead of commented out config, but it isn't a blocker :D
x-pack/test/alerting_api_integration/security_and_spaces/config.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little concerned because if I run FTS / FTR without a const proxy port set in the config, all the tests pass for actions - both security and spaces, and spaces only. But I see a lot of warnings and errors in the FTS terminal showing http-related errors running actions.
Is the intention that if you want to run FTS / FTR locally you have to set the proxy port? If so, then we at least need an env var to set it, but then we might as well also have some port that we default to as well.
Another idea - FTS has to be running before you start FTR, so we could add a route to FTS that returned the proxy port, or the whole proxy url, which FTR could call to get it. Could be a lot of work tho.
@pmuellr you have a good catch here about the warnings in the FTS terminal - I realized that I added the fix with random proxy port but didn't do this for Webhook and Slack simulator servers. Why the tests are green I'm surprised - ops :) |
…ome test warnings
I noticed that we're doing a kibana/x-pack/plugins/actions/server/builtin_action_types/slack.ts Lines 120 to 123 in 9111d50
and that we have a test that the kibana/x-pack/plugins/actions/server/builtin_action_types/slack.test.ts Lines 212 to 214 in 9111d50
Seems like this should be changed to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; I noticed a logger.info()
from the prior PR that seems like it should be changed to a debug()
, noted in a separate comment.
…-local-tests-nonsingle-process # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
…ocal-tests-nonsingle-process
06fbc74
to
f8560c4
Compare
…-local-tests-nonsingle-process # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operations: Pipeline changes LGTM
…-local-tests-nonsingle-process # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
…ctions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' (elastic#75232) * Fixed alerting_api_integration/security_and_spaces tests failing if actions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' * - * Fixed get port from range for Slack and webhook simulators, removed some test warnings * Added check for listening proxy server * changed logger to debug removed not useful error * - * changed proxy to dynamic target in a single place * test retry * - * - * - * - * test with no cleanup * - * - * - * - * Added environment variable ALERTING_PROXY_PORT * fixed type checks * fixed clean up proxy server port
…ctions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' (#75232) (#75884) * Fixed alerting_api_integration/security_and_spaces tests failing if actions proxy set on for parallel process running using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner' * - * Fixed get port from range for Slack and webhook simulators, removed some test warnings * Added check for listening proxy server * changed logger to debug removed not useful error * - * changed proxy to dynamic target in a single place * test retry * - * - * - * - * test with no cleanup * - * - * - * - * Added environment variable ALERTING_PROXY_PORT * fixed type checks * fixed clean up proxy server port
Added new environment variable ALERTING_PROXY_PORT with value
"61${parallelId}5"
Tested locally by using commands 'scripts/functional_tests_server' and 'scripts/functional_test_runner'
Resolve #75386, #75522, #75722