import { configureTestBed, PermissionHelper } from '../../../../testing/unit-test-helper';
import { RbdService } from '../../../shared/api/rbd.service';
-import { ComponentsModule } from '../../../shared/components/components.module';
import { TableActionsComponent } from '../../../shared/datatable/table-actions/table-actions.component';
import { ViewCacheStatus } from '../../../shared/enum/view-cache-status.enum';
import { ExecutingTask } from '../../../shared/models/executing-task';
TooltipModule.forRoot(),
ToastModule.forRoot(),
AlertModule.forRoot(),
- ComponentsModule,
RouterTestingModule,
HttpClientTestingModule
],
declarations: [RbdListComponent, RbdDetailsComponent, RbdSnapshotListComponent],
- providers: [SummaryService, TaskListService, RbdService]
+ providers: [TaskListService]
});
beforeEach(() => {
RouterTestingModule,
PipesModule
],
- providers: [
- { provide: AuthStorageService, useValue: fakeAuthStorageService },
- SummaryService,
- TaskListService
- ]
+ providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }, TaskListService]
});
beforeEach(() => {
configureTestBed({
declarations: [RbdTrashListComponent],
imports: [SharedModule, HttpClientTestingModule, RouterTestingModule, ToastModule.forRoot()],
- providers: [TaskListService, RbdService]
+ providers: [TaskListService]
});
beforeEach(() => {
import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { ApiModule } from '../../../shared/api/api.module';
import { NotificationService } from '../../../shared/services/notification.service';
-import { ServicesModule } from '../../../shared/services/services.module';
import { SharedModule } from '../../../shared/shared.module';
import { RbdTrashMoveModalComponent } from './rbd-trash-move-modal.component';
HttpClientTestingModule,
RouterTestingModule,
SharedModule,
- ServicesModule,
- ApiModule,
ToastModule.forRoot(),
BsDatepickerModule.forRoot()
],
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { CephfsService } from '../../../shared/api/cephfs.service';
import { SharedModule } from '../../../shared/shared.module';
import { CephfsClientsComponent } from './cephfs-clients.component';
SharedModule,
HttpClientTestingModule
],
- declarations: [CephfsClientsComponent],
- providers: [CephfsService]
+ declarations: [CephfsClientsComponent]
});
beforeEach(() => {
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
-import { ChartsModule } from 'ng2-charts/ng2-charts';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { CephfsService } from '../../../shared/api/cephfs.service';
import { SharedModule } from '../../../shared/shared.module';
import { CephfsDetailComponent } from './cephfs-detail.component';
configureTestBed({
imports: [
SharedModule,
- ChartsModule,
RouterTestingModule,
BsDropdownModule.forRoot(),
ProgressbarModule.forRoot(),
TabsModule.forRoot(),
HttpClientTestingModule
],
- declarations: [CephfsDetailComponent, CephfsChartStubComponent, CephfsClientsStubComponent],
- providers: [CephfsService]
+ declarations: [CephfsDetailComponent, CephfsChartStubComponent, CephfsClientsStubComponent]
});
beforeEach(() => {
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { CephfsService } from '../../../shared/api/cephfs.service';
import { CdTableSelection } from '../../../shared/models/cd-table-selection';
import { SharedModule } from '../../../shared/shared.module';
import { CephfsListComponent } from './cephfs-list.component';
configureTestBed({
imports: [SharedModule, HttpClientTestingModule],
- declarations: [CephfsListComponent, CephfsDetailStubComponent],
- providers: [CephfsService]
+ declarations: [CephfsListComponent, CephfsDetailStubComponent]
});
beforeEach(() => {
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { ConfigurationService } from '../../../shared/api/configuration.service';
import { SharedModule } from '../../../shared/shared.module';
import { ConfigurationDetailsComponent } from './configuration-details/configuration-details.component';
import { ConfigurationComponent } from './configuration.component';
configureTestBed({
declarations: [ConfigurationComponent, ConfigurationDetailsComponent],
- providers: [ConfigurationService],
imports: [
SharedModule,
FormsModule,
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { ComponentsModule } from '../../../shared/components/components.module';
import { Permissions } from '../../../shared/models/permissions';
import { AuthStorageService } from '../../../shared/services/auth-storage.service';
import { SharedModule } from '../../../shared/shared.module';
SharedModule,
HttpClientTestingModule,
TabsModule.forRoot(),
- ComponentsModule,
BsDropdownModule.forRoot(),
RouterTestingModule
],
import { configureTestBed } from '../../../../../testing/unit-test-helper';
import { OsdService } from '../../../../shared/api/osd.service';
-import { DataTableModule } from '../../../../shared/datatable/datatable.module';
import { CdTableSelection } from '../../../../shared/models/cd-table-selection';
import { SharedModule } from '../../../../shared/shared.module';
import { PerformanceCounterModule } from '../../../performance-counter/performance-counter.module';
let getDetailsSpy;
configureTestBed({
- imports: [
- HttpClientModule,
- TabsModule.forRoot(),
- PerformanceCounterModule,
- DataTableModule,
- SharedModule
- ],
- declarations: [OsdDetailsComponent, OsdPerformanceHistogramComponent],
- providers: [OsdService]
+ imports: [HttpClientModule, TabsModule.forRoot(), PerformanceCounterModule, SharedModule],
+ declarations: [OsdDetailsComponent, OsdPerformanceHistogramComponent]
});
beforeEach(() => {
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed, PermissionHelper } from '../../../../../testing/unit-test-helper';
-import { ComponentsModule } from '../../../../shared/components/components.module';
-import { DataTableModule } from '../../../../shared/datatable/datatable.module';
import { TableActionsComponent } from '../../../../shared/datatable/table-actions/table-actions.component';
import { Permissions } from '../../../../shared/models/permissions';
-import { DimlessPipe } from '../../../../shared/pipes/dimless.pipe';
import { AuthStorageService } from '../../../../shared/services/auth-storage.service';
-import { FormatterService } from '../../../../shared/services/formatter.service';
import { SharedModule } from '../../../../shared/shared.module';
import { PerformanceCounterModule } from '../../../performance-counter/performance-counter.module';
import { OsdDetailsComponent } from '../osd-details/osd-details.component';
HttpClientModule,
PerformanceCounterModule,
TabsModule.forRoot(),
- DataTableModule,
- ComponentsModule,
SharedModule,
RouterTestingModule
],
declarations: [OsdListComponent, OsdDetailsComponent, OsdPerformanceHistogramComponent],
- providers: [
- DimlessPipe,
- FormatterService,
- { provide: AuthStorageService, useValue: fakeAuthStorageService }
- ]
+ providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }]
});
beforeEach(() => {
};
configureTestBed({
- providers: [DashboardService],
imports: [SharedModule, HttpClientTestingModule, PopoverModule.forRoot()],
declarations: [
HealthComponent,
import { configureTestBed } from '../../../../testing/unit-test-helper';
import { RgwBucketService } from '../../../shared/api/rgw-bucket.service';
-import { RgwUserService } from '../../../shared/api/rgw-user.service';
import { SharedModule } from '../../../shared/shared.module';
import { RgwBucketFormComponent } from './rgw-bucket-form.component';
configureTestBed({
declarations: [RgwBucketFormComponent],
imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
- providers: [RgwUserService, { provide: RgwBucketService, useClass: MockRgwBucketService }]
+ providers: [{ provide: RgwBucketService, useClass: MockRgwBucketService }]
});
beforeEach(() => {
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed, PermissionHelper } from '../../../../testing/unit-test-helper';
-import { RgwBucketService } from '../../../shared/api/rgw-bucket.service';
import { TableActionsComponent } from '../../../shared/datatable/table-actions/table-actions.component';
import { SharedModule } from '../../../shared/shared.module';
import { RgwBucketDetailsComponent } from '../rgw-bucket-details/rgw-bucket-details.component';
SharedModule,
TabsModule.forRoot(),
HttpClientTestingModule
- ],
- providers: [RgwBucketService]
+ ]
});
beforeEach(() => {
import { TabsModule } from 'ngx-bootstrap/tabs';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { RgwDaemonService } from '../../../shared/api/rgw-daemon.service';
import { CdTableSelection } from '../../../shared/models/cd-table-selection';
import { SharedModule } from '../../../shared/shared.module';
import { PerformanceCounterModule } from '../../performance-counter/performance-counter.module';
configureTestBed({
declarations: [RgwDaemonDetailsComponent],
- imports: [
- SharedModule,
- PerformanceCounterModule,
- TabsModule.forRoot(),
- HttpClientTestingModule
- ],
- providers: [RgwDaemonService]
+ imports: [SharedModule, PerformanceCounterModule, TabsModule.forRoot(), HttpClientTestingModule]
});
beforeEach(() => {
configureTestBed({
declarations: [RgwUserFormComponent],
imports: [HttpClientTestingModule, ReactiveFormsModule, RouterTestingModule, SharedModule],
- providers: [BsModalService, RgwUserService]
+ providers: [BsModalService]
});
beforeEach(() => {
import { ModalModule } from 'ngx-bootstrap/modal';
import { configureTestBed, PermissionHelper } from '../../../../testing/unit-test-helper';
-import { RgwUserService } from '../../../shared/api/rgw-user.service';
import { TableActionsComponent } from '../../../shared/datatable/table-actions/table-actions.component';
import { SharedModule } from '../../../shared/shared.module';
import { RgwUserListComponent } from './rgw-user-list.component';
configureTestBed({
declarations: [RgwUserListComponent],
imports: [RouterTestingModule, HttpClientTestingModule, ModalModule.forRoot(), SharedModule],
- providers: [RgwUserService],
schemas: [NO_ERRORS_SCHEMA]
});
import { configureTestBed } from '../../../../testing/unit-test-helper';
import { RoleService } from '../../../shared/api/role.service';
import { ScopeService } from '../../../shared/api/scope.service';
-import { ComponentsModule } from '../../../shared/components/components.module';
import { CdFormGroup } from '../../../shared/forms/cd-form-group';
import { NotificationService } from '../../../shared/services/notification.service';
import { SharedModule } from '../../../shared/shared.module';
configureTestBed(
{
imports: [
- [RouterTestingModule.withRoutes(routes)],
+ RouterTestingModule.withRoutes(routes),
HttpClientTestingModule,
ReactiveFormsModule,
- RouterTestingModule,
- ComponentsModule,
ToastModule.forRoot(),
SharedModule
],
configureTestBed(
{
imports: [
- [RouterTestingModule.withRoutes(routes)],
+ RouterTestingModule.withRoutes(routes),
HttpClientTestingModule,
ReactiveFormsModule,
- RouterTestingModule,
ComponentsModule,
ToastModule.forRoot(),
SharedModule
import { PopoverModule } from 'ngx-bootstrap/popover';
import { configureTestBed } from '../../../../testing/unit-test-helper';
-import { NotificationService } from '../../../shared/services/notification.service';
import { SharedModule } from '../../../shared/shared.module';
import { NotificationsComponent } from './notifications.component';
configureTestBed({
imports: [PopoverModule.forRoot(), SharedModule, ToastModule.forRoot()],
- declarations: [NotificationsComponent],
- providers: [NotificationService]
+ declarations: [NotificationsComponent]
});
beforeEach(() => {