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

PulpQE / pulp-smash / 334
63%

Build:
DEFAULT BRANCH: master
Ran 16 Mar 2016 04:30PM UTC
Jobs 4
Files 6
Run time 35s
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

pending completion
334

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%)

2.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 334.1 16 Mar 2016 04:30PM UTC 0
72.56
Travis Job 334.1
2 334.2 16 Mar 2016 04:30PM UTC 0
72.56
Travis Job 334.2
3 334.3 16 Mar 2016 04:30PM UTC 0
72.56
Travis Job 334.3
4 334.4 16 Mar 2016 04:30PM UTC 0
72.56
Travis Job 334.4
Source Files on build 334
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #334
  • 394f472f on github
  • Prev Build on master (#328)
  • Next Build on master (#335)
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