Skip to content

Commit

Permalink
remove potentially dangerous operation
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Dec 19, 2019
1 parent 399d4db commit 9bb4e0f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
3 changes: 0 additions & 3 deletions x-pack/test/licensing_plugin/legacy/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ export default function(ftrContext: FtrProviderContext) {
legacyInitialLicenseHeaders['kbn-xpack-sig']
);

await scenario.deleteLicense();
await scenario.waitForPluginToDetectLicenseUpdate();

// banner shown only when license expired not just deleted
await testSubjects.missingOrFail('licenseExpiredBanner');
});
Expand Down
16 changes: 0 additions & 16 deletions x-pack/test/licensing_plugin/public/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,6 @@ export default function(ftrContext: FtrProviderContext) {
})
).to.be('basic');

await scenario.deleteLicense();
await scenario.waitForPluginToDetectLicenseUpdate();

expect(
await browser.executeAsync(async (cb: Function) => {
const { setup, testUtils } = window.__coreProvider;
// this call enforces signature check to detect license update
// and causes license re-fetch
await setup.core.http.get('/');
await testUtils.delay(100);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe(license => cb(license.type));
})
).to.be(null);

// banner shown only when license expired not just deleted
await testSubjects.missingOrFail('licenseExpiredBanner');
});
Expand Down
10 changes: 0 additions & 10 deletions x-pack/test/licensing_plugin/server/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,6 @@ export default function(ftrContext: FtrProviderContext) {
isEnabled: true,
});

await scenario.deleteLicense();
await scenario.waitForPluginToDetectLicenseUpdate();
const inactiveLicense = await scenario.getLicense();
expect(inactiveLicense.signature).to.not.be(initialLicense.signature);
expect(inactiveLicense).to.not.have.property('license');
expect(inactiveLicense.features?.security).to.eql({
isAvailable: false,
isEnabled: true,
});

// banner shown only when license expired not just deleted
await testSubjects.missingOrFail('licenseExpiredBanner');
});
Expand Down

0 comments on commit 9bb4e0f

Please sign in to comment.