-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c022176
commit 30221f3
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
x-pack/test_serverless/functional/test_suites/search/management.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({ getPageObject, getService }: FtrProviderContext) { | ||
const commonPage = getPageObject('common'); | ||
const testSubjects = getService('testSubjects'); | ||
|
||
describe('Management', function () { | ||
describe('Disabled UIs', () => { | ||
const DISABLED_PLUGINS = [ | ||
{ | ||
appName: 'Upgrade Assistant', | ||
url: '/stack/upgrade_assistant', | ||
}, | ||
{ | ||
appName: 'Advanced Settings', | ||
url: '/kibana/settings', | ||
}, | ||
{ | ||
appName: 'Migrate', | ||
url: '/data/migrate_data', | ||
}, | ||
{ | ||
appName: 'Remote Clusters', | ||
url: '/data/remote_clusters', | ||
}, | ||
{ | ||
appName: 'Cross-Cluster Replication', | ||
url: '/data/cross_cluster_replication', | ||
}, | ||
{ | ||
appName: 'Snapshot and Restore', | ||
url: '/data/snapshot_restore', | ||
}, | ||
{ | ||
appName: 'Index Lifecycle Management', | ||
url: '/data/index_lifecycle_management', | ||
}, | ||
{ | ||
appName: 'Rollup Jobs', | ||
url: '/data/rollup_jobs', | ||
}, | ||
{ | ||
appName: 'License Management', | ||
url: '/stack/license_management', | ||
}, | ||
]; | ||
|
||
DISABLED_PLUGINS.forEach(({ appName, url }) => { | ||
it(`${appName} is not accessible`, async () => { | ||
await commonPage.navigateToUrl('management', url, { | ||
shouldUseHashForSubUrl: false, | ||
}); | ||
// If the route doesn't exist, the user will be redirected back to the Management landing page | ||
await testSubjects.exists('managementHome'); | ||
}); | ||
}); | ||
}); | ||
}); | ||
} |