]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.e2e-spec.ts
import 15.2.4
[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 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 diskprediction_cloud module', () => {
19 const diskpredCloudArr: Input[] = [
20 {
21 id: 'diskprediction_cert_context',
22 newValue: 'Foo',
23 oldValue: ''
24 },
25 {
26 id: 'sleep_interval',
27 newValue: '456',
28 oldValue: '60'
29 }
30 ];
31 mgrmodules.editMgrModule('diskprediction_cloud', diskpredCloudArr);
32 });
33
34 it('should test editing on balancer module', () => {
35 const balancerArr: Input[] = [
36 {
37 id: 'crush_compat_max_iterations',
38 newValue: '123',
39 oldValue: '25'
40 }
41 ];
42 mgrmodules.editMgrModule('balancer', balancerArr);
43 });
44
45 it('should test editing on dashboard module', () => {
46 const dashboardArr: Input[] = [
47 {
48 id: 'RGW_API_USER_ID',
49 newValue: 'rq',
50 oldValue: ''
51 },
52 {
53 id: 'GRAFANA_API_PASSWORD',
54 newValue: 'rafa',
55 oldValue: ''
56 }
57 ];
58 mgrmodules.editMgrModule('dashboard', dashboardArr);
59 });
60
61 it('should test editing on devicehealth module', () => {
62 const devHealthArray: Input[] = [
63 {
64 id: 'mark_out_threshold',
65 newValue: '1987',
66 oldValue: '2419200'
67 },
68 {
69 id: 'pool_name',
70 newValue: 'sox',
71 oldValue: 'device_health_metrics'
72 },
73 {
74 id: 'retention_period',
75 newValue: '1999',
76 oldValue: '15552000'
77 },
78 {
79 id: 'scrape_frequency',
80 newValue: '2020',
81 oldValue: '86400'
82 },
83 {
84 id: 'sleep_interval',
85 newValue: '456',
86 oldValue: '600'
87 },
88 {
89 id: 'warn_threshold',
90 newValue: '567',
91 oldValue: '7257600'
92 }
93 ];
94
95 mgrmodules.editMgrModule('devicehealth', devHealthArray);
96 });
97 });
98 });