• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PulpQE / pulp-smash / 334 / 4
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 16 Mar 2016 04:30PM UTC
Files 6
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Mar 2016 04:25PM UTC coverage: 72.564% (+0.07%) from 72.494%
334.4

push

travis-ci

Ichimonji10
Remove orphans in BaseAPITestCase.tearDownClass

Method `BaseAPITestCase.tearDownClass` iterates through a set of hrefs
and deletes each resource named therein. This approach works well when
the test author explicitly creates a small set of resources. However,
one common scenario is to create a repository and sync it. In this case,
additional resources are automatically created by Pulp, and it is
impossible to know what will be created until runtime. Even worse, when
the parent repository is deleted, orphan resources will be left behind.

Fix #158. Delete orphan resources at the end of
`BaseAPITestCase.tearDownClass`. One can verify that this change works
by issuing an HTTP GET to `pulp_smash.constants.ORPHANS_PATH` and
inspecting the results. Here's a snippet of results from a system after
this commit is applied:

    {
        u'distribution': {
            u'_href': u'/pulp/api/v2/content/orphans/distribution/',
            u'count': 0
        },
        u'docker_blob': {
            u'_href': u'/pulp/api/v2/content/orphans/docker_blob/',
            u'count': 0
        },
        u'docker_image': {
            u'_href': u'/pulp/api/v2/content/orphans/docker_image/',
            u'count': 0
        },

This commit does not affect test results.

283 of 390 relevant lines covered (72.56%)

0.73 hits per line

Source Files on job 334.4
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 334
  • Travis Job 334.4
  • 394f472f on github
  • Prev Job for on master (#328.4)
  • Next Job for on master (#335.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc