Add AMS health probe to blazemeter - #25072
Conversation
evalya-impact-summaryevalya impact analysis |
Parked — requires a paired crawler-sdk changeThis PR is parked because the
Adding an To unblock: add Leaving as draft for now. No action needed here until the crawler-sdk side lands. |
Add supported_auth_methods, supported_connection_methods (fixed base URL), and a health_probe so the account service can verify credentials when a user saves an account. A 2xx means the credentials are valid; a 401 means they are not.
The /v4/search endpoint is a POST, not GET. Use a minimal search payload (entity=master, limit=1) so the probe validates credentials without pulling data.
0857c61 to
46e05ba
Compare
Validation ReportAll 21 validations passed. Show details
|
Impact
What this does
Adds an AMS health probe to the blazemeter integration's
assets/account_config.jsonso the account service can verify credentials when a user saves an account.The probe only runs when all three of
supported_auth_methods,supported_connection_methods, andhealth_probeare present. This change declares all three:supported_auth_methods— basic auth.supported_connection_methods— a fixed base URL ofhttps://a.blazemeter.com/api.health_probe— aGETto/v4/searchwith anAccept: application/jsonheader. With the auth attached, a 2xx means the credentials are valid; a 401 means they are not.Backward compatibility
This integration previously had no
account_config.json; the credential fields were declared in crawler-sdk'saccount_config_fields(). The fieldkeyvalues here match exactly what the crawler reads, so existing accounts keep working unchanged.Testing
GET /v4/searchwith valid credentials must return a 2xx, and with invalid credentials a 401.🤖 Generated with Claude Code