]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/blob
cc7256d9991a77bb97742fc1589c746b625002cb
[ceph-ci.git] /
1 import { SharedModule } from '~/app/shared/shared.module';
2 import { RgwRateLimitDetailsComponent } from './rgw-rate-limit-details.component';
3 import { ComponentFixture, TestBed } from '@angular/core/testing';
4 import { HttpClientTestingModule } from '@angular/common/http/testing';
5 import { configureTestBed } from '~/testing/unit-test-helper';
6
7 describe('RgwRateLimitDetailsComponent', () => {
8   let component: RgwRateLimitDetailsComponent;
9   let fixture: ComponentFixture<RgwRateLimitDetailsComponent>;
10   configureTestBed({
11     declarations: [RgwRateLimitDetailsComponent],
12     imports: [HttpClientTestingModule, SharedModule]
13   });
14
15   beforeEach(() => {
16     fixture = TestBed.createComponent(RgwRateLimitDetailsComponent);
17     component = fixture.componentInstance;
18     component.type = 'user';
19     component.rateLimitConfig = {
20       enabled: true,
21       max_read_bytes: 987648,
22       max_read_ops: 0,
23       max_write_bytes: 0,
24       max_write_ops: 9876543212
25     };
26     fixture.detectChanges();
27   });
28
29   it('should create', () => {
30     expect(component).toBeTruthy();
31   });
32 });