diff --git a/x-pack/test/fleet_api_integration/apis/settings/update.ts b/x-pack/test/fleet_api_integration/apis/settings/update.ts index 2c4992b21d71a..636864913321c 100644 --- a/x-pack/test/fleet_api_integration/apis/settings/update.ts +++ b/x-pack/test/fleet_api_integration/apis/settings/update.ts @@ -38,6 +38,18 @@ export default function (providerContext: FtrProviderContext) { after(async () => { await esArchiver.unload('fleet/empty_fleet_server'); }); + + it('should explicetly set port on fleet_server_hosts', async function () { + await supertest + .put(`/api/fleet/settings`) + .set('kbn-xsrf', 'xxxx') + .send({ fleet_server_hosts: ['https://test.fr'] }) + .expect(200); + + const { body: getSettingsRes } = await supertest.get(`/api/fleet/settings`).expect(200); + expect(getSettingsRes.item.fleet_server_hosts).to.eql(['https://test.fr:443']); + }); + it("should bump all agent policy's revision", async function () { const { body: testPolicy1PostRes } = await supertest .post(`/api/fleet/agent_policies`)