Skip to content

Commit

Permalink
Skip test due to unavailable resource (elastic#195330)
Browse files Browse the repository at this point in the history
(cherry picked from commit c215f58)
  • Loading branch information
tsullivan committed Oct 8, 2024
1 parent e9573f3 commit 26653e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
27 changes: 3 additions & 24 deletions x-pack/test/licensing_plugin/scenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,9 @@ export function createScenario({ getService, getPageObjects }: FtrProviderContex
expect(response.body.trial_was_started).to.be(true);
},

async startEnterprise() {
const response = await esSupertestWithoutAuth
.post('/_license/?acknowledge=true')
.send({
license: {
uid: '504430e6-503c-4316-85cb-b402c730ca08',
type: 'enterprise',
issue_date_in_millis: 1669680000000,
start_date_in_millis: 1669680000000,
// expires 2024-12-31
expiry_date_in_millis: 1735689599999,
max_resource_units: 250,
max_nodes: null,
issued_to: 'Elastic - INTERNAL (development environments)',
issuer: 'API',
signature:
'AAAABQAAAA2h1vBafHuRhjOHREKYAAAAIAo5/x6hrsGh1GqqrJmy4qgmEC7gK0U4zQ6q5ZEMhm4jAAABAByGz9MmRW/L7vQriISa6u8Oov7zykA+Cv55BToWEthSn0c5KQUxcWG+K5Cm4/OkFsXA8TE4zFnlSgYxmQi2Eqq7IAKGdcxI/xhQfMsq5RWlSEwtfyV0M2RKJxgam8o2lvKC9EbrU76ISYr7jTkgoBl6GFSjdfXMHmxNXBSKDDm03ZeXkWkvuNNFrHJuYivf2Se9OeeB/eu4jqUI0UuNfPYF07ZcYvtKfj3KX+aysCSV2FW8wgyAjndOPEinfYcwAJ09zcl+MTig2K0DQTsYkLykXmzZnLz6qeuVVFjCTowxizDFW+5MrpzUnwkjqv8CFhLfvxG7waWQWslv8fXLUn8=',
},
})
.auth('license_manager_user', 'license_manager_user-password')
.expect(200);

expect(response.body.license_status).to.be('valid');
},
// FIXME: enterprise license is not available for tests
// https://github.com/elastic/kibana/issues/53575
async startEnterprise() {},

async deleteLicense() {
const response = await esSupertestWithoutAuth
Expand Down
4 changes: 3 additions & 1 deletion x-pack/test/licensing_plugin/server/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default function (ftrContext: FtrProviderContext) {
await testSubjects.missingOrFail('licenseExpiredBanner');
});

it('properly recognize an enterprise license', async () => {
// FIXME: enterprise license is not available for tests
// https://github.com/elastic/kibana/issues/53575
it.skip('properly recognize an enterprise license', async () => {
await scenario.startEnterprise();
await scenario.waitForPluginToDetectLicenseUpdate();

Expand Down

0 comments on commit 26653e2

Please sign in to comment.