sleep 10
ceph orch device ls --format=json | tee cypress/fixtures/orchestrator/inventory.json
-cypress_run "orchestrator/02-hosts-inventory.e2e-spec.ts"
cypress_run "orchestrator/03-inventory.e2e-spec.ts"
cypress_run "orchestrator/04-osds.e2e-spec.ts" 300000
for (const host of this.hosts) {
hosts.clickTab('cd-host-details', host.name, 'Physical Disks');
cy.get('cd-host-details').within(() => {
- hosts.getTableCount('total').should('be.gte', 0);
+ hosts.expectTableCount('total', host.devices.length);
});
}
});
+++ /dev/null
-import { HostsPageHelper } from '../cluster/hosts.po';
-
-describe('Hosts page', () => {
- const hosts = new HostsPageHelper();
-
- beforeEach(() => {
- cy.login();
- Cypress.Cookies.preserveOnce('token');
- hosts.navigateTo();
- });
-
- describe('when Orchestrator is available', () => {
- beforeEach(function () {
- cy.fixture('orchestrator/inventory.json').as('hosts');
- });
-
- it('should display correct inventory', function () {
- for (const host of this.hosts) {
- hosts.clickTab('cd-host-details', host.name, 'Physical Disks');
- cy.get('cd-host-details').within(() => {
- hosts.getTableCount('total').should('be.eq', host.devices.length);
- });
- }
- });
- });
-});