Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23351 from tspmelo/wip-rbd-trash
mgr/dashboard: Add support for RBD Trash Reviewed-by: Sebastian Wagner <swagner@suse.com> Reviewed-by: Volker Theile <vtheile@suse.com>
- Loading branch information
Showing
41 changed files
with
1,450 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div> | ||
<tabset> | ||
<tab heading="Images" | ||
i18n-heading | ||
id="tab1"> | ||
<cd-rbd-list></cd-rbd-list> | ||
</tab> | ||
<tab heading="Trash" | ||
i18n-heading> | ||
<cd-rbd-trash-list></cd-rbd-trash-list> | ||
</tab> | ||
</tabset> | ||
</div> |
Empty file.
50 changes: 50 additions & 0 deletions
50
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
|
||
import { ToastModule } from 'ng2-toastr'; | ||
import { TabsModule, TooltipModule } from 'ngx-bootstrap'; | ||
|
||
import { TaskListService } from '../../../shared/services/task-list.service'; | ||
import { SharedModule } from '../../../shared/shared.module'; | ||
import { RbdDetailsComponent } from '../rbd-details/rbd-details.component'; | ||
import { RbdListComponent } from '../rbd-list/rbd-list.component'; | ||
import { RbdSnapshotListComponent } from '../rbd-snapshot-list/rbd-snapshot-list.component'; | ||
import { RbdTrashListComponent } from '../rbd-trash-list/rbd-trash-list.component'; | ||
import { RbdImagesComponent } from './rbd-images.component'; | ||
|
||
describe('RbdImagesComponent', () => { | ||
let component: RbdImagesComponent; | ||
let fixture: ComponentFixture<RbdImagesComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ | ||
RbdDetailsComponent, | ||
RbdImagesComponent, | ||
RbdListComponent, | ||
RbdSnapshotListComponent, | ||
RbdTrashListComponent | ||
], | ||
imports: [ | ||
HttpClientTestingModule, | ||
RouterTestingModule, | ||
SharedModule, | ||
TabsModule.forRoot(), | ||
ToastModule.forRoot(), | ||
TooltipModule.forRoot() | ||
], | ||
providers: [TaskListService] | ||
}).compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(RbdImagesComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
12 changes: 12 additions & 0 deletions
12
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'cd-rbd-images', | ||
templateUrl: './rbd-images.component.html', | ||
styleUrls: ['./rbd-images.component.scss'] | ||
}) | ||
export class RbdImagesComponent implements OnInit { | ||
constructor() {} | ||
|
||
ngOnInit() {} | ||
} |
Oops, something went wrong.