]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.e2e-spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / cluster / mgr-modules.e2e-spec.ts
1 import { Input, ManagerModulesPageHelper } from './mgr-modules.po';
2
3 describe('Manager modules page', () => {
4 const mgrmodules = new ManagerModulesPageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 Cypress.Cookies.preserveOnce('token');
9 mgrmodules.navigateTo();
10 });
11
12 describe('breadcrumb test', () => {
13 it('should open and show breadcrumb', () => {
14 mgrmodules.expectBreadcrumbText('Manager Modules');
15 });
16 });
17
18 describe('verifies editing functionality for manager modules', () => {
19 it('should test editing on balancer module', () => {
20 const balancerArr: Input[] = [
21 {
22 id: 'crush_compat_max_iterations',
23 newValue: '123',
24 oldValue: '25'
25 }
26 ];
27 mgrmodules.editMgrModule('balancer', balancerArr);
28 });
29
30 it('should test editing on dashboard module', () => {
31 const dashboardArr: Input[] = [
32 {
33 id: 'RGW_API_USER_ID',
34 newValue: 'rq',
35 oldValue: ''
36 },
37 {
38 id: 'GRAFANA_API_PASSWORD',
39 newValue: 'rafa',
40 oldValue: ''
41 }
42 ];
43 mgrmodules.editMgrModule('dashboard', dashboardArr);
44 });
45
46 it('should test editing on devicehealth module', () => {
47 const devHealthArray: Input[] = [
48 {
49 id: 'mark_out_threshold',
50 newValue: '1987',
51 oldValue: '2419200'
52 },
53 {
54 id: 'pool_name',
55 newValue: 'sox',
56 oldValue: 'device_health_metrics'
57 },
58 {
59 id: 'retention_period',
60 newValue: '1999',
61 oldValue: '15552000'
62 },
63 {
64 id: 'scrape_frequency',
65 newValue: '2020',
66 oldValue: '86400'
67 },
68 {
69 id: 'sleep_interval',
70 newValue: '456',
71 oldValue: '600'
72 },
73 {
74 id: 'warn_threshold',
75 newValue: '567',
76 oldValue: '7257600'
77 }
78 ];
79
80 mgrmodules.editMgrModule('devicehealth', devHealthArray);
81 });
82 });
83 });