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

PulpQE / pulp-smash / 2691
63%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2018 03:42PM UTC
Jobs 3
Files 14
Run time 17s
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
2691

push

travis-ci

Ichimonji10
Make PaginationTestCase use small pages

The `PaginationTestCase` verifies that Pulp properly pages results. For
example, if a client GETs the list of repositories and there are more
than 100 results, then Pulp will return only 100 results, plus a link to
the next page of results. There's also a "previous" link. Pulp Smash
assumes that each page will contain 100 elements. This assumption was
valid until today, when the `page_size` parameter was introduced.

Make Pulp Smash take advantage of this parameter, by requesting
relatively small `page_size`. This lets test cases be much faster. This
is of critical importance to the Pulp 3 development team, which runs
tests on Travis hosts, which may have limited CPU resources.

Unfortunately, this change does reduce test coverage. Pagination is
still tested for the following use cases:

* GET a list of repositories.
* GET a list of repository versions.

It is no longer tested for the following use cases:

* GET a list of repository content.
* GET a list of content added to a repository.
* GET a list of content removed from a repository.

Re-adding this test coverage will require a solution such as making the
underlying functions (like `get_content`) more capable, duplicating some
URL-building logic into the test case, or simply being OK with dropping
test coverage.

610 of 1014 relevant lines covered (60.16%)

1.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2691.1 29 Jun 2018 03:42PM UTC 0
60.16
Travis Job 2691.1
2 2691.2 29 Jun 2018 03:42PM UTC 0
60.16
Travis Job 2691.2
3 2691.3 29 Jun 2018 03:42PM UTC 0
60.16
Travis Job 2691.3
Source Files on build 2691
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2691
  • b9e25786 on github
  • Prev Build on master (#2686)
  • Next Build on master (#2697)
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