Feature #49946
mgr/dashboard: harden API testing for mgr API
% 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, ...} )
History
#1 Updated by Ernesto Puerta 6 days ago
- Project changed from mgr to Dashboard
- Category changed from dashboard/backend to dashboard/backend