]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/mgr-modules.e2e-spec.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / e2e / 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 mgrmodules.navigateTo();
9 });
10
11 describe('breadcrumb test', () => {
12 it('should open and show breadcrumb', () => {
13 mgrmodules.expectBreadcrumbText('Manager Modules');
14 });
15 });
16
17 describe('verifies editing functionality for manager modules', () => {
18 it('should test editing on balancer module', () => {
19 const balancerArr: Input[] = [
20 {
21 id: 'crush_compat_max_iterations',
22 newValue: '123',
23 oldValue: '25'
24 }
25 ];
26 mgrmodules.editMgrModule('balancer', balancerArr);
27 });
28
29 it('should test editing on dashboard module', () => {
30 const dashboardArr: Input[] = [
31 {
32 id: 'GRAFANA_API_PASSWORD',
33 newValue: 'rafa',
34 oldValue: ''
35 }
36 ];
37 mgrmodules.editMgrModule('dashboard', dashboardArr);
38 });
39
40 it('should test editing on devicehealth module', () => {
41 const devHealthArray: Input[] = [
42 {
43 id: 'mark_out_threshold',
44 newValue: '1987',
45 oldValue: '2419200'
46 },
47 {
48 id: 'pool_name',
49 newValue: 'sox',
50 oldValue: '.mgr'
51 },
52 {
53 id: 'retention_period',
54 newValue: '1999',
55 oldValue: '15552000'
56 },
57 {
58 id: 'scrape_frequency',
59 newValue: '2020',
60 oldValue: '86400'
61 },
62 {
63 id: 'sleep_interval',
64 newValue: '456',
65 oldValue: '600'
66 },
67 {
68 id: 'warn_threshold',
69 newValue: '567',
70 oldValue: '7257600'
71 }
72 ];
73
74 mgrmodules.editMgrModule('devicehealth', devHealthArray);
75 });
76 });
77 });