closes [#198015](https://github.com/elastic/kibana/issues/198015)
## Summary
Migrate most of the infra APIs integration tests to the
deployment-agnostic approach.
>[!important]
> - Metrics UI related tests were note migrated because the feature is
not enabled on serverless.
> - `Host with active alerts` test was not migrated because
`es_archiver` fails to load the alerts data. This is because on
serverless, the alerts indices are created as managed data streams and
that causes the `es_archiver` to fail. We should probably try use
synthtrace.
- [x] Tested against MKI
- [x] Tested against stateful
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>