From a1b2dc9ed8d15c5ce6e8de8f11ac8c17f7cc084c Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Tue, 31 Mar 2020 14:43:17 +0000 Subject: [PATCH] mgr/dashboard: Update npm dependencies ngx-bootstrap now requires BrowserAnimationsModule, so it has to be imported in each unit test that imports ngx-bootstrap modules. Fixes: https://tracker.ceph.com/issues/44854 Signed-off-by: Tiago Melo --- .../mgr/dashboard/frontend/package-lock.json | 73 +++++++++++-------- .../mgr/dashboard/frontend/package.json | 20 ++--- .../iscsi-target-details.component.spec.ts | 3 +- .../iscsi-target-list.component.spec.ts | 2 + .../ceph/block/iscsi/iscsi.component.spec.ts | 3 +- .../daemon-list/daemon-list.component.spec.ts | 2 + .../image-list/image-list.component.spec.ts | 2 + .../overview/overview.component.spec.ts | 2 + .../pool-list/pool-list.component.spec.ts | 2 + .../rbd-configuration-list.component.spec.ts | 2 + .../block/rbd-list/rbd-list.component.spec.ts | 2 + .../rbd-namespace-list.component.spec.ts | 2 + .../rbd-snapshot-list.component.spec.ts | 2 + .../rbd-trash-list.component.spec.ts | 2 + .../cephfs-clients.component.spec.ts | 8 +- .../cephfs-list/cephfs-list.component.spec.ts | 3 +- .../configuration.component.spec.ts | 2 + .../host-details.component.spec.ts | 2 + .../cluster/hosts/hosts.component.spec.ts | 2 + .../inventory-devices.component.spec.ts | 9 ++- .../inventory/inventory.component.spec.ts | 2 + .../mgr-module-list.component.spec.ts | 2 + ...devices-selection-groups.component.spec.ts | 9 ++- ...-devices-selection-modal.component.spec.ts | 2 + .../osd/osd-form/osd-form.component.spec.ts | 2 + .../osd/osd-list/osd-list.component.spec.ts | 2 + .../active-alert-list.component.spec.ts | 2 + .../rules-list/rules-list.component.spec.ts | 3 +- .../silence-list.component.spec.ts | 2 + .../services/services.component.spec.ts | 10 ++- .../nfs-details/nfs-details.component.spec.ts | 3 +- .../nfs/nfs-list/nfs-list.component.spec.ts | 2 + .../performance-counter.component.spec.ts | 3 +- .../pool-list/pool-list.component.spec.ts | 2 + .../rgw-bucket-list.component.spec.ts | 2 + .../rgw-daemon-list.component.spec.ts | 2 + .../rgw-user-details.component.spec.ts | 3 +- .../rgw-user-list.component.spec.ts | 9 ++- .../smart-list/smart-list.component.spec.ts | 3 +- .../role-list/role-list.component.spec.ts | 2 + .../user-list/user-list.component.spec.ts | 2 + .../login-layout.component.spec.ts | 2 + .../app/core/navigation/navigation.module.ts | 2 - .../datatable/table/table.component.spec.ts | 2 + .../shared/datatable/table/table.component.ts | 2 +- .../models/cd-table-column-filters-change.ts | 2 +- 46 files changed, 166 insertions(+), 58 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/package-lock.json b/src/pybind/mgr/dashboard/frontend/package-lock.json index 972398eed0c..4dc78438ac1 100644 --- a/src/pybind/mgr/dashboard/frontend/package-lock.json +++ b/src/pybind/mgr/dashboard/frontend/package-lock.json @@ -125,6 +125,14 @@ "tslib": "1.10.0", "typescript": "3.5.3", "webpack-sources": "1.4.3" + }, + "dependencies": { + "tslib": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true + } } }, "@angular-devkit/build-webpack": { @@ -3126,9 +3134,12 @@ } }, "@swimlane/ngx-datatable": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@swimlane/ngx-datatable/-/ngx-datatable-15.0.2.tgz", - "integrity": "sha512-IlUyCs/hLv12hzz2pGugbrdRpBbwE6JUM4Bm4CCqLptmZj+t8pw8Ywthde8yUDdpgGgTJeJ9G5o92QadyGbP3g==" + "version": "16.0.3", + "resolved": "https://registry.npmjs.org/@swimlane/ngx-datatable/-/ngx-datatable-16.0.3.tgz", + "integrity": "sha512-SuVd89CTFhy+21SF8W+qmGoXGFeB7KB5/VwkrgvDRs0GnBC5m9u1nAyN0ypSXMmqilcem6vPmh4yVhjPL1rseg==", + "requires": { + "tslib": "^1.9.0" + } }, "@types/babel__core": { "version": "7.1.6", @@ -4410,9 +4421,9 @@ "dev": true }, "bootstrap": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz", - "integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag==" + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.4.1.tgz", + "integrity": "sha512-tbx5cHubwE6e2ZG7nqM3g/FZ5PQEDMWmMGNrCUBVRPHXTJaH7CBDdsLeu3eCh3B1tzAxTnAbtmrzvWEvT2NNEA==" }, "brace-expansion": { "version": "1.1.11", @@ -5987,9 +5998,9 @@ "dev": true }, "detect-browser": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-4.7.0.tgz", - "integrity": "sha512-x+7zkRxwEiQ8qLKKfln9pTa4n87fbPHVpHyImmpEQn5lAmKurWBVbg0tb99ruAHqSA0ejrXMp0MahKEulE7LqA==" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/detect-browser/-/detect-browser-5.0.0.tgz", + "integrity": "sha512-jUaq/SAT9YMlmhq/8w7gnqqr8AMcc7iYG1eAp7vP/7xn2eLtlcnEmxOkh2PmTg2Q+jVSUO3XD4sZ/IldbGg3dA==" }, "detect-file": { "version": "1.0.0", @@ -12571,9 +12582,9 @@ "dev": true }, "ng-block-ui": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/ng-block-ui/-/ng-block-ui-2.1.7.tgz", - "integrity": "sha512-c06fUoFzTcj2n/ybrg85qx33u3ceIbEkpHJ/KEo2Hf7PoZJZ0H4jg55g67ChFT6Ctw/2FfGyejiHjsmfhqe8Aw==", + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/ng-block-ui/-/ng-block-ui-2.1.8.tgz", + "integrity": "sha512-BBcjUn9b/m3+wPlXkYExuy6ko+5oK7pte79gGUVo6a3HqpLnvPQXFgKV1kUpIM97NYfKKtR/+dPj7Xhh/GSV4w==", "requires": { "tslib": "^1.9.0" } @@ -12596,9 +12607,9 @@ } }, "ng-click-outside": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ng-click-outside/-/ng-click-outside-5.3.0.tgz", - "integrity": "sha512-+WYtu2hSQy0F6VlHOqKhPtdVJimTiXXNtZPBGfLORJNX71ieYGsentke8KG+8EudR36FUB6Ya9g2GwGXM0UqdA==" + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/ng-click-outside/-/ng-click-outside-6.0.0.tgz", + "integrity": "sha512-jOUidlFthMz0yI7Aey3fTmThduUIFG0h3kYgqD1uFO0rRvHWF0Cp5g9/fsJrBRFNEzdADRPoZnapyKzjv7m7Ig==" }, "ng-mocks": { "version": "9.2.0", @@ -12617,14 +12628,14 @@ } }, "ngx-bootstrap": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-5.1.2.tgz", - "integrity": "sha512-L9flZCGEf+/G0sOZXs3WJ2tp7SW6/7soQbAnpFmlvFURcSKv9p2/aiH/VbG47Ra50e5i6q3ereKEo7IpGEQwVQ==" + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/ngx-bootstrap/-/ngx-bootstrap-5.5.0.tgz", + "integrity": "sha512-BJeghbkKFQl49sg3GIYQyjvwaHn64xFOsinBVD8HWKOVpRJSnuafrjXByGDtfq35jGY4R+7iBLksM1IYLUPshg==" }, "ngx-toastr": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-11.0.0.tgz", - "integrity": "sha512-WO+dVaGufn+kAtBnHl7s9ruDwDdJ5+vLJsaZO6tMKwavsgPLycl2iymVgUkQssEsRUYUKBix0Af4pjN0JZVOtw==", + "version": "11.3.3", + "resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-11.3.3.tgz", + "integrity": "sha512-DbLFkSZHsVPuuIIrsY1ziEhdkFUQ0V1yG1N0+1nKXGI5QBVesEDxLUVtntjzxJcWw/uUV+bKApo//tGHHORabQ==", "requires": { "tslib": "^1.9.0" } @@ -15796,11 +15807,11 @@ } }, "simplebar-angular": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/simplebar-angular/-/simplebar-angular-2.0.1.tgz", - "integrity": "sha512-NLOkEhtBG/YmYSNlKJQhWQR1fdcgPwITqLL2fVPCWGrrdVcyIbq7LAkr6N/UpvspPJOfxdElk/NRuOom3E8Lpg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/simplebar-angular/-/simplebar-angular-2.1.0.tgz", + "integrity": "sha512-WntI9f0vKiPqh4Y/b0tyuzklzxCgEGBHV8Z07rSichbhPe8EAVt/QJQV9nyynWIBH1Mf4/ZAgoPfO00cff6Liw==", "requires": { - "simplebar": "^5.0.7", + "simplebar": "^5.1.0", "tslib": "^1.9.0" } }, @@ -16686,9 +16697,9 @@ } }, "swagger-ui-dist": { - "version": "3.23.11", - "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.23.11.tgz", - "integrity": "sha512-ipENHHH/sqpngTpHXUwg55eAOZ7b2UVayUwwuWPA6nQSPhjBVXX4zOPpNKUwQIFOl3oIwVvZF7mqoxH7pMgVzA==" + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.25.0.tgz", + "integrity": "sha512-vwvJPPbdooTvDwLGzjIXinOXizDJJ6U1hxnJL3y6U3aL1d2MSXDmKg2139XaLBhsVZdnQJV2bOkX4reB+RXamg==" }, "symbol-observable": { "version": "1.2.0", @@ -17150,9 +17161,9 @@ } }, "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz", + "integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" }, "tslint": { "version": "6.1.0", diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 934c473ffb0..282d98e8560 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -89,25 +89,25 @@ "@angular/router": "8.2.14", "@auth0/angular-jwt": "2.1.1", "@ngx-translate/i18n-polyfill": "1.0.0", - "@swimlane/ngx-datatable": "15.0.2", + "@swimlane/ngx-datatable": "16.0.3", "angular-tree-component": "8.5.6", "async-mutex": "0.1.4", - "bootstrap": "4.3.1", + "bootstrap": "4.4.1", "chart.js": "2.8.0", - "detect-browser": "4.7.0", + "detect-browser": "5.0.0", "fork-awesome": "1.1.7", "lodash": "4.17.15", "moment": "2.24.0", - "ng-block-ui": "2.1.7", + "ng-block-ui": "2.1.8", "ng-bootstrap-form-validation": "5.0.0", - "ng-click-outside": "5.3.0", + "ng-click-outside": "6.0.0", "ng2-charts": "2.3.0", - "ngx-bootstrap": "5.1.2", - "ngx-toastr": "11.0.0", + "ngx-bootstrap": "5.5.0", + "ngx-toastr": "11.3.3", "rxjs": "6.5.4", - "simplebar-angular": "2.0.1", - "swagger-ui-dist": "3.23.11", - "tslib": "1.10.0", + "simplebar-angular": "2.1.0", + "swagger-ui-dist": "3.25.0", + "tslib": "1.11.1", "zone.js": "0.9.1" }, "devDependencies": { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.spec.ts index e072facaa1d..26d726732cc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-details/iscsi-target-details.component.spec.ts @@ -3,6 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TreeModel, TreeModule } from 'angular-tree-component'; import * as _ from 'lodash'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper'; import { CdTableSelection } from '../../../shared/models/cd-table-selection'; import { SharedModule } from '../../../shared/shared.module'; @@ -14,7 +15,7 @@ describe('IscsiTargetDetailsComponent', () => { configureTestBed({ declarations: [IscsiTargetDetailsComponent], - imports: [TreeModule.forRoot(), SharedModule], + imports: [BrowserAnimationsModule, TreeModule.forRoot(), SharedModule], providers: [i18nProviders] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.spec.ts index 91bcc1f7db2..50d636febe5 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TreeModule } from 'angular-tree-component'; @@ -35,6 +36,7 @@ describe('IscsiTargetListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, HttpClientTestingModule, RouterTestingModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts index 52513e6b9fa..b693c3d45f3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi/iscsi.component.spec.ts @@ -1,5 +1,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { of } from 'rxjs'; @@ -28,7 +29,7 @@ describe('IscsiComponent', () => { }; configureTestBed({ - imports: [SharedModule], + imports: [BrowserAnimationsModule, SharedModule], declarations: [IscsiComponent], schemas: [NO_ERRORS_SCHEMA], providers: [ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.spec.ts index 84425710504..fb427fd6431 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/daemon-list/daemon-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { ProgressbarModule } from 'ngx-bootstrap/progressbar'; @@ -17,6 +18,7 @@ describe('DaemonListComponent', () => { configureTestBed({ declarations: [DaemonListComponent, MirrorHealthColorPipe], imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.spec.ts index 253073759bc..aedc7e2bf2d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/image-list/image-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { ProgressbarModule } from 'ngx-bootstrap/progressbar'; @@ -17,6 +18,7 @@ describe('ImageListComponent', () => { configureTestBed({ declarations: [ImageListComponent, MirrorHealthColorPipe], imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts index a7a0aa4a72b..fc1cd20fc9c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; @@ -28,6 +29,7 @@ describe('OverviewComponent', () => { PoolListComponent ], imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts index 129dd7c2a1b..06e21fc0d9f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts @@ -2,6 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { ProgressbarModule } from 'ngx-bootstrap/progressbar'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -19,6 +20,7 @@ describe('PoolListComponent', () => { configureTestBed({ declarations: [PoolListComponent, MirrorHealthColorPipe], imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.spec.ts index 27b5650a397..b9837ee1cfe 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component.spec.ts @@ -1,5 +1,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; @@ -24,6 +25,7 @@ describe('RbdConfigurationListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, FormsModule, NgxDatatableModule, RouterTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts index 9da640e4822..f9ad4cf7cb7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { AlertModule } from 'ngx-bootstrap/alert'; @@ -42,6 +43,7 @@ describe('RbdListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.spec.ts index 426c912c859..7abb507ca4d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -18,6 +19,7 @@ describe('RbdNamespaceListComponent', () => { configureTestBed({ declarations: [RbdNamespaceListComponent, RbdTabsComponent], imports: [ + BrowserAnimationsModule, SharedModule, HttpClientTestingModule, RouterTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts index ea95a5540a6..c032d0d522b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { I18n } from '@ngx-translate/i18n-polyfill'; @@ -50,6 +51,7 @@ describe('RbdSnapshotListComponent', () => { declarations: [RbdSnapshotListComponent, RbdTabsComponent], imports: [ ApiModule, + BrowserAnimationsModule, ComponentsModule, DataTableModule, HttpClientTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.spec.ts index 8c83ceb9b70..68dc6303f46 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -30,6 +31,7 @@ describe('RbdTrashListComponent', () => { configureTestBed({ declarations: [RbdTrashListComponent, RbdTabsComponent], imports: [ + BrowserAnimationsModule, HttpClientTestingModule, RouterTestingModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.spec.ts index bcc630630b7..bdc0dcf250d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ToastrModule } from 'ngx-toastr'; @@ -18,7 +19,12 @@ describe('CephfsClientsComponent', () => { let fixture: ComponentFixture; configureTestBed({ - imports: [ToastrModule.forRoot(), SharedModule, HttpClientTestingModule], + imports: [ + BrowserAnimationsModule, + ToastrModule.forRoot(), + SharedModule, + HttpClientTestingModule + ], declarations: [CephfsClientsComponent], providers: i18nProviders }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts index 55eafbb99e8..f0d0803295d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { Component, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper'; import { CdTableSelection } from '../../../shared/models/cd-table-selection'; @@ -18,7 +19,7 @@ describe('CephfsListComponent', () => { let fixture: ComponentFixture; configureTestBed({ - imports: [SharedModule, HttpClientTestingModule], + imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule], declarations: [CephfsListComponent, CephfsTabsStubComponent], providers: i18nProviders }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.spec.ts index 712c478dab2..817ce39c3bb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration.component.spec.ts @@ -2,6 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -18,6 +19,7 @@ describe('ConfigurationComponent', () => { configureTestBed({ declarations: [ConfigurationComponent, ConfigurationDetailsComponent], imports: [ + BrowserAnimationsModule, SharedModule, FormsModule, TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.spec.ts index b78c15ffc29..9bca99a9657 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { NgBootstrapFormValidationModule } from 'ng-bootstrap-form-validation'; @@ -22,6 +23,7 @@ describe('HostDetailsComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, HttpClientTestingModule, TabsModule.forRoot(), BsDropdownModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts index 889f60610ba..1844f70ab03 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; @@ -30,6 +31,7 @@ describe('HostsComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, CephSharedModule, SharedModule, HttpClientTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts index af6f807bc28..695b3377a15 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import * as _ from 'lodash'; import { ToastrModule } from 'ngx-toastr'; @@ -14,7 +15,13 @@ describe('InventoryDevicesComponent', () => { let fixture: ComponentFixture; configureTestBed({ - imports: [FormsModule, HttpClientTestingModule, SharedModule, ToastrModule.forRoot()], + imports: [ + BrowserAnimationsModule, + FormsModule, + HttpClientTestingModule, + SharedModule, + ToastrModule.forRoot() + ], providers: [i18nProviders], declarations: [InventoryDevicesComponent] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts index 10a930f5b58..8ef14bc6d76 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { ToastrModule } from 'ngx-toastr'; @@ -19,6 +20,7 @@ describe('InventoryComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, FormsModule, SharedModule, HttpClientTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts index 931ef28e921..1072a9e449e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -28,6 +29,7 @@ describe('MgrModuleListComponent', () => { configureTestBed({ declarations: [MgrModuleListComponent, MgrModuleDetailsComponent], imports: [ + BrowserAnimationsModule, RouterTestingModule, SharedModule, HttpClientTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts index d454899c549..2d7d5161453 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ToastrModule } from 'ngx-toastr'; @@ -50,7 +51,13 @@ describe('OsdDevicesSelectionGroupsComponent', () => { }; configureTestBed({ - imports: [FormsModule, HttpClientTestingModule, SharedModule, ToastrModule.forRoot()], + imports: [ + BrowserAnimationsModule, + FormsModule, + HttpClientTestingModule, + SharedModule, + ToastrModule.forRoot() + ], providers: [i18nProviders], declarations: [OsdDevicesSelectionGroupsComponent, InventoryDevicesComponent] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts index e15c636cd34..0cf0d67ebf4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { BsModalRef } from 'ngx-bootstrap/modal'; @@ -44,6 +45,7 @@ describe('OsdDevicesSelectionModalComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, FormsModule, HttpClientTestingModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts index 5b4d774a699..3bc895bc953 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { ToastrModule } from 'ngx-toastr'; @@ -95,6 +96,7 @@ describe('OsdFormComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, HttpClientTestingModule, FormsModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts index bba92939450..20d953f9d3a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts @@ -2,6 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import * as _ from 'lodash'; @@ -89,6 +90,7 @@ describe('OsdListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, HttpClientTestingModule, PerformanceCounterModule, TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.spec.ts index 1b2c18aced1..ba736415afc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -24,6 +25,7 @@ describe('ActiveAlertListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, HttpClientTestingModule, TabsModule.forRoot(), RouterTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts index 4e2495f9dd1..27581aae7dc 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -15,7 +16,7 @@ describe('RulesListComponent', () => { configureTestBed({ declarations: [RulesListComponent], - imports: [HttpClientTestingModule, SharedModule, TabsModule.forRoot()], + imports: [HttpClientTestingModule, SharedModule, TabsModule.forRoot(), BrowserAnimationsModule], providers: [PrometheusService, SettingsService, i18nProviders] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.spec.ts index 4573d71b2fe..6a60f83f6e4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; @@ -28,6 +29,7 @@ describe('SilenceListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, SharedModule, BsDropdownModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts index 6e467ca2a55..925ed8a7a8c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { of } from 'rxjs'; @@ -51,7 +52,14 @@ describe('ServicesComponent', () => { ]; configureTestBed({ - imports: [CephModule, CoreModule, SharedModule, HttpClientTestingModule, RouterTestingModule], + imports: [ + BrowserAnimationsModule, + CephModule, + CoreModule, + SharedModule, + HttpClientTestingModule, + RouterTestingModule + ], providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }, i18nProviders], declarations: [] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.spec.ts index a1d1c6d349b..065cb69412c 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-details/nfs-details.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import * as _ from 'lodash'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -18,7 +19,7 @@ describe('NfsDetailsComponent', () => { configureTestBed({ declarations: [NfsDetailsComponent], - imports: [SharedModule, TabsModule.forRoot(), HttpClientTestingModule], + imports: [BrowserAnimationsModule, SharedModule, TabsModule.forRoot(), HttpClientTestingModule], providers: i18nProviders }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts index cbf38d72b5d..43d6c7c155f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -36,6 +37,7 @@ describe('NfsListComponent', () => { { declarations: [NfsListComponent, NfsDetailsComponent], imports: [ + BrowserAnimationsModule, HttpClientTestingModule, RouterTestingModule, SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.spec.ts index 233599bed42..ed553e1b407 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/performance-counter/performance-counter/performance-counter.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { configureTestBed, i18nProviders } from '../../../../testing/unit-test-helper'; @@ -13,7 +14,7 @@ describe('PerformanceCounterComponent', () => { configureTestBed({ declarations: [PerformanceCounterComponent, TablePerformanceCounterComponent], - imports: [RouterTestingModule, SharedModule, HttpClientTestingModule], + imports: [RouterTestingModule, SharedModule, HttpClientTestingModule, BrowserAnimationsModule], providers: i18nProviders }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts index 1650421002c..e5b1791df9a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import * as _ from 'lodash'; @@ -49,6 +50,7 @@ describe('PoolListComponent', () => { configureTestBed({ declarations: [PoolListComponent, PoolDetailsComponent, RbdConfigurationListComponent], imports: [ + BrowserAnimationsModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts index 3f0bf0bcca5..98cd5fed526 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { ModalModule } from 'ngx-bootstrap/modal'; @@ -22,6 +23,7 @@ describe('RgwBucketListComponent', () => { configureTestBed({ declarations: [RgwBucketListComponent, RgwBucketDetailsComponent], imports: [ + BrowserAnimationsModule, RouterTestingModule, ModalModule.forRoot(), SharedModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.spec.ts index 65b7102c869..79239e3a247 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -17,6 +18,7 @@ describe('RgwDaemonListComponent', () => { configureTestBed({ declarations: [RgwDaemonListComponent, RgwDaemonDetailsComponent], imports: [ + BrowserAnimationsModule, HttpClientTestingModule, TabsModule.forRoot(), PerformanceCounterModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.spec.ts index 370e717db7f..0b9d68bfe86 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-details/rgw-user-details.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BsModalService } from 'ngx-bootstrap/modal'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -16,7 +17,7 @@ describe('RgwUserDetailsComponent', () => { configureTestBed({ declarations: [RgwUserDetailsComponent], - imports: [HttpClientTestingModule, SharedModule, TabsModule.forRoot()], + imports: [BrowserAnimationsModule, HttpClientTestingModule, SharedModule, TabsModule.forRoot()], providers: [BsModalService, i18nProviders] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.spec.ts index 4c41b420bb4..12f7a1df2a0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-list/rgw-user-list.component.spec.ts @@ -1,6 +1,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { ModalModule } from 'ngx-bootstrap/modal'; @@ -20,7 +21,13 @@ describe('RgwUserListComponent', () => { configureTestBed({ declarations: [RgwUserListComponent], - imports: [RouterTestingModule, HttpClientTestingModule, ModalModule.forRoot(), SharedModule], + imports: [ + BrowserAnimationsModule, + RouterTestingModule, + HttpClientTestingModule, + ModalModule.forRoot(), + SharedModule + ], schemas: [NO_ERRORS_SCHEMA], providers: i18nProviders }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.spec.ts index d862c5ae9ee..395608b3432 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/smart-list/smart-list.component.spec.ts @@ -2,6 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { SimpleChange, SimpleChanges } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import * as _ from 'lodash'; import { TabsetComponent, TabsetConfig, TabsModule } from 'ngx-bootstrap/tabs'; @@ -80,7 +81,7 @@ describe('OsdSmartListComponent', () => { configureTestBed({ declarations: [SmartListComponent], - imports: [TabsModule, SharedModule, HttpClientTestingModule], + imports: [BrowserAnimationsModule, TabsModule, SharedModule, HttpClientTestingModule], providers: [i18nProviders, TabsetComponent, TabsetConfig] }); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.spec.ts index 4b8ac38c708..9b04f771b44 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -23,6 +24,7 @@ describe('RoleListComponent', () => { configureTestBed({ declarations: [RoleListComponent, RoleDetailsComponent, UserTabsComponent], imports: [ + BrowserAnimationsModule, SharedModule, ToastrModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.spec.ts index 253fc486a37..0f0f5e8a396 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { TabsModule } from 'ngx-bootstrap/tabs'; @@ -21,6 +22,7 @@ describe('UserListComponent', () => { configureTestBed({ imports: [ + BrowserAnimationsModule, SharedModule, ToastrModule.forRoot(), TabsModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts index 942f8eee5d2..46a744f21a7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/layouts/login-layout/login-layout.component.spec.ts @@ -1,5 +1,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BsDatepickerModule } from 'ngx-bootstrap/datepicker'; import { BsDropdownModule } from 'ngx-bootstrap/dropdown'; @@ -16,6 +17,7 @@ describe('LoginLayoutComponent', () => { TestBed.configureTestingModule({ declarations: [LoginLayoutComponent], imports: [ + BrowserAnimationsModule, BsDropdownModule.forRoot(), BsDatepickerModule.forRoot(), HttpClientTestingModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts index 15f9f8969c9..7e2e0a62775 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation.module.ts @@ -1,6 +1,5 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterModule } from '@angular/router'; import { CollapseModule } from 'ngx-bootstrap/collapse'; @@ -25,7 +24,6 @@ import { NotificationsComponent } from './notifications/notifications.component' imports: [ CommonModule, AuthModule, - BrowserAnimationsModule, CollapseModule.forRoot(), BsDropdownModule.forRoot(), PopoverModule.forRoot(), diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts index 42c5817a937..06162c07d5e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts @@ -1,5 +1,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; @@ -36,6 +37,7 @@ describe('TableComponent', () => { configureTestBed({ declarations: [TableComponent], imports: [ + BrowserAnimationsModule, NgxDatatableModule, FormsModule, ComponentsModule, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts index 52256ef7c35..9ab333c7a12 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts @@ -17,11 +17,11 @@ import { import { DatatableComponent, + getterForProp, SortDirection, SortPropDir, TableColumnProp } from '@swimlane/ngx-datatable'; -import { getterForProp } from '@swimlane/ngx-datatable/release/utils'; import * as _ from 'lodash'; import { Observable, Subject, Subscription, timer as observableTimer } from 'rxjs'; diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-column-filters-change.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-column-filters-change.ts index 40327b1ef2b..17601f0add8 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-column-filters-change.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-column-filters-change.ts @@ -1,4 +1,4 @@ -import { TableColumnProp } from '@swimlane/ngx-datatable/release/types/table-column.type'; +import { TableColumnProp } from '@swimlane/ngx-datatable'; export interface CdTableColumnFiltersChange { /** -- 2.39.5