mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
mgr/dashboard:Improvements in cluster > OSDs
Made osd-id the first column of the table instead of Host. Fixes:https://tracker.ceph.com/issues/47478 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This commit is contained in:
parent
ac33cea383
commit
2df7bca459
@ -267,8 +267,8 @@ export class OsdListComponent extends ListWithDetails implements OnInit {
|
||||
}
|
||||
];
|
||||
this.columns = [
|
||||
{ prop: 'host.name', name: $localize`Host` },
|
||||
{ prop: 'id', name: $localize`ID`, flexGrow: 1, cellTransformation: CellTemplate.bold },
|
||||
{ prop: 'host.name', name: $localize`Host` },
|
||||
{
|
||||
prop: 'collectedStates',
|
||||
name: $localize`Status`,
|
||||
|
@ -4,9 +4,8 @@ from collections import defaultdict
|
||||
try:
|
||||
from mock import Mock
|
||||
except ImportError:
|
||||
from unittest.mock import Mock
|
||||
from unittest.mock import patch, Mock
|
||||
|
||||
from .. import mgr
|
||||
from ..controllers.cephfs import CephFS
|
||||
from . import ControllerTestCase # pylint: disable=no-name-in-module
|
||||
|
||||
@ -25,16 +24,10 @@ def get_metadata_mock(key, meta_key):
|
||||
}[key]
|
||||
|
||||
|
||||
@patch('dashboard.mgr.get_metadata', Mock(side_effect=get_metadata_mock))
|
||||
class CephFsTest(ControllerTestCase):
|
||||
cephFs = CephFS()
|
||||
|
||||
@classmethod
|
||||
def setup_server(cls):
|
||||
mgr.get_metadata = Mock(side_effect=get_metadata_mock)
|
||||
|
||||
def tearDown(self):
|
||||
mgr.get_metadata.stop()
|
||||
|
||||
def test_append_of_mds_metadata_if_key_is_not_found(self):
|
||||
mds_versions = defaultdict(list)
|
||||
# pylint: disable=protected-access
|
||||
|
Loading…
Reference in New Issue
Block a user