kibana/x-pack/test/fleet_api_integration/apis
John Schulz 45255425f4
Add the more explicit & actionable text listed in ticket (#97857)
## Summary
closes #92591

Create a new `HostedAgentPolicyRestrictionRelatedError` which ensures the additional text from #92591 is included in all the appropriate places, but only specified once.

#### Some current examples
 * `Cannot update integrations of hosted agent policy ${id}`
 * `Cannot remove integrations of hosted agent policy ${id}`
 * `Cannot reassign an agent to hosted agent policy ${newAgentPolicy.id}`


#### In this PR are now
 * `Cannot update integrations of hosted agent policy ${id}  in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`
 * `Cannot remove integrations of hosted agent policy ${id} in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`
 * `Cannot reassign an agent to hosted agent policy ${newAgentPolicy.id} in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-04-21 15:52:02 -04:00
..
agent_policy [Fleet] Use 'hosted agent policy' naming in UI & API messages (#97287) 2021-04-15 21:01:28 -04:00
agents Add the more explicit & actionable text listed in ticket (#97857) 2021-04-21 15:52:02 -04:00
data_streams
enrollment_api_keys [Fleet] Fleet server onboarding UI (#96867) 2021-04-15 01:22:32 -04:00
epm [Fleet] Finer-grained error information from install/upgrade API (#95649) 2021-04-18 16:47:24 +02:00
fixtures [Fleet] Finer-grained error information from install/upgrade API (#95649) 2021-04-18 16:47:24 +02:00
package_policy [Fleet] Use 'hosted agent policy' naming in UI & API messages (#97287) 2021-04-15 21:01:28 -04:00
preconfiguration [Fleet] Configure Fleet packages and integrations through endpoint (#94509) 2021-03-29 21:41:27 -04:00
settings [Fleet] Remove fleet agent routes and related services (#97206) 2021-04-15 17:15:43 -04:00
fleet_setup.ts [Security][Fleet] Install the security_detection_engine package automatically (#97191) 2021-04-20 13:07:11 -04:00
index.js [Fleet] Add instructions and generation of a service token for Fleet Server onboarding (#97585) 2021-04-20 13:53:18 -04:00
mock_http_server.d.ts
service_tokens.ts [Fleet] Add instructions and generation of a service token for Fleet Server onboarding (#97585) 2021-04-20 13:53:18 -04:00