Project

General

Profile

Bug #40487

mgr/dashboard: clean-up python unit tests

Added by Ernesto Puerta 3 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
dashboard/general
Target version:
Start date:
06/21/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Currently Python unit tests (actually doctests) bring in dependencies for other packages (rados, rbd, cephfs). Most of them aren't actually used at doctests, but cause ImportErrors.

By removing those dependencies, dashboard python unit-tests (240) now can be quickly run (<40 s) in python-only docker environments (e.g.: travis-ci, or CircleCI), without needing extra packages (python-rados, or RBD/CephFS python bindings).


Related issues

Blocks mgr - Feature #40296: mgr/dashboard: Maintain and improve code coverage on dashboard PRs In Progress 06/12/2019

History

#1 Updated by Ernesto Puerta 3 months ago

  • Pull request ID set to 28696

#2 Updated by Stephan Müller about 2 months ago

  • Blocked by Feature #40296: mgr/dashboard: Maintain and improve code coverage on dashboard PRs added

#3 Updated by Lenz Grimmer about 1 month ago

  • Status changed from In Progress to Need Review

#4 Updated by Ernesto Puerta about 1 month ago

  • Blocked by deleted (Feature #40296: mgr/dashboard: Maintain and improve code coverage on dashboard PRs)

#5 Updated by Ernesto Puerta about 1 month ago

  • Blocks Feature #40296: mgr/dashboard: Maintain and improve code coverage on dashboard PRs added

#6 Updated by Lenz Grimmer about 1 month ago

  • Status changed from Need Review to Resolved
  • Target version set to v15.0.0

Also available in: Atom PDF