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

PulpQE / pulp-smash / 1637
63%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2017 03:17PM UTC
Jobs 3
Files 7
Run time 1min
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
1637

push

travis-ci

Ichimonji10
Tweak with assertions in rsync test case

When executed, `PublishTwiceTestCase` will:

    1. Create a yum repository with a yum and rsync distributor.
    2. Add some content to the repository.
    3. Publish with the yum and rsync distributor.
    4. Publish with the yum and rsync distributor again.

    The second publish with the rsync distributor should be a fast-forward
    publish, as no new units were added to the repository between the first and
    second publishes.

Update the test case. In step 2, upload two RPMs, not one. In step 3,
assert that the "unit query step" processes exactly two RPMs, instead of
some vague number greater than zero. In step 4, continue to assert that
the "unit query step" processes exactly zero RPMs.

The rsync distributor uses iterators for much of its functionality,
meaning that several steps will always state that one item was
processed. In contrast, the "unit query step" doesn't use iterators,
which is why we can make assertions about the number of RPMs processed.
Uploading two RPMs instead of one makes it easier to parse the meaning
of test results in the future:

* If zero RPMs are processed, then this indicates that a fast-forward
  publish occurred.
* If two RPMs was processed, then this indicates that a full publish
  occurred.
* If one RPM was processed, then this might indicate that an iterator is
  being used for publishes, in which case the test needs to be
  redesigned.

See: https://pulp.plan.io/issues/2844

522 of 841 relevant lines covered (62.07%)

1.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1637.1 29 Jun 2017 03:18PM UTC 0
62.07
Travis Job 1637.1
2 1637.2 29 Jun 2017 03:17PM UTC 0
62.07
Travis Job 1637.2
3 1637.3 29 Jun 2017 03:19PM UTC 0
62.07
Travis Job 1637.3
Source Files on build 1637
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1637
  • 06ae2099 on github
  • Prev Build on master (#1641)
  • Next Build on master (#1639)
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