Project

General

Profile

Actions

Feature #49946

open

mgr/dashboard: harden API testing for mgr API

Added by Ernesto Puerta about 3 years ago. Updated almost 3 years ago.

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, ...} )
Actions #1

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 146 to General - Back-end
Actions #2

Updated by Avan Thakkar almost 3 years ago

  • Priority changed from High to Normal
Actions

Also available in: Atom PDF