]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #51561 from rhcs-dashboard/hosts-no-data
authorNizamudeen A <nia@redhat.com>
Thu, 17 Aug 2023 05:27:52 +0000 (10:57 +0530)
committerGitHub <noreply@github.com>
Thu, 17 Aug 2023 05:27:52 +0000 (10:57 +0530)
mgr/dashboard: add not avaialable with unpresent host facts

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: cloudbehl <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
1  2 
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.ts

index 6c9311cbeb8210b6ea534c228fbd7c9afd8157d0,1678316ba05f29400c1b77460c99224975567da0..661834d620d41caca1c54d0b5025cc825e2d36f8
@@@ -224,10 -213,10 +224,10 @@@ describe('HostsComponent', () => 
      const spans = fixture.debugElement.nativeElement.querySelectorAll(
        '.datatable-body-cell-label span'
      );
-     expect(spans[7].textContent).toBe('N/A');
+     expect(spans[7].textContent).toBe('-');
    });
  
 -  it('should test if host facts are unavailable if get_fatcs orch feature is not available', () => {
 +  it('should test if host facts are unavailable if get_facts orch feature is not available', () => {
      const payload = [
        {
          hostname: 'host_test',
index 0caeac9f2eb8f797bffc7d58f3dd89fa4bc777d1,d69dc59a11714c98f49c3b93cbfa7bd64edf8ed0..e04269aa67c49ddf8e6418b0781d10cad7342d8b
@@@ -26,10 -26,8 +26,9 @@@ import { FinishedTask } from '~/app/sha
  import { OrchestratorFeature } from '~/app/shared/models/orchestrator.enum';
  import { OrchestratorStatus } from '~/app/shared/models/orchestrator.interface';
  import { Permissions } from '~/app/shared/models/permissions';
- import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe';
  import { EmptyPipe } from '~/app/shared/pipes/empty.pipe';
  import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
 +import { CdTableServerSideService } from '~/app/shared/services/cd-table-server-side.service';
  import { ModalService } from '~/app/shared/services/modal.service';
  import { NotificationService } from '~/app/shared/services/notification.service';
  import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';