import { CreateClusterWizardHelper } from 'cypress/integration/cluster/create-cluster.po';
import { HostsPageHelper } from 'cypress/integration/cluster/hosts.po';
-import { OSDsPageHelper } from 'cypress/integration/cluster/osds.po';
import { ServicesPageHelper } from 'cypress/integration/cluster/services.po';
describe('when cluster creation is completed', () => {
const createCluster = new CreateClusterWizardHelper();
const services = new ServicesPageHelper();
- const serviceName = 'rgw.foo';
+ const hosts = new HostsPageHelper();
+
+ const hostnames = ['ceph-node-00', 'ceph-node-01', 'ceph-node-02', 'ceph-node-03'];
beforeEach(() => {
cy.login();
});
describe('Hosts page', () => {
- const hosts = new HostsPageHelper();
- const hostnames = [
- 'ceph-node-00.cephlab.com',
- 'ceph-node-01.cephlab.com',
- 'ceph-node-02.cephlab.com'
- ];
-
beforeEach(() => {
hosts.navigateTo();
});
});
});
- it('should check if rgw service is running', () => {
- hosts.clickTab('cd-host-details', hostnames[1], 'Daemons');
- cy.get('cd-host-details').within(() => {
- services.checkServiceStatus('rgw');
- });
- });
-
- it('should force maintenance and exit', { retries: 1 }, () => {
- hosts.maintenance(hostnames[1], true, true);
- });
- });
-
- describe('OSDs page', () => {
- const osds = new OSDsPageHelper();
-
- beforeEach(() => {
- osds.navigateTo();
- });
-
- it('should check if osds are created', { retries: 1 }, () => {
- osds.getTableCount('total').should('be.gte', 1);
- });
- });
-
- describe('Services page', () => {
- beforeEach(() => {
- services.navigateTo();
- });
-
- it('should check if services are created', () => {
- services.checkExist(serviceName, true);
+ it('should check if mon daemon is running on all hosts', () => {
+ for (const hostname of hostnames) {
+ hosts.clickTab('cd-host-details', hostname, 'Daemons');
+ cy.get('cd-host-details').within(() => {
+ services.checkServiceStatus('mon');
+ });
+ }
});
});
});