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

PulpQE / pulp-smash / 368
63%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2016 08:02PM UTC
Jobs 4
Files 6
Run time 14s
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
368

push

travis-ci

Ichimonji10
Refactory newly added distributor update tests

The previous commit added tests verifying that it is possible to update
a docker distributor's `repo_registry_id` configuration attribute, both
via the API and CLI. Refactor these tests:

* Edit the logic of both new test cases. Formerly, the test cases sent
  hard-coded updates to the server. Now, the test cases send semi-random
  data to the server.
* Update the CLI test to account for the random nature of the test data.
  Add a new assertion to the API test to verify that the sent data can
  be read back.
* Fiddle with docstrings, especially by linking to a targeted bug and
  enumerating test steps.
* Use `subTest` context managers to separate assertions.
* Drop an unnecessary assertion about a CLI status code. (The function
  `repo_update` already verifies the status code.)

Tests pass after this change. Tests verified with the following command:

    python -m unittest2 \
        pulp_smash.tests.docker.api_v2.test_crud.UpdateTestCase \
        pulp_smash.tests.docker.cli.test_crud.UpdateDistributorTestCase

282 of 392 relevant lines covered (71.94%)

2.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 368.1 24 Mar 2016 08:03PM UTC 0
71.94
Travis Job 368.1
2 368.2 24 Mar 2016 08:03PM UTC 0
71.94
Travis Job 368.2
3 368.3 24 Mar 2016 08:03PM UTC 0
71.94
Travis Job 368.3
4 368.4 24 Mar 2016 08:02PM UTC 0
71.94
Travis Job 368.4
Source Files on build 368
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #368
  • 8f1f7c44 on github
  • Prev Build on master (#366)
  • Next Build on master (#372)
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