]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.e2e-spec.ts
import quincy beta 17.1.0
[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: 'GRAFANA_API_PASSWORD',
34 newValue: 'rafa',
35 oldValue: ''
36 }
37 ];
38 mgrmodules.editMgrModule('dashboard', dashboardArr);
39 });
40
41 it('should test editing on devicehealth module', () => {
42 const devHealthArray: Input[] = [
43 {
44 id: 'mark_out_threshold',
45 newValue: '1987',
46 oldValue: '2419200'
47 },
48 {
49 id: 'pool_name',
50 newValue: 'sox',
51 oldValue: '.mgr'
52 },
53 {
54 id: 'retention_period',
55 newValue: '1999',
56 oldValue: '15552000'
57 },
58 {
59 id: 'scrape_frequency',
60 newValue: '2020',
61 oldValue: '86400'
62 },
63 {
64 id: 'sleep_interval',
65 newValue: '456',
66 oldValue: '600'
67 },
68 {
69 id: 'warn_threshold',
70 newValue: '567',
71 oldValue: '7257600'
72 }
73 ];
74
75 mgrmodules.editMgrModule('devicehealth', devHealthArray);
76 });
77 });
78 });