]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/05-services.e2e-spec.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / e2e / orchestrator / 05-services.e2e-spec.ts
1 import { ServicesPageHelper } from '../cluster/services.po';
2
3 describe('Services page', () => {
4 const services = new ServicesPageHelper();
5 const serviceName = 'rgw.foo';
6
7 beforeEach(() => {
8 cy.login();
9 services.navigateTo();
10 });
11
12 describe('when Orchestrator is available', () => {
13 it('should create an rgw service', () => {
14 services.navigateTo('create');
15 services.addService('rgw');
16
17 services.checkExist(serviceName, true);
18 });
19
20 it('should edit a service', () => {
21 const count = '2';
22 services.editService(serviceName, count);
23 services.expectPlacementCount(serviceName, count);
24 });
25
26 it('should create and delete an ingress service', () => {
27 services.navigateTo('create');
28 services.addService('ingress');
29
30 services.checkExist('ingress.rgw.foo', true);
31
32 services.deleteService('ingress.rgw.foo');
33 });
34 });
35 });