]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix build and test failures from ngx-toastr removal 68952/head
authorAfreen Misbah <afreen@ibm.com>
Mon, 18 May 2026 15:15:45 +0000 (20:45 +0530)
committerAfreen Misbah <afreen@ibm.com>
Mon, 18 May 2026 19:21:11 +0000 (00:51 +0530)
Assisted-by: Claude
Signed-off-by: Afreen Misbah <afreen@ibm.com>
166 files changed:
src/pybind/mgr/dashboard/frontend/angular.json
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-discovery-modal/iscsi-target-discovery-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-form/iscsi-target-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-list/iscsi-target-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-create-modal/bootstrap-create-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/bootstrap-import-modal/bootstrap-import-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-mode-modal/pool-edit-mode-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-edit-peer-modal/pool-edit-peer-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/pool-list/pool-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvme-subsystem-view/nvme-subsystem-view.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-edit-host-key-modal/nvmeof-edit-host-key-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-initiators-form/nvmeof-initiators-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-listeners-form/nvmeof-listeners-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespace-expand-modal/nvmeof-namespace-expand-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-1/nvmeof-subsystem-step-1.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-2/nvmeof-subsystem-step-2.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-3/nvmeof-subsystem-step-3.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystem-step-4/nvmeof-subsystem-step-4.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems-form/nvmeof-subsystems-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-form/rbd-namespace-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-namespace-list/rbd-namespace-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-form/rbd-snapshot-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-snapshot-list/rbd-snapshot-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-move-modal/rbd-trash-move-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-purge-modal/rbd-trash-purge-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-restore-modal/rbd-trash-restore-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-auth-modal/cephfs-auth-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-directories/cephfs-directories.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-mount-details/cephfs-mount-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-snapshotschedule-form/cephfs-snapshotschedule-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-snapshotschedule-list/cephfs-snapshotschedule-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-form/cephfs-subvolume-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-group/cephfs-subvolume-group.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-list/cephfs-subvolume-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-snapshots-list/cephfs-subvolume-snapshots-form/cephfs-subvolume-snapshots-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-snapshots-list/cephfs-subvolume-snapshots-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster-review.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/create-cluster/create-cluster.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-details/host-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/hosts.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/inventory/inventory.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/logs/logs.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-details/mgr-module-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-form/mgr-module-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-form/multi-cluster-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-creation-preview-modal/osd-creation-preview-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-groups/osd-devices-selection-groups.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-devices-selection-modal/osd-devices-selection-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-indiv-modal/osd-flags-indiv-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-flags-modal/osd-flags-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-pg-scrub-modal/osd-pg-scrub-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-recv-speed-modal/osd-recv-speed-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/rules-list/rules-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-form/silence-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-details/service-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade-form/upgrade-start-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade-progress/upgrade-progress.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/upgrade/upgrade.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-cluster-details/nfs-cluster-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/crush-rule-form-modal/crush-rule-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-list/pool-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/create-rgw-service-entities/create-rgw-service-entities.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-multisite-zone-deletion-form/rgw-multisite-zone-deletion-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-multisite-zonegroup-deletion-form/rgw-multisite-zonegroup-deletion-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-lifecycle-list/rgw-bucket-lifecycle-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-list/rgw-bucket-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-notification-list/rgw-bucket-notification-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-tiering-form/rgw-bucket-tiering-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-config-modal/rgw-config-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-details/rgw-multisite-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-export/rgw-multisite-export.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-import/rgw-multisite-import.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-realm-form/rgw-multisite-realm-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-flow-modal/rgw-multisite-sync-flow-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-pipe-modal/rgw-multisite-sync-pipe-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-policy-details/rgw-multisite-sync-policy-details.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-policy-form/rgw-multisite-sync-policy-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-policy/rgw-multisite-sync-policy.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-wizard/rgw-multisite-wizard.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zonegroup-form/rgw-multisite-zonegroup-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-notification-form/rgw-notification-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-rate-limit/rgw-rate-limit.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-list/rgw-storage-class-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-system-user/rgw-system-user.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-topic-form/rgw-topic-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-topic-list/rgw-topic-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-accounts-form/rgw-user-accounts-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-accounts/rgw-user-accounts.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-swift-key-modal/rgw-user-swift-key-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/shared/feedback/feedback.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-list/smb-cluster-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-domain-setting-modal/smb-domain-setting-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-join-auth-form/smb-join-auth-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-join-auth-list/smb-join-auth-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-share-form/smb-share-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-share-list/smb-share-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-usersgroups-form/smb-usersgroups-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-usersgroups-list/smb-usersgroups-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/login-password-form/login-password-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-form/role-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/role-list/role-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-list/user-list.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-password-form/user-password-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/error/error.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/layouts/workbench-layout/workbench-layout.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/navigation/navigation.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notification-panel/notification-area/notification-area.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/core/navigation/notifications/notifications.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs-snapshot-schedule.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/cephfs-subvolume-group.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/directory-store.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/mgr-module.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/multi-cluster.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-multisite.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/smb.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/date-time-picker/date-time-picker.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/telemetry-notification/telemetry-notification.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/crud-table/crud-table.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/trim.directive.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/forms/crud-form/crud-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/api-interceptor.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/module-status-guard.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert-formatter.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-notification.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/task-wrapper.service.spec.ts

index e14aeebd65950b76302531daf0d88e4992812b2e..d10f583c99b7e5c42b8a8adcc50b9ccac0df09d0 100644 (file)
@@ -96,7 +96,6 @@
             ],
             "styles": [
               "node_modules/swagger-ui-dist/swagger-ui.css",
-              "node_modules/ngx-toastr/toastr.css",
               "src/styles.scss"
             ],
             "stylePreprocessorOptions": {
index b360acc9544503cd9b7de86fc5b0a474c081a915..7fa3b84a077abea0cdf44a3e8ea6c97ad4e4f1df 100644 (file)
         "lodash": "4.18.1",
         "moment": "2.29.4",
         "ng-block-ui": "4.0.1",
-        "ng-click-outside": "9.0.1",
         "ng2-charts": "7.0.0",
         "ngx-cookie-service": "19.1.2",
-        "ngx-toastr": "19.0.0",
         "rxjs": "6.6.3",
         "simplebar-angular": "3.3.0",
         "stream-browserify": "3.0.0",
         "zone.js": ">=0.11.4"
       }
     },
-    "node_modules/ng-click-outside": {
-      "version": "9.0.1",
-      "resolved": "https://registry.npmjs.org/ng-click-outside/-/ng-click-outside-9.0.1.tgz",
-      "integrity": "sha512-gqRZ2SexX3CntzO/HJuIh7aqxzc6xAhNfyM9VUrjYrorORADEbWTRA/1f7x/ChGGlXN0VtpKyZpWvYScndmsog==",
-      "deprecated": "ng-click-outside is no longer maintained. See https://github.com/arkon/ng-sidebar/issues/229",
-      "license": "MIT",
-      "peerDependencies": {
-        "@angular/common": ">=12.0.0",
-        "@angular/core": ">=12.0.0"
-      }
-    },
     "node_modules/ng-mocks": {
       "version": "14.13.1",
       "resolved": "https://registry.npmjs.org/ng-mocks/-/ng-mocks-14.13.1.tgz",
       "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
       "license": "0BSD"
     },
-    "node_modules/ngx-toastr": {
-      "version": "19.0.0",
-      "resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-19.0.0.tgz",
-      "integrity": "sha512-6pTnktwwWD+kx342wuMOWB4+bkyX9221pAgGz3SHOJH0/MI9erLucS8PeeJDFwbUYyh75nQ6AzVtolgHxi52dQ==",
-      "license": "MIT",
-      "dependencies": {
-        "tslib": "^2.3.0"
-      },
-      "peerDependencies": {
-        "@angular/common": ">=16.0.0-0",
-        "@angular/core": ">=16.0.0-0",
-        "@angular/platform-browser": ">=16.0.0-0"
-      }
-    },
     "node_modules/nice-try": {
       "version": "1.0.5",
       "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
index 8ef136617def5592c6ae7b6b85dc0f36717c35b1..d8e383ee78a2a5807c009b4514c29240cd6713f7 100644 (file)
@@ -9,7 +9,6 @@ import { By } from '@angular/platform-browser';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { Permission } from '~/app/shared/models/permissions';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -28,13 +27,7 @@ describe('IscsiTargetDiscoveryModalComponent', () => {
 
   configureTestBed({
     declarations: [IscsiTargetDiscoveryModalComponent],
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      SharedModule,
-      ToastrModule.forRoot(),
-      RouterTestingModule
-    ],
+    imports: [HttpClientTestingModule, ReactiveFormsModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index 4ddaea985b568b01bb1042b1f48290b5a49fa479..6da2c19798493b081c5ab058ac109c1368cc7f71 100644 (file)
@@ -4,8 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { ActivatedRoute } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { SelectOption } from '~/app/shared/components/select/select-option.model';
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -138,13 +136,7 @@ describe('IscsiTargetFormComponent', () => {
 
   configureTestBed({
     declarations: [IscsiTargetFormComponent],
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, HttpClientTestingModule, RouterTestingModule],
     providers: [
       {
         provide: ActivatedRoute,
index e69491df2eeef2f534569becbec1c675e08c06e5..d89c6ff70aa372bdcb40ceccf378fd585239176e 100644 (file)
@@ -4,7 +4,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 import { BehaviorSubject, of } from 'rxjs';
 
 import { IscsiService } from '~/app/shared/api/iscsi.service';
@@ -35,7 +34,6 @@ describe('IscsiTargetListComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbNavModule
     ],
     declarations: [IscsiTargetListComponent, IscsiTabsComponent, IscsiTargetDetailsComponent],
index 19d43de6ddf1fc8c094b0693ba7f4521d0ecd329..9a699aa3cc1a76cd713c517edfeb0857696c7b49 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
@@ -27,7 +26,6 @@ describe('BootstrapCreateModalComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       ModalModule,
       InputModule,
       SelectModule,
index 67556b2813dda5f701ad3687a52183340810efef..dd3147e674b685f183b4d53fdadbac89b418c27b 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
@@ -27,7 +26,6 @@ describe('BootstrapImportModalComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       ModalModule,
       SelectModule,
       InputModule,
index 9b7d3ce7da3ac465c3135cfed6df0097d8fd4810..5f5b21f11fc9093bf43c7b1b0bc8ea2de6b71ce4 100644 (file)
@@ -5,7 +5,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule, NgbProgressbarModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
@@ -39,7 +38,6 @@ describe('OverviewComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       ButtonModule,
       InputModule,
       GridModule
index b927b961f8f607bf1f95a96da061572b177a3941..945c92deb8174d7eafbe27371d31f2f0322741de 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { ActivatedRoute } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
@@ -30,7 +29,6 @@ describe('PoolEditModeModalComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       ModalModule,
       SelectModule
     ],
index 0aa533cb8686b207ad77d84e5a5f3a6b4f275c8a..475684c887c83d03080c5ed8a886d369a22017da 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RbdMirroringService } from '~/app/shared/api/rbd-mirroring.service';
@@ -28,7 +27,6 @@ describe('PoolEditPeerModalComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       ModalModule,
       InputModule
     ],
index bb58650398c3fe4bf16ebf539ad803489c8aea27..112aa0093d246ce72e7a7ff1950ee50dba77ce48 100644 (file)
@@ -3,8 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { MirrorHealthColorPipe } from '../mirror-health-color.pipe';
@@ -16,13 +14,7 @@ describe('PoolListComponent', () => {
 
   configureTestBed({
     declarations: [PoolListComponent, MirrorHealthColorPipe],
-    imports: [
-      BrowserAnimationsModule,
-      SharedModule,
-      HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
-    ]
+    imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule, RouterTestingModule]
   });
 
   beforeEach(() => {
index 910041f7a8e512594bffc0a496c79e6ace433743..7e6c5cba673025ded188dedfa690017bfce6dad9 100644 (file)
@@ -6,7 +6,6 @@ import { of } from 'rxjs';
 
 import { NvmeSubsystemViewComponent } from './nvme-subsystem-view.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('NvmeSubsystemViewComponent', () => {
   let component: NvmeSubsystemViewComponent;
   let fixture: ComponentFixture<NvmeSubsystemViewComponent>;
index 0fdf214bfbbfa9f00e0a909dfd60c6f938647f01..6a497e36cc3aa699476023be15ff6c23e24826f0 100644 (file)
@@ -3,7 +3,7 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 import { By } from '@angular/platform-browser';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of, throwError } from 'rxjs';
 
 import { SharedModule } from '~/app/shared/shared.module';
@@ -33,13 +33,7 @@ describe('NvmeofEditHostKeyModalComponent', () => {
     waitForAsync(() => {
       TestBed.configureTestingModule({
         declarations: [NvmeofEditHostKeyModalComponent],
-        imports: [
-          ReactiveFormsModule,
-          HttpClientTestingModule,
-          RouterTestingModule,
-          SharedModule,
-          ToastrModule.forRoot()
-        ],
+        imports: [ReactiveFormsModule, HttpClientTestingModule, RouterTestingModule, SharedModule],
         providers: [
           { provide: NvmeofService, useValue: nvmeofServiceSpy },
           { provide: TaskWrapperService, useValue: taskWrapperServiceSpy },
index 0c87cd8059a96eaafe2f28bb76dfb565dd50066d..9af7f2ff76fabf818351d84b8b895baee958b89b 100644 (file)
@@ -5,7 +5,6 @@ import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testin
 import { Router } from '@angular/router';
 import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
@@ -49,8 +48,7 @@ describe('NvmeofGroupFormComponent', () => {
         CheckboxModule,
         GridModule,
         InputModule,
-        SelectModule,
-        ToastrModule.forRoot()
+        SelectModule
       ],
       schemas: [CUSTOM_ELEMENTS_SCHEMA]
     }).compileComponents();
index 8ec7fbb023f8c8b996815e46a95c7c50afc86f86..e7f8f1f7251f670040fb4660b969ae2cec04215e 100644 (file)
@@ -6,8 +6,6 @@ import { ActivatedRoute } from '@angular/router';
 import { NO_ERRORS_SCHEMA } from '@angular/core';
 import { of } from 'rxjs';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { SharedModule } from '~/app/shared/shared.module';
@@ -46,8 +44,7 @@ describe('NvmeofInitiatorsFormComponent', () => {
         NgbTypeaheadModule,
         ReactiveFormsModule,
         RouterTestingModule,
-        SharedModule,
-        ToastrModule.forRoot()
+        SharedModule
       ]
     }).compileComponents();
 
index 24b22fe8276e792a8b813e1e69257332b598376b..6289b6da77bb21422f75aa6e5ceefa279cdcc1e9 100644 (file)
@@ -3,8 +3,6 @@ import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { SharedModule } from '~/app/shared/shared.module';
 import { NvmeofListenersFormComponent } from './nvmeof-listeners-form.component';
 import { ActivatedRoute } from '@angular/router';
@@ -31,7 +29,7 @@ describe('NvmeofListenersFormComponent', () => {
           }
         }
       ],
-      imports: [HttpClientTestingModule, RouterTestingModule, SharedModule, ToastrModule.forRoot()],
+      imports: [HttpClientTestingModule, RouterTestingModule, SharedModule],
       schemas: [CUSTOM_ELEMENTS_SCHEMA]
     }).compileComponents();
 
index f5e249c6c2f749a8f4d90017f4c008cf61d45947..038b8a02444a8069335aadfe2215d07c7c4b16d1 100644 (file)
@@ -8,7 +8,6 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { ModalModule, NumberModule } from 'carbon-components-angular';
 import { of } from 'rxjs';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -49,7 +48,6 @@ describe('NvmeofNamespaceExpandModalComponent', () => {
       SharedModule,
       ReactiveFormsModule,
       RouterTestingModule,
-      ToastrModule.forRoot(),
       ModalModule,
       NumberModule
     ],
index b2868bc43e4a7783386fbc4a2ab5068c9640e9cf..ef1785e33b66e0db4d53ec84513e70dc563eabbd 100644 (file)
@@ -4,8 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
@@ -96,8 +94,7 @@ describe('NvmeofNamespacesFormComponent', () => {
         NumberModule,
         RadioModule,
         ComboBoxModule,
-        SelectModule,
-        ToastrModule.forRoot()
+        SelectModule
       ]
     }).compileComponents();
     fixture = TestBed.createComponent(NvmeofNamespacesFormComponent);
index b1ab55127f154efe7390b7d1cd532885887875c7..70db8540580384edff6756ce207848faa2df6ab7 100644 (file)
@@ -3,8 +3,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
@@ -37,8 +35,7 @@ describe('NvmeofSubsystemsStepOneComponent', () => {
         NgbTypeaheadModule,
         InputModule,
         GridModule,
-        ComboBoxModule,
-        ToastrModule.forRoot()
+        ComboBoxModule
       ],
       providers: [NgbActiveModal]
     }).compileComponents();
index f1f95c7115897c1b469cda993dbc404e0a919fec..11fc45c4eaf3003e664a6d36d72f120381b8f888 100644 (file)
@@ -3,8 +3,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
@@ -31,8 +29,7 @@ describe('NvmeofSubsystemsStepTwoComponent', () => {
         InputModule,
         GridModule,
         RadioModule,
-        TagModule,
-        ToastrModule.forRoot()
+        TagModule
       ]
     }).compileComponents();
 
index 315d7fca793f34200518a577ac4edba49d2517b3..d1e1a8b19a6d4341b4f62999607595a21b3262e6 100644 (file)
@@ -3,8 +3,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
@@ -34,8 +32,7 @@ describe('NvmeofSubsystemsStepThreeComponent', () => {
         GridModule,
         RadioModule,
         TagModule,
-        InputModule,
-        ToastrModule.forRoot()
+        InputModule
       ]
     }).compileComponents();
 
index 447b709239c5d1c2b400e6153065b454acca244a..0eb8f51f0880893fe9bfb668aa8138317c184869 100644 (file)
@@ -3,7 +3,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 
 import { SharedModule } from '~/app/shared/shared.module';
@@ -24,8 +23,7 @@ describe('NvmeofSubsystemsStepFourComponent', () => {
         ReactiveFormsModule,
         RouterTestingModule,
         SharedModule,
-        GridModule,
-        ToastrModule.forRoot()
+        GridModule
       ]
     }).compileComponents();
 
index b4e46bc97e1c6de2976ba97764f716ea0d5ed92f..0ea20095816a449fdfcffec54f073e7ae8135643 100644 (file)
@@ -4,8 +4,6 @@ import { ActivatedRoute } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { SharedModule } from '~/app/shared/shared.module';
@@ -74,7 +72,6 @@ describe('NvmeofSubsystemsFormComponent', () => {
         GridModule,
         RadioModule,
         TagModule,
-        ToastrModule.forRoot(),
         ComboBoxModule
       ]
     }).compileComponents();
index a1d9872ebd79def730414d7ab9ea680e7c25b2d6..29a37b3b75215acad113d243f1a3f75bcc3b037c 100644 (file)
@@ -5,7 +5,6 @@ import { By } from '@angular/platform-browser';
 import { ActivatedRoute, Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { NEVER, of } from 'rxjs';
 import { delay } from 'rxjs/operators';
 
@@ -63,7 +62,6 @@ describe('RbdFormComponent', () => {
       HttpClientTestingModule,
       ReactiveFormsModule,
       RouterTestingModule,
-      ToastrModule.forRoot(),
       SharedModule,
       CheckboxModule,
       InputModule,
index c775333a40748211683dd22c448e12a22bc9e5b2..9d9258713530fb0185bd824dbb26993bea0d0c53 100644 (file)
@@ -5,7 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { BehaviorSubject, of } from 'rxjs';
 
 import { RbdService } from '~/app/shared/api/rbd.service';
@@ -39,7 +39,6 @@ describe('RbdListComponent', () => {
       SharedModule,
       NgbNavModule,
       NgbTooltipModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       HttpClientTestingModule
     ],
index 8300fc6551ea3162544f253ce1818439eca5ae27..bb33624b32d21cfc65c8a0b96d746aebe9bce8a6 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
@@ -16,13 +15,7 @@ describe('RbdNamespaceFormModalComponent', () => {
   let fixture: ComponentFixture<RbdNamespaceFormModalComponent>;
 
   configureTestBed({
-    imports: [
-      ReactiveFormsModule,
-      ComponentsModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot(),
-      RouterTestingModule
-    ],
+    imports: [ReactiveFormsModule, ComponentsModule, HttpClientTestingModule, RouterTestingModule],
     declarations: [RbdNamespaceFormModalComponent],
     providers: [NgbActiveModal, AuthStorageService]
   });
index 85f8d3f81db60bacbf34b95f8bc1b81dec7e2465..c8ff6d59374b3c46ed5b03ed22b36ad4cb6cdd30 100644 (file)
@@ -4,7 +4,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { TaskListService } from '~/app/shared/services/task-list.service';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -23,7 +22,6 @@ describe('RbdNamespaceListComponent', () => {
       SharedModule,
       HttpClientTestingModule,
       RouterTestingModule,
-      ToastrModule.forRoot(),
       NgbNavModule
     ],
     providers: [TaskListService]
index f68173d97714d43b42b7cc96f7d8eabc8620ecdf..bdeefe34b4da00dfc24189befa624507f0a4d3b5 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
@@ -26,7 +25,6 @@ describe('RbdSnapshotFormModalComponent', () => {
       ComponentsModule,
       PipesModule,
       HttpClientTestingModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       ModalModule,
       InputModule,
index 394abc79f26dfe145a1b672dc3608b41bbea40cd..6d688ea6133847d455fa156e2f69d56f83ee7832 100644 (file)
@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import { MockComponent } from 'ng-mocks';
-import { ToastrModule } from 'ngx-toastr';
+
 import { Subject, throwError as observableThrowError } from 'rxjs';
 
 import { RbdService } from '~/app/shared/api/rbd.service';
@@ -69,7 +69,6 @@ describe('RbdSnapshotListComponent', () => {
       PipesModule,
       RouterTestingModule,
       NgbNavModule,
-      ToastrModule.forRoot(),
       ModalModule,
       PlaceholderModule,
       CoreModule
index 29841972868b7978ed0c95b43d8763c4b97d8adb..9ffdcd1cae4833712f3b02dbb309ac519c8d9229 100644 (file)
@@ -7,7 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import moment from 'moment';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { RbdService } from '~/app/shared/api/rbd.service';
@@ -35,8 +35,7 @@ describe('RbdTrashListComponent', () => {
       RouterTestingModule,
       SharedModule,
       NgbNavModule,
-      PipesModule,
-      ToastrModule.forRoot()
+      PipesModule
     ],
     providers: [TaskListService]
   });
index 3816601f781ab42a746cfd2986ae2441ddadcf07..276deb3f51699929d5ba812e9b44408086ae2755 100644 (file)
@@ -5,7 +5,6 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
 import moment from 'moment';
-import { ToastrModule } from 'ngx-toastr';
 
 import { NotificationService } from '~/app/shared/services/notification.service';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -30,7 +29,6 @@ describe('RbdTrashMoveModalComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbPopoverModule,
       ModalModule,
       CheckboxModule,
index 162cbe559c04c0b15e9570276085747a19ef7683..e065f6a94aed2d8e77206294a381e1bec4a67691 100644 (file)
@@ -8,7 +8,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { Permission } from '~/app/shared/models/permissions';
 import { NotificationService } from '~/app/shared/services/notification.service';
@@ -27,7 +26,6 @@ describe('RbdTrashPurgeModalComponent', () => {
       HttpClientTestingModule,
       ReactiveFormsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       ModalModule,
       SelectModule
index 850dd159572b2a25e10d2ca8332765c8e04242db..44fe43d1f4cd17bb00f55fa6b37d95fb126f20eb 100644 (file)
@@ -7,8 +7,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { NotificationService } from '~/app/shared/services/notification.service';
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -24,7 +22,6 @@ describe('RbdTrashRestoreModalComponent', () => {
     imports: [
       ReactiveFormsModule,
       HttpClientTestingModule,
-      ToastrModule.forRoot(),
       SharedModule,
       RouterTestingModule,
       InputModule,
index 051acb6114e2b9d0387e85af56ff153888ce57b3..f8c755cc0ff712db1e7fc522ee737231a82ab61d 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsAuthModalComponent } from './cephfs-auth-modal.component';
 import { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { SharedModule } from '~/app/shared/shared.module';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
@@ -20,7 +19,6 @@ describe('CephfsAuthModalComponent', () => {
         HttpClientTestingModule,
         SharedModule,
         ReactiveFormsModule,
-        ToastrModule.forRoot(),
         RouterTestingModule,
         NgbTypeaheadModule,
         ModalModule,
index 00a6e825333e8ad913978b9d95793a2bf0008e1d..0d919e1cc844bb9ce976216e98bf56dfa81789f7 100644 (file)
@@ -2,8 +2,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';
-
 import { TableStatusViewCache } from '~/app/shared/classes/table-status-view-cache';
 import { TableActionsComponent } from '~/app/shared/datatable/table-actions/table-actions.component';
 import { ViewCacheStatus } from '~/app/shared/enum/view-cache-status.enum';
@@ -16,12 +14,7 @@ describe('CephfsClientsComponent', () => {
   let fixture: ComponentFixture<CephfsClientsComponent>;
 
   configureTestBed({
-    imports: [
-      BrowserAnimationsModule,
-      ToastrModule.forRoot(),
-      SharedModule,
-      HttpClientTestingModule
-    ],
+    imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule],
     declarations: [CephfsClientsComponent]
   });
 
index 08751aee17dbb824a0395c4cd7710e11570addfc..907be9cd5b8daf3406df55d456f547a1e936ffd8 100644 (file)
@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { TreeViewComponent, TreeviewModule } from 'carbon-components-angular';
 import { NgbActiveModal, NgbModalModule, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { Observable, of } from 'rxjs';
 import _ from 'lodash';
 
@@ -393,7 +393,6 @@ describe('CephfsDirectoriesComponent', () => {
       SharedModule,
       RouterTestingModule,
       TreeviewModule,
-      ToastrModule.forRoot(),
       NgbModalModule
     ],
     declarations: [CephfsDirectoriesComponent],
index 6d6e61c8f8eb269bd71e3dc7bcc9ceb93f71ba79..7bb3d2a625d80cbd1e2563518af69a5215b33478 100644 (file)
@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 import { CephfsVolumeFormComponent } from './cephfs-form.component';
 import { FormHelper, configureTestBed } from '~/testing/unit-test-helper';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ReactiveFormsModule } from '@angular/forms';
 import { By } from '@angular/platform-browser';
 import { OrchestratorService } from '~/app/shared/api/orchestrator.service';
@@ -31,7 +31,6 @@ describe('CephfsVolumeFormComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       GridModule,
       InputModule,
       SelectModule,
index bd228b018c9501cd9f57089b1eaaf13b9e874814..3d177ca1aaf60560ffa78fdc15e5b6528f9e5a12 100644 (file)
@@ -4,8 +4,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { CdTableSelection } from '~/app/shared/models/cd-table-selection';
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -28,13 +26,7 @@ describe('CephfsListComponent', () => {
   let cephfsService: CephfsService;
 
   configureTestBed({
-    imports: [
-      BrowserAnimationsModule,
-      SharedModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot(),
-      RouterTestingModule
-    ],
+    imports: [BrowserAnimationsModule, SharedModule, HttpClientTestingModule, RouterTestingModule],
     declarations: [CephfsListComponent, CephfsTabsStubComponent, CephfsVolumeFormComponent]
   });
 
index 141ae428bdd7690a0d4401d7a4142af1c831c083..9e0612bef63a3db34928764a73da27f45fac6151 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsMountDetailsComponent } from './cephfs-mount-details.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -14,7 +14,7 @@ describe('CephfsSnapshotscheduleListComponent', () => {
 
   configureTestBed({
     declarations: [CephfsMountDetailsComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index 5451f3edaea1712fc760e9d4880e974ae727a1e5..64f9eaaa436eaeca957dadf4fbd18d48af9ed169 100644 (file)
@@ -8,7 +8,7 @@ import {
 } from '@angular/core/testing';
 
 import { CephfsSnapshotscheduleFormComponent } from './cephfs-snapshotschedule-form.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ReactiveFormsModule } from '@angular/forms';
@@ -34,7 +34,6 @@ describe('CephfsSnapshotscheduleFormComponent', () => {
     providers: [ModalService, { provide: 'fsName', useValue: 'test_fs' }],
     imports: [
       SharedModule,
-      ToastrModule.forRoot(),
       ReactiveFormsModule,
       HttpClientTestingModule,
       RouterTestingModule,
index a20972f1cf85cd6f592c2ede79ee9e78210ebc86..be355524e688adfe91c7e4f24500eb5f8f2c3a5b 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsSnapshotscheduleListComponent } from './cephfs-snapshotschedule-list.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -14,7 +14,7 @@ describe('CephfsSnapshotscheduleListComponent', () => {
 
   configureTestBed({
     declarations: [CephfsSnapshotscheduleListComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index abcaa1e0af4753e0e5ae48d049779645c7cda703..3ab4c467bc85874e6d6cbc9d68862802556fb35a 100644 (file)
@@ -4,7 +4,7 @@ import { of } from 'rxjs';
 
 import { CephfsSubvolumeFormComponent } from './cephfs-subvolume-form.component';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ReactiveFormsModule } from '@angular/forms';
@@ -25,7 +25,6 @@ describe('CephfsSubvolumeFormComponent', () => {
     providers: [NgbActiveModal],
     imports: [
       SharedModule,
-      ToastrModule.forRoot(),
       ReactiveFormsModule,
       HttpClientTestingModule,
       RouterTestingModule,
index 0d84a131b3e919c85d4d4b8afd9cb7b840735b79..5a575d927aae55eae453566873c6fe71bac736e4 100644 (file)
@@ -2,7 +2,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { CephfsSubvolumeGroupComponent } from './cephfs-subvolume-group.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { RouterTestingModule } from '@angular/router/testing';
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -13,7 +12,7 @@ describe('CephfsSubvolumeGroupComponent', () => {
 
   configureTestBed({
     declarations: [CephfsSubvolumeGroupComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule]
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule]
   });
 
   beforeEach(() => {
index 5adc9e645d595a8667cf7c755f3141445799e82c..95e7dffd1804eb9950bb57323d36032b3ca1c729 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsSubvolumeListComponent } from './cephfs-subvolume-list.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -14,7 +14,7 @@ describe('CephfsSubvolumeListComponent', () => {
 
   configureTestBed({
     declarations: [CephfsSubvolumeListComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index 95b717994c219bbedf5affa181fd0a0d240bf9da..0f932565ece33c043f24a47018634de131d219c4 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsSubvolumeSnapshotsFormComponent } from './cephfs-subvolume-snapshots-form.component';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ReactiveFormsModule } from '@angular/forms';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
@@ -17,7 +17,6 @@ describe('CephfsSubvolumeSnapshotsFormComponent', () => {
     declarations: [CephfsSubvolumeSnapshotsFormComponent],
     imports: [
       SharedModule,
-      ToastrModule.forRoot(),
       ReactiveFormsModule,
       HttpClientTestingModule,
       RouterTestingModule,
index c69f916c2c16aab10f0909b036b18080914cfbc8..1d03cf2a8bcaafd27e4fe0db2396343301dd1b08 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { CephfsSubvolumeSnapshotsListComponent } from './cephfs-subvolume-snapshots-list.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
 
 describe('CephfsSubvolumeSnapshotsListComponent', () => {
   let component: CephfsSubvolumeSnapshotsListComponent;
@@ -12,7 +11,7 @@ describe('CephfsSubvolumeSnapshotsListComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [CephfsSubvolumeSnapshotsListComponent],
-      imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot()]
+      imports: [HttpClientTestingModule, SharedModule]
     }).compileComponents();
 
     fixture = TestBed.createComponent(CephfsSubvolumeSnapshotsListComponent);
index 30cfe603ea02c51129fec599aaff858fec3d5a7a..32163a5a53537658cd9c955f31400ae257f73844 100644 (file)
@@ -2,7 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { CephfsSubvolumegroupFormComponent } from './cephfs-subvolumegroup-form.component';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ReactiveFormsModule } from '@angular/forms';
@@ -19,7 +19,6 @@ describe('CephfsSubvolumegroupFormComponent', () => {
     providers: [NgbActiveModal],
     imports: [
       SharedModule,
-      ToastrModule.forRoot(),
       ReactiveFormsModule,
       HttpClientTestingModule,
       RouterTestingModule,
index 3fb2c41940993d4e4d7608ec4ab07bb9ac0737b5..1679e6173726cc8408d841da4efda42aca1626fe 100644 (file)
@@ -4,7 +4,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { CephfsService } from '~/app/shared/api/cephfs.service';
@@ -78,7 +78,7 @@ describe('CephfsTabsComponent', () => {
   }
 
   configureTestBed({
-    imports: [SharedModule, NgbNavModule, HttpClientTestingModule, ToastrModule.forRoot()],
+    imports: [SharedModule, NgbNavModule, HttpClientTestingModule],
     declarations: [
       CephfsTabsComponent,
       CephfsChartStubComponent,
index 6ec2dac45cc1f483f8cd62bb44a3efbceea29ccb..fc5b96c5047ceba11deadcd7d38e3e5a372af0b8 100644 (file)
@@ -3,8 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { ConfigFormModel } from '~/app/shared/components/config-option/config-option.model';
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -15,13 +13,7 @@ describe('ConfigurationFormComponent', () => {
   let fixture: ComponentFixture<ConfigurationFormComponent>;
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      ToastrModule.forRoot(),
-      SharedModule
-    ],
+    imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
     declarations: [ConfigurationFormComponent]
   });
 
index 94d3dd9d69d10b63a4c7c48dd0e3eb3cbae726d5..d224b5dfd3bc4096d3a6540da2f1ff5fdcb46c6f 100644 (file)
@@ -2,7 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
 
 import { CephModule } from '~/app/ceph/ceph.module';
 import { CoreModule } from '~/app/core/core.module';
@@ -15,7 +14,7 @@ describe('CreateClusterReviewComponent', () => {
   let fixture: ComponentFixture<CreateClusterReviewComponent>;
 
   configureTestBed({
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), CephModule, CoreModule]
+    imports: [HttpClientTestingModule, SharedModule, CephModule, CoreModule]
   });
 
   beforeEach(() => {
index e5797c827d9f89bd786908825ae6862d6d07bf61..01e9c6aa2a994f3c775c98f537472d5687da09b3 100644 (file)
@@ -3,8 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { By } from '@angular/platform-browser';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { CephModule } from '~/app/ceph/ceph.module';
 import { CoreModule } from '~/app/core/core.module';
 import { HostService } from '~/app/shared/api/host.service';
@@ -27,14 +25,7 @@ describe('CreateClusterComponent', () => {
   const projectConstants: typeof AppConstants = AppConstants;
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot(),
-      SharedModule,
-      CoreModule,
-      CephModule
-    ]
+    imports: [HttpClientTestingModule, RouterTestingModule, SharedModule, CoreModule, CephModule]
   });
 
   beforeEach(() => {
index 8d632cc2bd3fa867d1f0984f2035d7c3d8830c4a..59c6666e3747a39014e74f6aba8b0cc041117df1 100644 (file)
@@ -3,8 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { CephModule } from '~/app/ceph/ceph.module';
 import { CephSharedModule } from '~/app/ceph/shared/ceph-shared.module';
 import { CoreModule } from '~/app/core/core.module';
@@ -25,8 +23,7 @@ describe('HostDetailsComponent', () => {
       CephModule,
       CoreModule,
       CephSharedModule,
-      SharedModule,
-      ToastrModule.forRoot()
+      SharedModule
     ]
   });
 
index 97194e74fd412dd5b9b157c3b07615c3fdcf75af..41c1b19db48e749e4555533e5aad804dcd444ae6 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed, FormHelper } from '~/testing/unit-test-helper';
@@ -22,7 +21,6 @@ describe('HostFormComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       InputModule,
       ModalModule
     ],
index e29d31bc68c309d7457de9a7900a81cf686b84d8..c1ce3f7efab3454f3f057433008b29aff27a1d86 100644 (file)
@@ -4,7 +4,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { CephModule } from '~/app/ceph/ceph.module';
@@ -62,7 +61,6 @@ describe('HostsComponent', () => {
       SharedModule,
       HttpClientTestingModule,
       RouterTestingModule,
-      ToastrModule.forRoot(),
       CephModule,
       CoreModule,
       TagModule
index 95353ecefc675a1185d8182b8ac4f4e643f03705..c872dff6f97dff847a5cb94171e2f9d1b9bcdcac 100644 (file)
@@ -5,8 +5,6 @@ import { By } from '@angular/platform-browser';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { HostService } from '~/app/shared/api/host.service';
 import { OrchestratorService } from '~/app/shared/api/orchestrator.service';
 import { TableActionsComponent } from '~/app/shared/datatable/table-actions/table-actions.component';
@@ -48,8 +46,7 @@ describe('InventoryDevicesComponent', () => {
       FormsModule,
       HttpClientTestingModule,
       SharedModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
+      RouterTestingModule
     ],
     providers: [
       { provide: AuthStorageService, useValue: fakeAuthStorageService },
index dd60f7959fd9d1eac78772a5812ecd044302dcc0..be22f3b89fd7e6974623317c6a3d967dd72a10aa 100644 (file)
@@ -4,7 +4,6 @@ import { FormsModule } from '@angular/forms';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { HostService } from '~/app/shared/api/host.service';
@@ -26,8 +25,7 @@ describe('InventoryComponent', () => {
       FormsModule,
       SharedModule,
       HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
+      RouterTestingModule
     ],
     declarations: [InventoryComponent, InventoryDevicesComponent]
   });
index 69c6051d2d3d77d4adf88296ebf7662d970c2788..5b16c9a3a0c1040cd0a17a3068a54f20ac31a5f1 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { FormsModule } from '@angular/forms';
 
 import { NgbDatepickerModule, NgbNavModule, NgbTimepickerModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { LogsService } from '~/app/shared/api/logs.service';
@@ -24,8 +24,7 @@ describe('LogsComponent', () => {
       SharedModule,
       FormsModule,
       NgbDatepickerModule,
-      NgbTimepickerModule,
-      ToastrModule.forRoot()
+      NgbTimepickerModule
     ],
     declarations: [LogsComponent]
   });
index 9793ef37ff8fecc433e94165bbed378f161fe009..4b3ea971b120b6e5a7c41072a802b006dd34904a 100644 (file)
@@ -4,7 +4,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { MgrModuleDetailsComponent } from './mgr-module-details.component';
-import { ToastrModule } from 'ngx-toastr';
 
 describe('MgrModuleDetailsComponent', () => {
   let component: MgrModuleDetailsComponent;
@@ -12,7 +11,7 @@ describe('MgrModuleDetailsComponent', () => {
 
   configureTestBed({
     declarations: [MgrModuleDetailsComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot()]
+    imports: [HttpClientTestingModule, SharedModule]
   });
 
   beforeEach(() => {
index 9f7762ceb741c1653482ffe922398d9ad0b1470c..fd58fadb5f3d6ef4e63c53a5bb6c54e87768e83a 100644 (file)
@@ -3,8 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { MgrModuleFormComponent } from './mgr-module-form.component';
@@ -15,13 +13,7 @@ describe('MgrModuleFormComponent', () => {
 
   configureTestBed({
     declarations: [MgrModuleFormComponent],
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ]
+    imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule]
   });
 
   beforeEach(() => {
index 0ce36eba01afa107ca478120342e6a4023cc8d2b..68fad64f689a4cce8237a3b1855845950abf7a59 100644 (file)
@@ -4,7 +4,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf, throwError as observableThrowError } from 'rxjs';
 
 import { MgrModuleService } from '~/app/shared/api/mgr-module.service';
@@ -28,8 +28,7 @@ describe('MgrModuleListComponent', () => {
       RouterTestingModule,
       SharedModule,
       HttpClientTestingModule,
-      NgbNavModule,
-      ToastrModule.forRoot()
+      NgbNavModule
     ],
     providers: [MgrModuleService]
   });
index fada4f33f4feeddd55ed149abc57868c0e667dc9..894bf35fcdc2bccf88040c308050fa84a1c01164 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { MultiClusterFormComponent } from './multi-cluster-form.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { NotificationService } from '~/app/shared/services/notification.service';
 import { CdDatePipe } from '~/app/shared/pipes/cd-date.pipe';
 import { CommonModule, DatePipe } from '@angular/common';
@@ -28,8 +28,7 @@ describe('MultiClusterFormComponent', () => {
         InputModule,
         SelectModule,
         RouterTestingModule,
-        HttpClientTestingModule,
-        ToastrModule.forRoot()
+        HttpClientTestingModule
       ],
       declarations: [MultiClusterFormComponent],
       providers: [NgbActiveModal, NotificationService, CdDatePipe, DatePipe]
index 0a4c33eaecd8652619c91fc9ffb4749ea0498c3e..17991bde90d52266f839dfaf3d6187525dc146ed 100644 (file)
@@ -1,6 +1,5 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 
 import { MultiClusterListComponent } from './multi-cluster-list.component';
@@ -15,7 +14,7 @@ describe('MultiClusterListComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [HttpClientTestingModule, ToastrModule.forRoot(), NgbNavModule, SharedModule],
+      imports: [HttpClientTestingModule, NgbNavModule, SharedModule],
       declarations: [MultiClusterListComponent],
       providers: [CdDatePipe, TableActionsComponent, { provide: ActivatedRoute, useValue: {} }]
     }).compileComponents();
index f6c2291e335f13e84cee0b3798a436dd6585c42d..ad210968aa5be2be802837253873492f8b1b3144 100644 (file)
@@ -4,7 +4,6 @@ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { MultiClusterComponent } from './multi-cluster.component';
 import { SharedModule } from '~/app/shared/shared.module';
 import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe';
-import { ToastrModule } from 'ngx-toastr';
 
 describe('MultiClusterComponent', () => {
   let component: MultiClusterComponent;
@@ -12,7 +11,7 @@ describe('MultiClusterComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot()],
+      imports: [HttpClientTestingModule, SharedModule],
       declarations: [MultiClusterComponent],
       providers: [NgbActiveModal, DimlessBinaryPipe]
     }).compileComponents();
index cc2db7411594890cf0dde7f7f6f64f1f3856326f..729c57ba36194e6f88ce8a641575b40c2b9b6e61 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -15,13 +14,7 @@ describe('OsdCreationPreviewModalComponent', () => {
   let fixture: ComponentFixture<OsdCreationPreviewModalComponent>;
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      SharedModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [HttpClientTestingModule, ReactiveFormsModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal],
     declarations: [OsdCreationPreviewModalComponent]
   });
index dea6746cf95125511231bcc1f3722b3f078f08eb..8e6b1e9865c44d82aad91047dc17fa9793c44cfa 100644 (file)
@@ -4,8 +4,6 @@ import { FormsModule } from '@angular/forms';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model';
 import { InventoryDevicesComponent } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -35,7 +33,6 @@ describe('OsdDevicesSelectionGroupsComponent', () => {
       FormsModule,
       HttpClientTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       RouterTestingModule
     ],
     declarations: [OsdDevicesSelectionGroupsComponent, InventoryDevicesComponent]
index 60ef65d0517c1a9b120af626d2d4f70a785272b8..be22f33f98c945c1f17399b7c1e667995f144ff5 100644 (file)
@@ -5,7 +5,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model';
 import { InventoryDevicesComponent } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-devices.component';
@@ -34,8 +33,7 @@ describe('OsdDevicesSelectionModalComponent', () => {
       HttpClientTestingModule,
       SharedModule,
       ReactiveFormsModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
+      RouterTestingModule
     ],
     providers: [NgbActiveModal],
     declarations: [OsdDevicesSelectionModalComponent, InventoryDevicesComponent]
index 78096e6bdbdc40df69c336336788686df2c27bd6..3232fe07d9f4385f96eb43c7d983f19df6c42a36 100644 (file)
@@ -4,7 +4,7 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { ModalService, TooltipModule } from 'carbon-components-angular';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 
 import { OsdService } from '~/app/shared/api/osd.service';
@@ -26,7 +26,6 @@ describe('OsdFlagsIndivModalComponent', () => {
       HttpClientTestingModule,
       ReactiveFormsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       TooltipModule,
       RouterTestingModule
     ],
index 14223dd715ef3311430b269f95fbd3b3ce593beb..a62131a5c543d61c412c54dfb4ebd2d51ae65654 100644 (file)
@@ -5,7 +5,6 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { ModalService } from 'carbon-components-angular';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
 
 import { NotificationType } from '~/app/shared/enum/notification-type.enum';
 import { NotificationService } from '~/app/shared/services/notification.service';
@@ -26,13 +25,7 @@ describe('OsdFlagsModalComponent', () => {
   let httpTesting: HttpTestingController;
 
   configureTestBed({
-    imports: [
-      ReactiveFormsModule,
-      SharedModule,
-      HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [ReactiveFormsModule, SharedModule, HttpClientTestingModule, RouterTestingModule],
     declarations: [OsdFlagsModalComponent],
     providers: [ModalService]
   });
index 6511de1cd11d7305e6378931069a85f4407be702..9cd09bfa2a749691fdafffe3dda29a6f5c84723d 100644 (file)
@@ -4,7 +4,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { BehaviorSubject, of } from 'rxjs';
 
 import { InventoryDevice } from '~/app/ceph/cluster/inventory/inventory-devices/inventory-device.model';
@@ -141,8 +140,7 @@ describe('OsdFormComponent', () => {
       FormsModule,
       SharedModule,
       RouterTestingModule,
-      ReactiveFormsModule,
-      ToastrModule.forRoot()
+      ReactiveFormsModule
     ],
     declarations: [OsdFormComponent, OsdDevicesSelectionGroupsComponent, InventoryDevicesComponent]
   });
index f43c5108ce73ae1f2ce22b447addae88753c793c..21f3b36dea5d3d14db0ba572f5e2daf8c110aa40 100644 (file)
@@ -7,7 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { EMPTY, of } from 'rxjs';
 
 import { CephModule } from '~/app/ceph/ceph.module';
@@ -99,7 +99,6 @@ describe('OsdListComponent', () => {
       BrowserAnimationsModule,
       HttpClientTestingModule,
       PerformanceCounterModule,
-      ToastrModule.forRoot(),
       CephModule,
       ReactiveFormsModule,
       NgbDropdownModule,
index dc5fc1644b3724bb377dc3397b38ffdee8800f90..027ccb7d631a144265fd7f66e6285fe027316008 100644 (file)
@@ -5,7 +5,7 @@ import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 
 import { ConfigurationService } from '~/app/shared/api/configuration.service';
@@ -21,13 +21,7 @@ describe('OsdPgScrubModalComponent', () => {
   let configurationService: ConfigurationService;
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
     declarations: [OsdPgScrubModalComponent],
     providers: [NgbActiveModal]
   });
index f8b72940b5a375889ba782a5c9b083ef5e7fa32d..5290f4bd1a77bff22f13338b77ab19d27e3491fa 100755 (executable)
@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 
 import { ConfigurationService } from '~/app/shared/api/configuration.service';
@@ -19,13 +19,7 @@ describe('OsdRecvSpeedModalComponent', () => {
   let configurationService: ConfigurationService;
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
     declarations: [OsdRecvSpeedModalComponent],
     providers: [NgbActiveModal]
   });
index a5ecebe9b4f3fddd174213bfd6fd143050b8959b..72fb3c883bbe3b0beb5a60abd8239f50b79d71a3 100644 (file)
@@ -4,7 +4,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { CephModule } from '~/app/ceph/ceph.module';
 import { ClusterModule } from '~/app/ceph/cluster/cluster.module';
@@ -26,7 +25,6 @@ describe('ActiveAlertListComponent', () => {
       HttpClientTestingModule,
       NgbNavModule,
       RouterTestingModule,
-      ToastrModule.forRoot(),
       SharedModule,
       ClusterModule,
       CephModule,
index ada139e6d1d0089732ef783fbe95993d8c4e0533..c54bed65049fc3eed5bbf651856d82c44f4cd8b1 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { PrometheusService } from '~/app/shared/api/prometheus.service';
 import { SettingsService } from '~/app/shared/api/settings.service';
@@ -18,13 +17,7 @@ describe('RulesListComponent', () => {
 
   configureTestBed({
     declarations: [RulesListComponent, PrometheusTabsComponent],
-    imports: [
-      HttpClientTestingModule,
-      SharedModule,
-      NgbNavModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [HttpClientTestingModule, SharedModule, NgbNavModule, RouterTestingModule],
     providers: [PrometheusService, SettingsService]
   });
 
index 2080dc8c646593d727d30baa0b4556eaee3c6771..821560d792b78d66c4d8e82d3c4f89a86c3c17b5 100644 (file)
@@ -7,7 +7,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 import { NgbPopoverModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
 import moment from 'moment';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of, throwError } from 'rxjs';
 
 import { DashboardNotFoundError } from '~/app/core/error/error';
@@ -62,7 +62,6 @@ describe('SilenceFormComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule.withRoutes(routes),
       SharedModule,
-      ToastrModule.forRoot(),
       NgbTooltipModule,
       NgbPopoverModule,
       ReactiveFormsModule
index 7fdf0d37b53f263f7ff5f4e8c7664d150c25a08c..be93bb5f42e8808703dbfa7b6e2e6aadb98005ac 100644 (file)
@@ -4,7 +4,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { PrometheusService } from '~/app/shared/api/prometheus.service';
@@ -31,7 +31,6 @@ describe('SilenceListComponent', () => {
     imports: [
       BrowserAnimationsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       HttpClientTestingModule,
       NgbNavModule
index 3b7f0cb1dcbae3f2900b54df30a1a7a81d899052..5f6366d04b50f8f5a61407410c9b6433a3928dfd 100644 (file)
@@ -4,7 +4,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import _ from 'lodash';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { Observable, of } from 'rxjs';
 
 import { CephModule } from '~/app/ceph/ceph.module';
@@ -136,14 +136,7 @@ describe('ServiceDaemonListComponent', () => {
   };
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      CephModule,
-      CoreModule,
-      PipesModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ]
+    imports: [HttpClientTestingModule, CephModule, CoreModule, PipesModule, SharedModule]
   });
 
   beforeEach(() => {
index bd40b9e5dc3ebcad9d7b70db856d95ab051e2c59..7a099c100a6f58a94c3bd9e9f390ca445e92b663 100644 (file)
@@ -4,7 +4,6 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
-import { ToastrModule } from 'ngx-toastr';
 
 import { CdTableSelection } from '~/app/shared/models/cd-table-selection';
 import { SummaryService } from '~/app/shared/services/summary.service';
@@ -23,8 +22,7 @@ describe('ServiceDetailsComponent', () => {
       RouterTestingModule,
       SharedModule,
       NgbNavModule,
-      PipesModule,
-      ToastrModule.forRoot()
+      PipesModule
     ],
     declarations: [ServiceDetailsComponent, ServiceDaemonListComponent],
     providers: [{ provide: SummaryService, useValue: { subscribeOnce: jest.fn() } }]
index bfd6cd4a627e31d23367ce5603fec84948360288..6ffd5be14c652d825709575515c3076ff54859a0 100644 (file)
@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal, NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { CephServiceService } from '~/app/shared/api/ceph-service.service';
@@ -55,7 +55,6 @@ describe('ServiceFormComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       InputModule,
       SelectModule,
       NumberModule,
index 094a3cef13850e0e35e7fff918804c14883772d5..bd1ebd36e802abd92306e61aa7f4c92fcb381bc7 100644 (file)
@@ -4,7 +4,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { CephModule } from '~/app/ceph/ceph.module';
@@ -58,8 +57,7 @@ describe('ServicesComponent', () => {
       CoreModule,
       SharedModule,
       HttpClientTestingModule,
-      RouterTestingModule,
-      ToastrModule.forRoot()
+      RouterTestingModule
     ],
     providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }]
   });
index 576a6f0e64f0c166cf53ce5779db7e48f92464ca..bb3b8afd47ed90caf2fcfa8c13419dc0b649f908 100644 (file)
@@ -5,7 +5,7 @@ import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 
 import { MgrModuleService } from '~/app/shared/api/mgr-module.service';
@@ -46,13 +46,7 @@ describe('TelemetryComponent', () => {
 
   configureTestBed({
     declarations: [TelemetryComponent],
-    imports: [
-      HttpClientTestingModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      SharedModule,
-      ToastrModule.forRoot()
-    ]
+    imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule]
   });
 
   describe('configForm', () => {
index 1fe7ffbf809544b8df9940149f679e11fc7f7076..fe5b1f9f663df4c5b696b9f63b90d99464549b43 100644 (file)
@@ -6,7 +6,7 @@ import { UpgradeService } from '~/app/shared/api/upgrade.service';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { NO_ERRORS_SCHEMA } from '@angular/core';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 
 describe('UpgradeComponent', () => {
@@ -14,7 +14,7 @@ describe('UpgradeComponent', () => {
   let fixture: ComponentFixture<UpgradeComponent>;
 
   configureTestBed({
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     schemas: [NO_ERRORS_SCHEMA],
     declarations: [UpgradeComponent],
     providers: [UpgradeService]
index b96e7f453518a7a88981ce15829bc6bff9ae5cb0..6fa255796410f9b59b9c4b6ea70081c02ae6082c 100644 (file)
@@ -1,7 +1,7 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { UpgradeProgressComponent } from './upgrade-progress.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
 import { RouterTestingModule } from '@angular/router/testing';
@@ -14,7 +14,7 @@ describe('UpgradeProgressComponent', () => {
 
   configureTestBed({
     declarations: [UpgradeProgressComponent, LogsComponent],
-    imports: [ToastrModule.forRoot(), HttpClientTestingModule, SharedModule, RouterTestingModule]
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule]
   });
 
   beforeEach(() => {
index 254bf26de5d4b3dca49292c8595bff97aa41dcb4..82321f18e29a9ffa60eeea79aec734c5fa8b508d 100644 (file)
@@ -12,7 +12,7 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { LogsComponent } from '../logs/logs.component';
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import { NO_ERRORS_SCHEMA } from '@angular/core';
-import { ToastrModule } from 'ngx-toastr';
+
 import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
 import { RouterTestingModule } from '@angular/router/testing';
 import { VERSION_PREFIX } from '~/app/shared/constants/app.constants';
@@ -54,13 +54,7 @@ describe('UpgradeComponent', () => {
   };
 
   configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      SharedModule,
-      NgbNavModule,
-      ToastrModule.forRoot(),
-      RouterTestingModule
-    ],
+    imports: [HttpClientTestingModule, SharedModule, NgbNavModule, RouterTestingModule],
     declarations: [UpgradeComponent, LogsComponent],
     schemas: [NO_ERRORS_SCHEMA],
     providers: [UpgradeService, { provide: SummaryService, useClass: SummaryServiceMock }]
index b0f4176a02275e6a20fb5972980f20719cf8e972..2e529087b609285f4008eebe863c04c4c01a91a3 100644 (file)
@@ -3,7 +3,6 @@ import { NfsClusterDetailsComponent } from './nfs-cluster-details.component';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { SharedModule } from '~/app/shared/shared.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('NfsClusterDetailsComponent', () => {
   let component: NfsClusterDetailsComponent;
   let fixture: ComponentFixture<NfsClusterDetailsComponent>;
index 7f5888f15c1c6a700e25257f3770c9ed48715644..bb64ce3af95f2f2182a2456570593b08e698dfd2 100644 (file)
@@ -5,7 +5,7 @@ import { ActivatedRoute, Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { Observable, of } from 'rxjs';
 
 import { NfsFormClientComponent } from '~/app/ceph/nfs/nfs-form-client/nfs-form-client.component';
@@ -29,7 +29,6 @@ describe('NfsFormComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbTypeaheadModule
     ],
     providers: [
index 91341d3b728f4dfd9fe12400b94765b532aa2c08..5758325a8e3f9ba2e74777d345916cd30d166ab1 100644 (file)
@@ -4,7 +4,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { NfsService } from '~/app/shared/api/nfs.service';
@@ -37,8 +37,7 @@ describe('NfsListComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       SharedModule,
-      NgbNavModule,
-      ToastrModule.forRoot()
+      NgbNavModule
     ],
     providers: [TaskListService]
   });
index a3216f64dd4d6ca279cd02feda4850f6c896f121..5da63a56e99e3cc1b00953904e6bf7077dfd04c9 100644 (file)
@@ -1,6 +1,5 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 import { OverviewStorageCardComponent } from './overview-storage-card.component';
 import { FormatterService } from '~/app/shared/services/formatter.service';
 
index 1a7956280e9fa1d7d272d56b0b0c6c378ab4537f..8e7aeb4645db4b9eb49edefc8b4593430445ec5b 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { CrushRuleService } from '~/app/shared/api/crush-rule.service';
@@ -65,7 +65,7 @@ describe('CrushRuleFormComponent', () => {
   };
 
   configureTestBed({
-    imports: [HttpClientTestingModule, RouterTestingModule, ToastrModule.forRoot(), PoolModule],
+    imports: [HttpClientTestingModule, RouterTestingModule, PoolModule],
     providers: [CrushRuleService, NgbActiveModal]
   });
 
index c07223e65ae64ad8d03a613bc54902a687a8df30..3ed8e7df2bb6f5e469b346b59fdd7929664a7ba6 100644 (file)
@@ -4,7 +4,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { ErasureCodeProfileService } from '~/app/shared/api/erasure-code-profile.service';
@@ -43,7 +43,7 @@ describe('ErasureCodeProfileFormModalComponent', () => {
   };
 
   configureTestBed({
-    imports: [HttpClientTestingModule, RouterTestingModule, ToastrModule.forRoot(), PoolModule],
+    imports: [HttpClientTestingModule, RouterTestingModule, PoolModule],
     providers: [ErasureCodeProfileService, NgbActiveModal]
   });
 
index f2b894a4dedcd2d0683a7159e9a00e46c03468e1..af791f8c927ca90eba6c0dd4fd6c19c933659fb8 100644 (file)
@@ -8,7 +8,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal, NgbModalModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { Observable, of } from 'rxjs';
 
 import { DashboardNotFoundError } from '~/app/core/error/error';
@@ -135,7 +135,6 @@ describe('PoolFormComponent', () => {
       BrowserAnimationsModule,
       HttpClientTestingModule,
       RouterTestingModule.withRoutes(routes),
-      ToastrModule.forRoot(),
       NgbNavModule,
       PoolModule,
       SharedModule,
index bb1baff317c9a6aabe8f357c9b4b38b5a6f04e3a..f0f009e70400b2305b103527171081d03bcee580 100644 (file)
@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { RbdConfigurationListComponent } from '~/app/ceph/block/rbd-configuration-list/rbd-configuration-list.component';
@@ -49,7 +49,6 @@ describe('PoolListComponent', () => {
     imports: [
       BrowserAnimationsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       NgbNavModule,
       HttpClientTestingModule
index 72268ba9b3ba6b5bff98921e514e1d136dff295e..d90a486461ac7309f432e45cf3acf39a0d03d978 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 import { CreateRgwServiceEntitiesComponent } from './create-rgw-service-entities.component';
@@ -14,13 +14,7 @@ describe('CreateRgwServiceEntitiesComponent', () => {
   let fixture: ComponentFixture<CreateRgwServiceEntitiesComponent>;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     providers: [NgbActiveModal],
     declarations: [CreateRgwServiceEntitiesComponent]
   });
index be242f8b19cb31e113ed4ab90c6700c0f3e66d26..0706a8b8605f44cd95ae50367f4d64ce32178478 100644 (file)
@@ -1,7 +1,7 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { RgwMultisiteZoneDeletionFormComponent } from './rgw-multisite-zone-deletion-form.component';
@@ -12,7 +12,7 @@ describe('RgwMultisiteZoneDeletionFormComponent', () => {
 
   configureTestBed({
     declarations: [RgwMultisiteZoneDeletionFormComponent],
-    imports: [SharedModule, HttpClientTestingModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [SharedModule, HttpClientTestingModule, RouterTestingModule],
     providers: []
   });
 
index 7c325a6c91f50bc4d3bd14421ff7706a7813fd73..226fec352bc6afc5b1fdd68f4b07045775b59614 100644 (file)
@@ -2,7 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { RgwZonegroup } from '../rgw-multisite';
@@ -15,7 +15,7 @@ describe('RgwMultisiteZonegroupDeletionFormComponent', () => {
 
   configureTestBed({
     declarations: [RgwMultisiteZonegroupDeletionFormComponent],
-    imports: [SharedModule, HttpClientTestingModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [SharedModule, HttpClientTestingModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index f07609a22b9e36ae627d552a41825705fbd03bcf..75a3e5d0dd6ce18e6e6c01d5401ea9cf200d87b4 100644 (file)
@@ -5,7 +5,7 @@ import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 
 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
@@ -43,7 +43,6 @@ describe('RgwBucketFormComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       SelectModule,
       CheckboxModule
     ],
index 4aabbed98de110c8c247804d15ab61b1cf468a52..e7f91e2ebb46a380f6d182bd2588ed8ffe57d9e0 100644 (file)
@@ -4,7 +4,7 @@ import { configureTestBed } from '~/testing/unit-test-helper';
 import { of } from 'rxjs';
 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
 import { ReactiveFormsModule } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import {
   InputModule,
@@ -33,7 +33,6 @@ describe('RgwBucketLifecycleListComponent', () => {
       SelectModule,
       NumberModule,
       InputModule,
-      ToastrModule.forRoot(),
       ComponentsModule,
       ModalModule
     ],
index 121d39da0b9396de50fc3e1d1df9392259cf27b7..d2317a07be719dcb71461b9792191d89ebe501ab 100644 (file)
@@ -12,7 +12,6 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed, PermissionHelper } from '~/testing/unit-test-helper';
 import { RgwBucketDetailsComponent } from '../rgw-bucket-details/rgw-bucket-details.component';
 import { RgwBucketListComponent } from './rgw-bucket-list.component';
-import { ToastrModule } from 'ngx-toastr';
 
 describe('RgwBucketListComponent', () => {
   let component: RgwBucketListComponent;
@@ -27,8 +26,7 @@ describe('RgwBucketListComponent', () => {
       RouterTestingModule,
       SharedModule,
       NgbNavModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
+      HttpClientTestingModule
     ]
   });
 
index 8b806ba5ffe54317f822f8f76d3fcf384e896b67..05e7213ef1c5f0898a642c532003a91dd3f36764 100644 (file)
@@ -5,7 +5,6 @@ import { configureTestBed, PermissionHelper } from '~/testing/unit-test-helper';
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
 import { of } from 'rxjs';
-import { ToastrModule } from 'ngx-toastr';
 
 class MockRgwBucketService {
   listNotification = jest.fn((bucket: string) => of([{ bucket, notifications: [] }]));
@@ -19,7 +18,7 @@ describe('RgwBucketNotificationListComponent', () => {
 
   configureTestBed({
     declarations: [RgwBucketNotificationListComponent],
-    imports: [ComponentsModule, HttpClientTestingModule, ToastrModule.forRoot()],
+    imports: [ComponentsModule, HttpClientTestingModule],
     providers: [
       { provide: 'bucket', useValue: { bucket: 'bucket1', owner: 'dashboard' } },
       { provide: RgwBucketService, useClass: MockRgwBucketService }
index f74065e8a0a4b4dbf5b4c8eabf48b085609ef54b..6bfe176a6a082fea47e4ee4f0a8086786b0d5ec3 100644 (file)
@@ -5,7 +5,7 @@ import { configureTestBed } from '~/testing/unit-test-helper';
 import { of } from 'rxjs';
 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
 import { ReactiveFormsModule } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import {
   InputModule,
@@ -37,7 +37,6 @@ describe('RgwBucketTieringFormComponent', () => {
       SelectModule,
       NumberModule,
       InputModule,
-      ToastrModule.forRoot(),
       ComponentsModule,
       ModalModule,
       RouterTestingModule
index a266615043787dc466fb3696328e042b1a57d4f7..60c0e724a2827fef48b6d21266d16f96fce8af86 100644 (file)
@@ -4,7 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -16,13 +15,7 @@ describe('RgwConfigModalComponent', () => {
 
   configureTestBed({
     declarations: [RgwConfigModalComponent],
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     providers: [NgbActiveModal]
   });
 
index 8beef5def21ce7cae562cedc88b39af57483e834..ed2b838eefb5f739710a414c6689bf7cd9f22572 100644 (file)
@@ -1,7 +1,7 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { DebugElement } from '@angular/core';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 import { RgwMultisiteDetailsComponent } from './rgw-multisite-details.component';
@@ -19,13 +19,7 @@ describe('RgwMultisiteDetailsComponent', () => {
 
   configureTestBed({
     declarations: [RgwMultisiteDetailsComponent],
-    imports: [
-      HttpClientTestingModule,
-      SharedModule,
-      ToastrModule.forRoot(),
-      RouterTestingModule,
-      NgbNavModule
-    ],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule, NgbNavModule],
     providers: [NgbActiveModal]
   });
 
index bca0ddfe438b4fc09fd9ad8ab79328bfa9434bcf..64270da9c4c2b8789957c1a4979619f08cbe1935 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 import { RgwMultisiteExportComponent } from './rgw-multisite-export.component';
@@ -14,13 +14,7 @@ describe('RgwMultisiteExportComponent', () => {
   let fixture: ComponentFixture<RgwMultisiteExportComponent>;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     declarations: [RgwMultisiteExportComponent],
     providers: [NgbActiveModal]
   });
index 817c6a4230a836739dcc151c3b535cf0b6940100..f253223854957f88f404560028a536512c3f43c1 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 import { RgwMultisiteImportComponent } from './rgw-multisite-import.component';
@@ -14,13 +14,7 @@ describe('RgwMultisiteImportComponent', () => {
   let fixture: ComponentFixture<RgwMultisiteImportComponent>;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     declarations: [RgwMultisiteImportComponent],
     providers: [NgbActiveModal]
   });
index 2134e7f7c39a3097db469acff8190b2165a9e2ca..b32312e0620dcea4b31357391c5231f85f433980 100644 (file)
@@ -5,7 +5,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 
@@ -14,13 +14,7 @@ describe('RgwMultisiteMigrateComponent', () => {
   let fixture: ComponentFixture<RgwMultisiteMigrateComponent>;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     declarations: [RgwMultisiteMigrateComponent],
     providers: [NgbActiveModal]
   });
index 2843c8f411a37736f2b3fd7da9b7529279f8ea60..bb922f5acc03d6f89e13469867ddb729e9bda6c2 100644 (file)
@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
 import { of as observableOf } from 'rxjs';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RgwRealmService } from '~/app/shared/api/rgw-realm.service';
 import { NotificationType } from '~/app/shared/enum/notification-type.enum';
 import { NotificationService } from '~/app/shared/services/notification.service';
@@ -27,7 +27,6 @@ describe('RgwMultisiteRealmFormComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       HttpClientTestingModule,
-      ToastrModule.forRoot(),
       ModalModule,
       InputModule,
       CheckboxModule
index 82f42cc11217213c91f524a55bf11a8adc177205..a991659e347ba5f94182d098b6787df7ca3f96b8 100644 (file)
@@ -1,6 +1,6 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RgwMultisiteSyncFlowModalComponent } from './rgw-multisite-sync-flow-modal.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ReactiveFormsModule } from '@angular/forms';
@@ -29,7 +29,6 @@ describe('RgwMultisiteSyncFlowModalComponent', () => {
       declarations: [RgwMultisiteSyncFlowModalComponent],
       imports: [
         HttpClientTestingModule,
-        ToastrModule.forRoot(),
         PipesModule,
         ReactiveFormsModule,
         CommonModule,
index 1e476ce91744e53da98045cde5bd116e6f753be9..83ec05914f6502130b326f46cedca0df5dfe47c1 100644 (file)
@@ -2,7 +2,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { RgwMultisiteSyncPipeModalComponent } from './rgw-multisite-sync-pipe-modal.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { ReactiveFormsModule } from '@angular/forms';
 import { CommonModule } from '@angular/common';
@@ -28,7 +27,6 @@ describe('RgwMultisiteSyncPipeModalComponent', () => {
       declarations: [RgwMultisiteSyncPipeModalComponent],
       imports: [
         HttpClientTestingModule,
-        ToastrModule.forRoot(),
         PipesModule,
         ReactiveFormsModule,
         CommonModule,
index 94e8078c1c257f15b680d4cb728c5a914e2d6efc..8533a8836d19cc59e2518b1c2edf638a3dae27fc 100644 (file)
@@ -2,7 +2,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { RgwMultisiteSyncPolicyDetailsComponent } from './rgw-multisite-sync-policy-details.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { ModalModule } from 'carbon-components-angular';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -14,13 +13,7 @@ describe('RgwMultisiteSyncPolicyDetailsComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [RgwMultisiteSyncPolicyDetailsComponent],
-      imports: [
-        HttpClientTestingModule,
-        ToastrModule.forRoot(),
-        PipesModule,
-        ModalModule,
-        SharedModule
-      ]
+      imports: [HttpClientTestingModule, PipesModule, ModalModule, SharedModule]
     }).compileComponents();
 
     fixture = TestBed.createComponent(RgwMultisiteSyncPolicyDetailsComponent);
index 64ad562ef53ac301ba5e8c5c9c12345f349e4697..333bb3736756f45de34104ffc2e46b3ce4730149 100644 (file)
@@ -1,7 +1,6 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RgwMultisiteSyncPolicyFormComponent } from './rgw-multisite-sync-policy-form.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { ReactiveFormsModule } from '@angular/forms';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { ComponentsModule } from '~/app/shared/components/components.module';
@@ -20,7 +19,6 @@ describe('RgwMultisiteSyncPolicyFormComponent', () => {
       imports: [
         HttpClientTestingModule,
         ReactiveFormsModule,
-        ToastrModule.forRoot(),
         PipesModule,
         ComponentsModule,
         SharedModule,
index 2ca48c8e48ff6908b33634ce2a8d1f27b9fe2466..d4f0920b16c1366a3a2fd4c98039b2ceb804db59 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RgwMultisiteSyncPolicyComponent } from './rgw-multisite-sync-policy.component';
 import { HttpClientModule } from '@angular/common/http';
 import { TitleCasePipe } from '@angular/common';
-import { ToastrModule } from 'ngx-toastr';
+
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { ModalModule } from 'carbon-components-angular';
 import { RgwMultisiteTabsComponent } from '../rgw-multisite-tabs/rgw-multisite-tabs.component';
@@ -22,14 +22,7 @@ describe('RgwMultisiteSyncPolicyComponent', () => {
         RgwMultisiteTabsComponent,
         RgwMultisiteSyncPolicyDetailsComponent
       ],
-      imports: [
-        HttpClientModule,
-        ToastrModule.forRoot(),
-        PipesModule,
-        ModalModule,
-        SharedModule,
-        RouterTestingModule
-      ],
+      imports: [HttpClientModule, PipesModule, ModalModule, SharedModule, RouterTestingModule],
       providers: [TitleCasePipe]
     }).compileComponents();
 
index 21f36f9d0b31823b0b62dfa4fce86bb5f590719a..1844d136970bb5a7f2ecf5499760b27ce01032e7 100644 (file)
@@ -5,7 +5,7 @@ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { SharedModule } from '~/app/shared/shared.module';
 import { ReactiveFormsModule } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
 
@@ -16,13 +16,7 @@ describe('RgwMultisiteWizardComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [RgwMultisiteWizardComponent],
-      imports: [
-        HttpClientTestingModule,
-        SharedModule,
-        ReactiveFormsModule,
-        ToastrModule.forRoot(),
-        RouterTestingModule
-      ],
+      imports: [HttpClientTestingModule, SharedModule, ReactiveFormsModule, RouterTestingModule],
       schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA],
       providers: [NgbActiveModal]
     }).compileComponents();
index 79b12d4d8bbded38a7863d1a5916af5f7b6fbb45..2f09497ce0993417fb7a5264744d00a8d13dc4e5 100644 (file)
@@ -6,7 +6,7 @@ import { RgwZoneService } from '~/app/shared/api/rgw-zone.service';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { RgwZone } from '../models/rgw-multisite';
 import { NO_ERRORS_SCHEMA } from '@angular/compiler';
@@ -28,7 +28,6 @@ describe('RgwMultisiteZoneFormComponent', () => {
         HttpClientTestingModule,
         ModalModule,
         InputModule,
-        ToastrModule.forRoot(),
         CheckboxModule,
         SelectModule
       ],
index d7dc5e60627b39f8f61758b031cdde69a53bf0b8..d4d1ad0de8ee625449a111a283950494bfab6212 100644 (file)
@@ -5,7 +5,7 @@ import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import _ from 'lodash';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf } from 'rxjs';
 import { RgwZonegroupService } from '~/app/shared/api/rgw-zonegroup.service';
 import { NotificationType } from '~/app/shared/enum/notification-type.enum';
@@ -21,13 +21,7 @@ describe('RgwMultisiteZonegroupFormComponent', () => {
   let rgwZonegroupService: RgwZonegroupService;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     providers: [NgbActiveModal],
     declarations: [RgwMultisiteZonegroupFormComponent]
   });
index c8aec819e7465f497427fd2b74acabe78755414f..9f16d6b40d29aa9ae6e40173cc265a0813b29981 100644 (file)
@@ -2,7 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RgwNotificationFormComponent } from './rgw-notification-form.component';
 import { CdLabelComponent } from '~/app/shared/components/cd-label/cd-label.component';
 import { ReactiveFormsModule } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import {
   InputModule,
@@ -40,7 +40,6 @@ describe('RgwNotificationFormComponent', () => {
         SelectModule,
         NumberModule,
         InputModule,
-        ToastrModule.forRoot(),
         ComponentsModule,
         ModalModule,
         ComboBoxModule,
index de135658842f9250e0880c11636a89a061170d2e..941eabb426f9f2419f8f7a6ba106320d2f99a34f 100644 (file)
@@ -13,7 +13,7 @@ import { RgwRealmService } from '~/app/shared/api/rgw-realm.service';
 import { RgwZoneService } from '~/app/shared/api/rgw-zone.service';
 import { RgwZonegroupService } from '~/app/shared/api/rgw-zonegroup.service';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { CommonModule } from '@angular/common';
 import { ActivatedRoute } from '@angular/router';
 import { VERSION_PREFIX } from '~/app/shared/constants/app.constants';
@@ -91,7 +91,7 @@ describe('RgwOverviewDashboardComponent', () => {
           useValue: { params: { subscribe: (fn: Function) => fn(params) } }
         }
       ],
-      imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), CommonModule]
+      imports: [HttpClientTestingModule, SharedModule, CommonModule]
     }).compileComponents();
     fixture = TestBed.createComponent(RgwOverviewDashboardComponent);
     component = fixture.componentInstance;
index 2870f2b0f20e8e612f2a38cbd477f8e1db72b907..4caa78f60b729b52e127bd0ccc160f99e6b39be2 100644 (file)
@@ -5,7 +5,7 @@ import { AbstractControl, ReactiveFormsModule, ValidationErrors } from '@angular
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { FormatterService } from '~/app/shared/services/formatter.service';
 import { CheckboxModule, InputModule, NotificationService } from 'carbon-components-angular';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 import { SharedModule } from '~/app/shared/shared.module';
 
@@ -15,14 +15,12 @@ describe('RgwRateLimitComponent', () => {
   configureTestBed({
     imports: [
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       InputModule,
       CheckboxModule,
       HttpClientTestingModule,
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       InputModule
     ],
     declarations: [RgwRateLimitComponent],
index 3d50c6ea3cd69f062138b974df963b4d5fbc856b..919a19a398e34550630b7e636f3da8dd1975c29d 100644 (file)
@@ -4,7 +4,7 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ReactiveFormsModule } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import {
   CheckboxModule,
   ComboBoxModule,
@@ -28,7 +28,6 @@ describe('RgwStorageClassFormComponent', () => {
         HttpClientTestingModule,
         RouterTestingModule,
         ReactiveFormsModule,
-        ToastrModule.forRoot(),
         GridModule,
         InputModule,
         CoreModule,
index 5908ada97294206c4a5407ba51fe9ede4ae19d36..1409333e9e82d53bc75c1bf7049614824d00c223 100644 (file)
@@ -4,7 +4,7 @@ import { RgwStorageClassListComponent } from './rgw-storage-class-list.component
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { RouterTestingModule } from '@angular/router/testing';
 
 describe('RgwStorageClassListComponent', () => {
@@ -13,7 +13,7 @@ describe('RgwStorageClassListComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+      imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
       providers: [NgbActiveModal],
       declarations: [RgwStorageClassListComponent]
     }).compileComponents();
index a08996ffd26888bd02d9cd05964d2df9b051c094..8eca17be7acf1e6194d2953a278fe697b07bc4f1 100644 (file)
@@ -5,7 +5,7 @@ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 
@@ -14,13 +14,7 @@ describe('RgwSystemUserComponent', () => {
   let fixture: ComponentFixture<RgwSystemUserComponent>;
 
   configureTestBed({
-    imports: [
-      SharedModule,
-      ReactiveFormsModule,
-      RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
-    ],
+    imports: [SharedModule, ReactiveFormsModule, RouterTestingModule, HttpClientTestingModule],
     declarations: [RgwSystemUserComponent],
     providers: [NgbActiveModal]
   });
index dd6ff2fee3588f6ee055b9d28cc5ee779507f030..eaef62c5e37f6c5d82be6e4ec6b083e8be89d62d 100644 (file)
@@ -8,7 +8,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ActionLabelsI18n } from '~/app/shared/constants/app.constants';
 import { TextAreaJsonFormatterService } from '~/app/shared/services/text-area-json-formatter.service';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { GridModule, InputModule, SelectModule } from 'carbon-components-angular';
 import { NO_ERRORS_SCHEMA } from '@angular/compiler';
 
@@ -40,7 +40,6 @@ describe('RgwTopicFormComponent', () => {
         RouterTestingModule,
         HttpClientTestingModule,
         SharedModule,
-        ToastrModule.forRoot(),
         SelectModule,
         GridModule,
         InputModule
index 79d6b20fab226d9f11e880be58a6d52cee0e99ff..d7224318078d7f1bdb7f5937308e554b2d1fb268 100644 (file)
@@ -7,7 +7,6 @@ import { RgwTopicDetailsComponent } from '../rgw-topic-details/rgw-topic-details
 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 import { RgwTopicService } from '~/app/shared/api/rgw-topic.service';
 
@@ -28,7 +27,6 @@ describe('RgwTopicListComponent', () => {
         BrowserAnimationsModule,
         SharedModule,
         HttpClientTestingModule,
-        ToastrModule.forRoot(),
         RouterTestingModule
       ],
       declarations: [RgwTopicListComponent]
index 87499ce2affe7aa5daa0fdd3618d14a058102fbf..0db3d09f6b184caf8463279f9f97a4043124dc60 100644 (file)
@@ -4,7 +4,6 @@ import { RgwUserAccountsFormComponent } from './rgw-user-accounts-form.component
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { RouterTestingModule } from '@angular/router/testing';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { of } from 'rxjs';
 import { RgwUserAccountsService } from '~/app/shared/api/rgw-user-accounts.service';
@@ -28,7 +27,6 @@ describe('RgwUserAccountsFormComponent', () => {
       declarations: [RgwUserAccountsFormComponent],
       imports: [
         ComponentsModule,
-        ToastrModule.forRoot(),
         HttpClientTestingModule,
         PipesModule,
         RouterTestingModule.withRoutes([
index ff25b3ca17e7c92b874c3a6362b7f0a53995a0c7..0f7bb866f3e7b75e648dafe3b1d2c093068c98fd 100644 (file)
@@ -2,7 +2,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { RgwUserAccountsComponent } from './rgw-user-accounts.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule } from 'ngx-toastr';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ComponentsModule } from '~/app/shared/components/components.module';
@@ -14,13 +13,7 @@ describe('RgwUserAccountsComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [RgwUserAccountsComponent],
-      imports: [
-        ComponentsModule,
-        ToastrModule.forRoot(),
-        HttpClientTestingModule,
-        PipesModule,
-        RouterTestingModule
-      ]
+      imports: [ComponentsModule, HttpClientTestingModule, PipesModule, RouterTestingModule]
     }).compileComponents();
 
     fixture = TestBed.createComponent(RgwUserAccountsComponent);
index 95aff3b5173705c1f8e68596d97913e36adac95f..b93adfae1755a61d8a53167d976ca5db28578f27 100644 (file)
@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of as observableOf, throwError } from 'rxjs';
 
 import { RgwUserService } from '~/app/shared/api/rgw-user.service';
@@ -40,7 +40,6 @@ describe('RgwUserFormComponent', () => {
       ReactiveFormsModule,
       RouterTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbTooltipModule,
       PipesModule,
       CheckboxModule,
index f7ecf3290810ce0c56ad9a26e245bcbcf79b9551..3e9eb6821246e4563e038f4130e9bef31cb61221 100644 (file)
@@ -3,7 +3,6 @@ import { FormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -15,7 +14,7 @@ describe('RgwUserSwiftKeyModalComponent', () => {
 
   configureTestBed({
     declarations: [RgwUserSwiftKeyModalComponent],
-    imports: [ToastrModule.forRoot(), FormsModule, SharedModule, RouterTestingModule],
+    imports: [FormsModule, SharedModule, RouterTestingModule],
     providers: [NgbActiveModal]
   });
 
index c82f159f5a206a65d9311a71d5a27c67e7ff09f0..c5e27b99054ae2e45ffe49714b788b924fa43f54 100644 (file)
@@ -4,7 +4,7 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { throwError } from 'rxjs';
 
 import { FeedbackService } from '~/app/shared/api/feedback.service';
@@ -26,7 +26,6 @@ describe('FeedbackComponent', () => {
       HttpClientTestingModule,
       RouterTestingModule,
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       SharedModule,
       SelectModule
     ],
index f115f07f43bc3ad48ed7ee33b2ad996686ba2b42..6894a5c6030f4d77aecb88ecea7d8bb31678930f 100644 (file)
@@ -5,7 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { SharedModule } from '~/app/shared/shared.module';
 import { RouterTestingModule } from '@angular/router/testing';
 import { FormArray, ReactiveFormsModule, Validators } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ComboBoxModule, GridModule, InputModule, SelectModule } from 'carbon-components-angular';
 import { AUTHMODE } from '../smb.model';
 import { FOO_USERSGROUPS } from '../smb-usersgroups-form/smb-usersgroups-form.component.spec';
@@ -25,7 +25,6 @@ describe('SmbClusterFormComponent', () => {
         HttpClientTestingModule,
         RouterTestingModule,
         ReactiveFormsModule,
-        ToastrModule.forRoot(),
         GridModule,
         InputModule,
         SelectModule,
index d1c24d1dbe108f397b931d9ec679bd45d8366d7d..ce050696a78f621655d1278c45b2c232720dd36d 100644 (file)
@@ -6,8 +6,6 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 describe('SmbClusterListComponent', () => {
   let component: SmbClusterListComponent;
   let fixture: ComponentFixture<SmbClusterListComponent>;
@@ -18,7 +16,6 @@ describe('SmbClusterListComponent', () => {
         BrowserAnimationsModule,
         SharedModule,
         HttpClientTestingModule,
-        ToastrModule.forRoot(),
         RouterTestingModule
       ],
       declarations: [SmbClusterListComponent]
index 1258cd71565e3547561a52f2e9b54ad2d2302fda..58295c4cd2f093eab71adc4a316cdb17596f999c 100644 (file)
@@ -2,7 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { SmbDomainSettingModalComponent } from './smb-domain-setting-modal.component';
 import { SharedModule } from '~/app/shared/shared.module';
-import { ToastrModule } from 'ngx-toastr';
+
 import { ReactiveFormsModule } from '@angular/forms';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
@@ -22,7 +22,6 @@ describe('SmbDomainSettingModalComponent', () => {
       declarations: [SmbDomainSettingModalComponent],
       imports: [
         SharedModule,
-        ToastrModule.forRoot(),
         ReactiveFormsModule,
         HttpClientTestingModule,
         RouterTestingModule,
index 35cbbc6bf5a8b4416e5c56bce4605013a5eede65..0dc905be42e385d550036c1f9660fbf7f8123283 100644 (file)
@@ -1,7 +1,7 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { SmbJoinAuthFormComponent } from './smb-join-auth-form.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 import { provideHttpClient } from '@angular/common/http';
 import { provideHttpClientTesting } from '@angular/common/http/testing';
@@ -29,7 +29,7 @@ describe('SmbJoinAuthFormComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [ToastrModule.forRoot(), SharedModule, ReactiveFormsModule],
+      imports: [SharedModule, ReactiveFormsModule],
       declarations: [SmbJoinAuthFormComponent],
       providers: [provideHttpClient(), provideHttpClientTesting(), provideRouter([])]
     }).compileComponents();
index d74f0ef39034c8ec7e1e9b357cbb3974ca1252eb..6dbafadd987ad77462fea5ca2318c800435c0da8 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { SmbJoinAuthListComponent } from './smb-join-auth-list.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 describe('SmbJoinAuthListComponent', () => {
@@ -13,7 +13,7 @@ describe('SmbJoinAuthListComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [SmbJoinAuthListComponent],
-      imports: [SharedModule, HttpClientTestingModule, ToastrModule.forRoot(), RouterTestingModule]
+      imports: [SharedModule, HttpClientTestingModule, RouterTestingModule]
     }).compileComponents();
 
     fixture = TestBed.createComponent(SmbJoinAuthListComponent);
index d096f708f6287b93a4120dd23b6d4e049c128a20..a1300f298e79d355c51d3d83e4d322572b4717a0 100644 (file)
@@ -5,7 +5,7 @@ import { SharedModule } from '~/app/shared/shared.module';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 import { ReactiveFormsModule, Validators } from '@angular/forms';
-import { ToastrModule } from 'ngx-toastr';
+
 import {
   CheckboxModule,
   ComboBoxModule,
@@ -29,7 +29,6 @@ describe('SmbShareFormComponent', () => {
         HttpClientTestingModule,
         RouterTestingModule,
         ReactiveFormsModule,
-        ToastrModule.forRoot(),
         GridModule,
         InputModule,
         NumberModule,
index 9822fe2ed92856f4304c789636193bf053690744..931b62c77ebe4440d97ba693ab72ae20cb88d502 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { SmbShareListComponent } from './smb-share-list.component';
 import { provideHttpClientTesting } from '@angular/common/http/testing';
 import { provideHttpClient } from '@angular/common/http';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 describe('SmbShareListComponent', () => {
@@ -12,7 +12,7 @@ describe('SmbShareListComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [ToastrModule.forRoot(), SharedModule],
+      imports: [SharedModule],
       declarations: [SmbShareListComponent],
       providers: [provideHttpClient(), provideHttpClientTesting()]
     }).compileComponents();
index 8cfc7b39ab30d14ff3961d770c690922c36a60cd..5dcb4fca144c6277e443bfdf64b77afc7c94008d 100644 (file)
@@ -1,7 +1,7 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { SmbUsersgroupsFormComponent } from './smb-usersgroups-form.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { provideHttpClient } from '@angular/common/http';
 import { provideHttpClientTesting } from '@angular/common/http/testing';
 import { FormGroup, ReactiveFormsModule } from '@angular/forms';
@@ -38,7 +38,7 @@ describe('SmbUsersgroupsFormComponent', () => {
 
   beforeEach(async () => {
     await TestBed.configureTestingModule({
-      imports: [ToastrModule.forRoot(), SharedModule, ReactiveFormsModule],
+      imports: [SharedModule, ReactiveFormsModule],
       declarations: [SmbUsersgroupsFormComponent],
       providers: [provideHttpClient(), provideHttpClientTesting(), provideRouter([])]
     }).compileComponents();
index 6d15c800122803e77e9c8d323907fe85f278ebfa..ba4e7504222bd3cc1f5c9c53341a3499e473bb24 100644 (file)
@@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { SmbUsersgroupsListComponent } from './smb-usersgroups-list.component';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { RouterTestingModule } from '@angular/router/testing';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '~/app/shared/shared.module';
 
 describe('SmbUsersgroupsListComponent', () => {
@@ -13,7 +13,7 @@ describe('SmbUsersgroupsListComponent', () => {
   beforeEach(async () => {
     await TestBed.configureTestingModule({
       declarations: [SmbUsersgroupsListComponent],
-      imports: [SharedModule, HttpClientTestingModule, ToastrModule.forRoot(), RouterTestingModule]
+      imports: [SharedModule, HttpClientTestingModule, RouterTestingModule]
     }).compileComponents();
 
     fixture = TestBed.createComponent(SmbUsersgroupsListComponent);
index 062d076e424ed5d2ccecc7f7e2a339d187b8de09..3b94e5cd0d787181e9d856827e2f43a7000fae70 100755 (executable)
@@ -4,8 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { AuthService } from '~/app/shared/api/auth.service';
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
@@ -30,7 +28,6 @@ describe('LoginPasswordFormComponent', () => {
       RouterTestingModule,
       ReactiveFormsModule,
       ComponentsModule,
-      ToastrModule.forRoot(),
       SharedModule
     ],
     declarations: [LoginPasswordFormComponent]
index c1d979dd8378bc94d8c3f4efbbe835c46201f679..f10e315e5df2e4173e9758b93065e882e40dcb56 100644 (file)
@@ -5,7 +5,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { Router, Routes } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { of } from 'rxjs';
 
 import { RoleService } from '~/app/shared/api/role.service';
@@ -37,7 +36,6 @@ describe('RoleFormComponent', () => {
       RouterTestingModule.withRoutes(routes),
       HttpClientTestingModule,
       ReactiveFormsModule,
-      ToastrModule.forRoot(),
       SharedModule
     ],
     declarations: [RoleFormComponent, FakeComponent]
index b2ece204c7bff779e9db40e4a6701227f64e6ecb..9d9c52ef6100d5adaa1456069d6d2031efd3a479 100644 (file)
@@ -4,7 +4,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { TableActionsComponent } from '~/app/shared/datatable/table-actions/table-actions.component';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -22,7 +21,6 @@ describe('RoleListComponent', () => {
     imports: [
       BrowserAnimationsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbNavModule,
       RouterTestingModule,
       HttpClientTestingModule
index c39eeb050afc372cb251a638767a29caf7454c67..130349344866cdb3d0b7521c2c444f59aac9b884 100644 (file)
@@ -6,7 +6,7 @@ import { Router, Routes } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { RoleService } from '~/app/shared/api/role.service';
@@ -49,7 +49,6 @@ describe('UserFormComponent', () => {
       HttpClientTestingModule,
       ReactiveFormsModule,
       ComponentsModule,
-      ToastrModule.forRoot(),
       SharedModule,
       NgbPopoverModule
     ],
index beed66c40afdd4616d3ae128a2f4f40d00731393..a8ae79a3f90ba1ec64278c9c25f0fc97d7905e9c 100644 (file)
@@ -4,7 +4,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { TableActionsComponent } from '~/app/shared/datatable/table-actions/table-actions.component';
 import { SharedModule } from '~/app/shared/shared.module';
@@ -20,7 +19,6 @@ describe('UserListComponent', () => {
     imports: [
       BrowserAnimationsModule,
       SharedModule,
-      ToastrModule.forRoot(),
       NgbNavModule,
       RouterTestingModule,
       HttpClientTestingModule
index b1df8cf42e4e60e87ab25cf0a57332e82da3765f..d1a71b4ed550553bc0d4234926f84464b50b98b8 100644 (file)
@@ -4,8 +4,6 @@ import { ReactiveFormsModule } from '@angular/forms';
 import { Router } from '@angular/router';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
 import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
@@ -28,7 +26,6 @@ describe('UserPasswordFormComponent', () => {
       RouterTestingModule,
       ReactiveFormsModule,
       ComponentsModule,
-      ToastrModule.forRoot(),
       SharedModule
     ],
     declarations: [UserPasswordFormComponent]
index 5763d4d975fb6dd3ea2e85c496fdf1d765c3ddc4..3e9b24ebf8e611cc560f7e679922ac4ea2ec9056 100644 (file)
@@ -2,8 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { SharedModule } from '~/app/shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { ErrorComponent } from './error.component';
@@ -14,7 +12,7 @@ describe('ErrorComponent', () => {
 
   configureTestBed({
     declarations: [ErrorComponent],
-    imports: [HttpClientTestingModule, RouterTestingModule, SharedModule, ToastrModule.forRoot()]
+    imports: [HttpClientTestingModule, RouterTestingModule, SharedModule]
   });
 
   beforeEach(() => {
index 22451d8206a0cee962e441b287556655e47dff73..093212a8e0ff64815daccd3f3e4bf95648a10bbd 100644 (file)
@@ -3,8 +3,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { RbdService } from '~/app/shared/api/rbd.service';
 import { CssHelper } from '~/app/shared/classes/css-helper';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
@@ -17,7 +15,7 @@ describe('WorkbenchLayoutComponent', () => {
   let fixture: ComponentFixture<WorkbenchLayoutComponent>;
 
   configureTestBed({
-    imports: [RouterTestingModule, ToastrModule.forRoot(), PipesModule, HttpClientTestingModule],
+    imports: [RouterTestingModule, PipesModule, HttpClientTestingModule],
     declarations: [WorkbenchLayoutComponent],
     schemas: [NO_ERRORS_SCHEMA],
     providers: [AuthStorageService, CssHelper, RbdService]
index 9ee956f4bdf772194d19288661bc80583b9909dd..1b5e18bccab1842956a33fa783da95c195eeced8 100644 (file)
@@ -3,7 +3,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { By } from '@angular/platform-browser';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { SimplebarAngularModule } from 'simplebar-angular';
 import { of } from 'rxjs';
 
@@ -69,7 +68,6 @@ describe('NavigationComponent', () => {
     imports: [
       HttpClientTestingModule,
       SharedModule,
-      ToastrModule.forRoot(),
       RouterTestingModule,
       SimplebarAngularModule,
       NgbModule,
index 85659e2944b480199af57532742719081f5fb9e9..6731eed237e711beddb5026d526ba507b367473e 100644 (file)
@@ -10,7 +10,6 @@ import { NotificationType } from '../../../../shared/enum/notification-type.enum
 import { SharedModule } from '../../../../shared/shared.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('NotificationAreaComponent', () => {
   let component: NotificationAreaComponent;
   let fixture: ComponentFixture<NotificationAreaComponent>;
index a5c7ccba21be4d6c8f57c1b618735771a5a699bf..fda5fbeaa8a360fb246743988d7e04e6fb632063 100644 (file)
@@ -2,8 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
-
 import { CdNotification, CdNotificationConfig } from '~/app/shared/models/cd-notification';
 import { ExecutingTask } from '~/app/shared/models/executing-task';
 import { NotificationService } from '~/app/shared/services/notification.service';
@@ -30,7 +28,7 @@ describe('NotificationsComponent', () => {
   };
 
   configureTestBed({
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot(), RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     declarations: [NotificationsComponent],
     providers: [{ provide: NotificationService, useValue: notificationServiceMock }]
   });
index 766b8f385b248fbcefdfcb3ed2d9312b0d99680a..b1510c5e293f62f2aada880e14a5507275f52123 100644 (file)
@@ -1,6 +1,5 @@
 import { TestBed } from '@angular/core/testing';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { CephfsSnapshotScheduleService } from './cephfs-snapshot-schedule.service';
 
index 13dad1430412bca1b6bb0f1a308440fa13c0b3d1..7140fd482bbd7e32c78c5e4b7e5d1cd5fc5c9a5c 100644 (file)
@@ -3,7 +3,6 @@ import { TestBed } from '@angular/core/testing';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { CephfsSubvolumeGroupService } from './cephfs-subvolume-group.service';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('CephfsSubvolumeGroupService', () => {
   let service: CephfsSubvolumeGroupService;
 
index 78590c89f53f7390a15f616dd0a2c410a5dbaa07..02c4e42cd89bbeaa19ae614555405246049393e1 100644 (file)
@@ -4,7 +4,6 @@ import { DirectoryStoreService } from './directory-store.service';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { CephfsService } from './cephfs.service';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('DirectoryStoreService', () => {
   let service: DirectoryStoreService;
 
index 6479b6cd78cb38c7339be6cfa5437a93a08f6577..0f65e6ebc0f12404ed5286aefebb5ad3e1547145 100644 (file)
@@ -7,7 +7,7 @@ import { MgrModuleService } from './mgr-module.service';
 import { CdTableSelection } from '../models/cd-table-selection';
 import { NotificationService } from '~/app/shared/services/notification.service';
 import { MgrModuleListComponent } from '~/app/ceph/cluster/mgr-modules/mgr-module-list/mgr-module-list.component';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '../shared.module';
 import { BlockUIService } from 'ng-block-ui';
 import { SummaryService } from '../services/summary.service';
@@ -19,7 +19,7 @@ describe('MgrModuleService', () => {
 
   configureTestBed({
     declarations: [MgrModuleListComponent],
-    imports: [HttpClientTestingModule, SharedModule, ToastrModule.forRoot()],
+    imports: [HttpClientTestingModule, SharedModule],
     providers: [MgrModuleService]
   });
 
index 88140fe769eabd0c78329b4006d4b1864219405b..3bd9dc4cbcca20ef011c8d2ec9f3288f3291e6cc 100644 (file)
@@ -2,7 +2,6 @@ import { TestBed } from '@angular/core/testing';
 
 import { MultiClusterService } from './multi-cluster.service';
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-
 describe('MultiClusterService', () => {
   let service: MultiClusterService;
 
index 27b1e5fe54579078b9a37425624fe46e8c2bcafa..9ac3d71703daf7657b02c67923c98a2708ad8bbd 100644 (file)
@@ -3,7 +3,7 @@ import { TestBed } from '@angular/core/testing';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { RgwMultisiteService } from './rgw-multisite.service';
 import { BlockUIModule } from 'ng-block-ui';
-import { ToastrModule } from 'ngx-toastr';
+
 import { SharedModule } from '../shared.module';
 
 const mockSyncPolicyData: any = [
@@ -28,12 +28,7 @@ describe('RgwMultisiteService', () => {
 
   configureTestBed({
     providers: [RgwMultisiteService],
-    imports: [
-      HttpClientTestingModule,
-      BlockUIModule.forRoot(),
-      ToastrModule.forRoot(),
-      SharedModule
-    ]
+    imports: [HttpClientTestingModule, BlockUIModule.forRoot(), SharedModule]
   });
 
   beforeEach(() => {
index 53b020ad5b023f8754a2e9a5388d624d2e6aac44..161e81ce79cbed05528808e995b9c166c8664a56 100644 (file)
@@ -10,7 +10,7 @@ import {
   USERSGROUPS_RESOURCE
 } from '~/app/ceph/smb/smb.model';
 import { NotificationService } from '../services/notification.service';
-import { ToastrModule } from 'ngx-toastr';
+
 import { NotificationType } from '../enum/notification-type.enum';
 import { SharedModule } from '../shared.module';
 import { USER } from '~/app/shared/constants/app.constants';
@@ -22,7 +22,7 @@ describe('SmbService', () => {
 
   configureTestBed({
     providers: [SmbService, provideHttpClient(), provideHttpClientTesting()],
-    imports: [ToastrModule.forRoot(), SharedModule]
+    imports: [SharedModule]
   });
 
   beforeEach(() => {
index 1acdd85ccb170d6f44a3c39815ba3d46dbdf8e4c..5cac6c1cf579220b595720af4c091507be585916 100644 (file)
@@ -1,5 +1,5 @@
 import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
-import { FormControl, FormsModule } from '@angular/forms';
+import { FormControl } from '@angular/forms';
 
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { DateTimePickerComponent } from './date-time-picker.component';
@@ -15,7 +15,7 @@ describe('DateTimePickerComponent', () => {
 
   configureTestBed({
     declarations: [DateTimePickerComponent],
-    imports: [DatePickerModule, FormsModule, TimePickerModule, TimePickerSelectModule]
+    imports: [DatePickerModule, TimePickerModule, TimePickerSelectModule]
   });
 
   beforeEach(() => {
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/components/notifications-sidebar/notifications-sidebar.component.spec.ts
deleted file mode 100644 (file)
index a34934a..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-import { HttpClientTestingModule } from '@angular/common/http/testing';
-import {
-  ComponentFixture,
-  discardPeriodicTasks,
-  fakeAsync,
-  TestBed,
-  tick
-} from '@angular/core/testing';
-import { NoopAnimationsModule } from '@angular/platform-browser/animations';
-import { RouterTestingModule } from '@angular/router/testing';
-
-import { NgbProgressbarModule } from '@ng-bootstrap/ng-bootstrap';
-import { ClickOutsideModule } from 'ng-click-outside';
-import { ToastrModule } from 'ngx-toastr';
-import { SimplebarAngularModule } from 'simplebar-angular';
-
-import { PrometheusService } from '~/app/shared/api/prometheus.service';
-import { NotificationType } from '~/app/shared/enum/notification-type.enum';
-import { ExecutingTask } from '~/app/shared/models/executing-task';
-import { Permissions } from '~/app/shared/models/permissions';
-import { PipesModule } from '~/app/shared/pipes/pipes.module';
-import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
-import { NotificationService } from '~/app/shared/services/notification.service';
-import { PrometheusAlertService } from '~/app/shared/services/prometheus-alert.service';
-import { PrometheusNotificationService } from '~/app/shared/services/prometheus-notification.service';
-import { SummaryService } from '~/app/shared/services/summary.service';
-import { configureTestBed } from '~/testing/unit-test-helper';
-import { NotificationsSidebarComponent } from './notifications-sidebar.component';
-
-describe('NotificationsSidebarComponent', () => {
-  let component: NotificationsSidebarComponent;
-  let fixture: ComponentFixture<NotificationsSidebarComponent>;
-  let prometheusUpdatePermission: string;
-  let prometheusReadPermission: string;
-  let prometheusCreatePermission: string;
-  let configOptReadPermission: string;
-
-  configureTestBed({
-    imports: [
-      HttpClientTestingModule,
-      PipesModule,
-      NgbProgressbarModule,
-      RouterTestingModule,
-      ToastrModule.forRoot(),
-      NoopAnimationsModule,
-      SimplebarAngularModule,
-      ClickOutsideModule
-    ],
-    declarations: [NotificationsSidebarComponent],
-    providers: [
-      {
-        provide: PrometheusService,
-        useValue: {
-          setSilence: jasmine.createSpy('setSilence'),
-          expireSilence: jasmine.createSpy('expireSilence')
-        }
-      },
-      {
-        provide: PrometheusAlertService,
-        useValue: {
-          refresh: jasmine.createSpy('refresh')
-        }
-      },
-      {
-        provide: PrometheusNotificationService,
-        useValue: {
-          refresh: jasmine.createSpy('refresh')
-        }
-      }
-    ]
-  });
-
-  beforeEach(() => {
-    prometheusReadPermission = 'read';
-    prometheusUpdatePermission = 'update';
-    prometheusCreatePermission = 'create';
-    configOptReadPermission = 'read';
-    spyOn(TestBed.inject(AuthStorageService), 'getPermissions').and.callFake(
-      () =>
-        new Permissions({
-          prometheus: [
-            prometheusReadPermission,
-            prometheusUpdatePermission,
-            prometheusCreatePermission
-          ],
-          'config-opt': [configOptReadPermission]
-        })
-    );
-    fixture = TestBed.createComponent(NotificationsSidebarComponent);
-    component = fixture.componentInstance;
-  });
-
-  it('should create', () => {
-    fixture.detectChanges();
-    expect(component).toBeTruthy();
-  });
-
-  describe('prometheus alert handling', () => {
-    let prometheusAlertService: PrometheusAlertService;
-    let prometheusNotificationService: PrometheusNotificationService;
-
-    const expectPrometheusServicesToBeCalledTimes = (n: number) => {
-      expect(prometheusNotificationService.refresh).toHaveBeenCalledTimes(n);
-      expect(prometheusAlertService.refresh).toHaveBeenCalledTimes(n);
-    };
-
-    beforeEach(() => {
-      prometheusAlertService = TestBed.inject(PrometheusAlertService);
-      prometheusNotificationService = TestBed.inject(PrometheusNotificationService);
-
-      (prometheusAlertService.refresh as jasmine.Spy).calls.reset();
-      (prometheusNotificationService.refresh as jasmine.Spy).calls.reset();
-    });
-
-    it('should not refresh prometheus services if not allowed', () => {
-      prometheusReadPermission = '';
-      configOptReadPermission = 'read';
-      fixture.detectChanges();
-
-      expectPrometheusServicesToBeCalledTimes(0);
-
-      prometheusReadPermission = 'read';
-      configOptReadPermission = '';
-      fixture.detectChanges();
-
-      expectPrometheusServicesToBeCalledTimes(0);
-    });
-
-    it('should first refresh prometheus notifications and alerts during init', () => {
-      fixture.detectChanges();
-
-      expect(prometheusAlertService.refresh).toHaveBeenCalledTimes(1);
-      expectPrometheusServicesToBeCalledTimes(1);
-    });
-
-    it('should refresh prometheus services every 5s', fakeAsync(() => {
-      fixture.detectChanges();
-
-      expectPrometheusServicesToBeCalledTimes(1);
-      tick(5000);
-      expectPrometheusServicesToBeCalledTimes(2);
-      tick(15000);
-      expectPrometheusServicesToBeCalledTimes(5);
-      component.ngOnDestroy();
-    }));
-  });
-
-  describe('Running Tasks', () => {
-    let summaryService: SummaryService;
-
-    beforeEach(() => {
-      fixture.detectChanges();
-      summaryService = TestBed.inject(SummaryService);
-
-      spyOn(component, '_handleTasks').and.callThrough();
-    });
-
-    it('should handle executing tasks', () => {
-      const running_tasks = new ExecutingTask('rbd/delete', {
-        image_spec: 'somePool/someImage'
-      });
-
-      summaryService['summaryDataSource'].next({ executing_tasks: [running_tasks] });
-
-      expect(component._handleTasks).toHaveBeenCalled();
-      expect(component.executingTasks.length).toBe(1);
-      expect(component.executingTasks[0].description).toBe(`Deleting RBD 'somePool/someImage'`);
-    });
-  });
-
-  describe('Notifications', () => {
-    it('should fetch latest notifications', fakeAsync(() => {
-      const notificationService: NotificationService = TestBed.inject(NotificationService);
-      fixture.detectChanges();
-
-      expect(component.notifications.length).toBe(0);
-
-      notificationService.show(NotificationType.success, 'Sample title', 'Sample message');
-      tick(6000);
-      expect(component.notifications.length).toBe(1);
-      expect(component.notifications[0].title).toBe('Sample title');
-      discardPeriodicTasks();
-    }));
-  });
-});
index dd5012bd537798dc46f37a403cdcb7b798c99ce0..6dde754f437dd826434ab679f6109210fb16043b 100644 (file)
@@ -2,7 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { NgbAlertModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
+
 import { of } from 'rxjs';
 
 import { MgrModuleService } from '~/app/shared/api/mgr-module.service';
@@ -42,13 +42,7 @@ describe('TelemetryActivationNotificationComponent', () => {
 
   configureTestBed({
     declarations: [TelemetryNotificationComponent, AlertPanelComponent],
-    imports: [
-      NgbAlertModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot(),
-      PipesModule,
-      BlockUIModule.forRoot()
-    ],
+    imports: [NgbAlertModule, HttpClientTestingModule, PipesModule, BlockUIModule.forRoot()],
     providers: [MgrModuleService, UserService]
   });
 
index 0c82410e2478ff416e903214359219e1b83aca01..7c7e57074b6d4b9e436bd6f1a09e0479b60031dc 100644 (file)
@@ -5,7 +5,6 @@ import { FormsModule } from '@angular/forms';
 import { RouterTestingModule } from '@angular/router/testing';
 
 import { NgbDropdownModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
-import { ToastrModule } from 'ngx-toastr';
 
 import { ComponentsModule } from '~/app/shared/components/components.module';
 import { PipesModule } from '~/app/shared/pipes/pipes.module';
@@ -33,8 +32,7 @@ describe('CRUDTableComponent', () => {
       PipesModule,
       NgbTooltipModule,
       RouterTestingModule,
-      HttpClientTestingModule,
-      ToastrModule.forRoot()
+      HttpClientTestingModule
     ]
   });
   beforeEach(() => {
index fb0293443a9fa712e4c891440d16b1ec0955f72c..9a119e96315efa85f32e98180a1b827617442da5 100644 (file)
@@ -1,6 +1,6 @@
 import { Component } from '@angular/core';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
 import { By } from '@angular/platform-browser';
 
 import { configureTestBed } from '~/testing/unit-test-helper';
index 50c6bb1998f88c3a9948726156421eaf999e9b00..8a324a3a1c7fa5f574cfbe19d486cf1d977500f6 100644 (file)
@@ -1,7 +1,6 @@
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { HttpClientTestingModule } from '@angular/common/http/testing';
-import { ToastrModule, ToastrService } from 'ngx-toastr';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { CdDatePipe } from '~/app/shared/pipes/cd-date.pipe';
 import { CrudFormComponent } from './crud-form.component';
@@ -10,18 +9,10 @@ import { RouterTestingModule } from '@angular/router/testing';
 describe('CrudFormComponent', () => {
   let component: CrudFormComponent;
   let fixture: ComponentFixture<CrudFormComponent>;
-  const toastFakeService = {
-    error: () => true,
-    info: () => true,
-    success: () => true
-  };
 
   configureTestBed({
-    imports: [ToastrModule.forRoot(), RouterTestingModule, HttpClientTestingModule],
-    providers: [
-      { provide: ToastrService, useValue: toastFakeService },
-      { provide: CdDatePipe, useValue: { transform: (d: any) => d } }
-    ]
+    imports: [RouterTestingModule, HttpClientTestingModule],
+    providers: [{ provide: CdDatePipe, useValue: { transform: (d: any) => d } }]
   });
 
   configureTestBed({
index 8c62230f12f9ac106b103a838d923ab2630785f7..d7ddc1b29f2f8fcea778ed84d6767aca68b10efb 100644 (file)
@@ -3,8 +3,6 @@ import { HttpClientTestingModule, HttpTestingController } from '@angular/common/
 import { fakeAsync, TestBed, tick, flush } from '@angular/core/testing';
 import { Router } from '@angular/router';
 
-import { ToastrService } from 'ngx-toastr';
-
 import { AppModule } from '~/app/app.module';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { NotificationType } from '../enum/notification-type.enum';
@@ -70,7 +68,6 @@ describe('ApiInterceptorService', () => {
     providers: [
       NotificationService,
       {
-        provide: ToastrService,
         useValue: {
           error: () => true
         }
index ca1627dbece80c2f5aa291a37ee08fa7bb8ed840..1a91cde97bfe11365ad3403a04ba118ebc68eb08 100644 (file)
@@ -9,7 +9,7 @@ import { of as observableOf, throwError } from 'rxjs';
 import { configureTestBed } from '~/testing/unit-test-helper';
 import { MgrModuleService } from '../api/mgr-module.service';
 import { ModuleStatusGuardService } from './module-status-guard.service';
-import { ToastrModule } from 'ngx-toastr';
+
 import { CdDatePipe } from '../pipes/cd-date.pipe';
 import { SharedModule } from '../shared.module';
 
@@ -56,7 +56,7 @@ describe('ModuleStatusGuardService', () => {
   };
 
   configureTestBed({
-    imports: [RouterTestingModule.withRoutes(routes), ToastrModule.forRoot(), SharedModule],
+    imports: [RouterTestingModule.withRoutes(routes), SharedModule],
     providers: [
       ModuleStatusGuardService,
       { provide: HttpClient, useValue: fakeService },
index b6da64593c80aad7d7ccb88026da504e62cff174..584e711acec9fed88fad726f3a2643da6d24e575 100644 (file)
@@ -1,6 +1,5 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { TestBed } from '@angular/core/testing';
-import { ToastrModule } from 'ngx-toastr';
 
 import { configureTestBed, PrometheusHelper } from '~/testing/unit-test-helper';
 import { NotificationType } from '../enum/notification-type.enum';
@@ -16,7 +15,7 @@ describe('PrometheusAlertFormatter', () => {
   let prometheus: PrometheusHelper;
 
   configureTestBed({
-    imports: [ToastrModule.forRoot(), SharedModule, HttpClientTestingModule],
+    imports: [SharedModule, HttpClientTestingModule],
     providers: [PrometheusAlertFormatter]
   });
 
index b2ef14a1ada5ba392c3716a0b6770f3ed31c102e..ea0fb60f1d33bfa383088911b574dd8f14b6df34 100644 (file)
@@ -1,7 +1,6 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { TestBed } from '@angular/core/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { Observable, of } from 'rxjs';
 
 import { configureTestBed, PrometheusHelper } from '~/testing/unit-test-helper';
@@ -22,7 +21,7 @@ describe('PrometheusAlertService', () => {
   let prometheus: PrometheusHelper;
 
   configureTestBed({
-    imports: [ToastrModule.forRoot(), SharedModule, HttpClientTestingModule],
+    imports: [SharedModule, HttpClientTestingModule],
     providers: [PrometheusAlertService, PrometheusAlertFormatter]
   });
 
index c3fd51323e742af2b8963c138fca16e8b26f4b1a..bf16fd9d019ea8aca2ade94c02f44093c1bdc20d 100644 (file)
@@ -1,7 +1,6 @@
 import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { fakeAsync, TestBed, tick, flush } from '@angular/core/testing';
 
-import { ToastrModule, ToastrService } from 'ngx-toastr';
 import { of, throwError } from 'rxjs';
 
 import { configureTestBed, PrometheusHelper } from '~/testing/unit-test-helper';
@@ -23,19 +22,9 @@ describe('PrometheusNotificationService', () => {
   let shown: CdNotificationConfig[];
   let getNotificationSinceMock: Function;
 
-  const toastFakeService = {
-    error: () => true,
-    info: () => true,
-    success: () => true
-  };
-
   configureTestBed({
-    imports: [ToastrModule.forRoot(), SharedModule, HttpClientTestingModule],
-    providers: [
-      PrometheusNotificationService,
-      PrometheusAlertFormatter,
-      { provide: ToastrService, useValue: toastFakeService }
-    ]
+    imports: [SharedModule, HttpClientTestingModule],
+    providers: [PrometheusNotificationService, PrometheusAlertFormatter]
   });
 
   beforeEach(() => {
index e819622118ec0a40f80fbd419e9bc8fe27201373..10dea07b4489ee0495a6b4ec4a7c20de77d0f300 100644 (file)
@@ -2,7 +2,6 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { inject, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { ToastrModule } from 'ngx-toastr';
 import { Observable } from 'rxjs';
 
 import { configureTestBed } from '~/testing/unit-test-helper';
@@ -17,7 +16,7 @@ describe('TaskWrapperService', () => {
   let service: TaskWrapperService;
 
   configureTestBed({
-    imports: [HttpClientTestingModule, ToastrModule.forRoot(), SharedModule, RouterTestingModule],
+    imports: [HttpClientTestingModule, SharedModule, RouterTestingModule],
     providers: [TaskWrapperService]
   });