Actions
Feature #49946
openmgr/dashboard: harden API testing for mgr API
Status:
New
Priority:
Normal
Assignee:
Category:
General - Back-end
Target version:
% Done:
0%
Source:
Development
Tags:
Backport:
pacific,octopus,nautilus
Reviewed:
Affected Versions:
Pull request ID:
Description
Description¶
From time to time (as with this recent change), Dashboard hits issues due to breaking changes in the core Ceph maps (osd map, mon map, service map, etc). In order to avoid or at least quickly detect these breaking changes, tests should be added in the API tests section to perform the following checks:
For every Ceph-mgr API call, it should invoke it and test the returned data against a previous sample taken (data that might change should be skipped/ignored).
self.assertEqual(mgr.get('osd_map'), {'epoch': ANY, 'fsid': <fsid>, 'created': ANY, ...} )
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 146 to General - Back-end
Actions