mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Fleet] Change error message for allowAgentUpgradeSourceUri (#124706)
This commit is contained in:
parent
912f4b910f
commit
1f0f399d65
2 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ export const checkVersionIsSame = (version: string, kibanaVersion: string) => {
|
|||
const checkSourceUriAllowed = (sourceUri?: string) => {
|
||||
if (sourceUri && !appContextService.getConfig()?.developer?.allowAgentUpgradeSourceUri) {
|
||||
throw new Error(
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to enable.`
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to true.`
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -174,7 +174,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
.expect(400);
|
||||
|
||||
expect(res.body.message).to.eql(
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to enable.`
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to true.`
|
||||
);
|
||||
});
|
||||
it('should respond 400 if trying to upgrade an agent that is unenrolling', async () => {
|
||||
|
@ -591,7 +591,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
})
|
||||
.expect(400);
|
||||
expect(res.body.message).to.eql(
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to enable.`
|
||||
`source_uri is not allowed or recommended in production. Set xpack.fleet.developer.allowAgentUpgradeSourceUri in kibana.yml to true.`
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue