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

SatelliteQE / robottelo / 8268
37%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2016 01:58PM UTC
Jobs 2
Files 27
Run time 3s
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
8268

push

travis-ci

sghai
Implemented CLI make_fake_host helper (#3946)

* Implemented CLI make_fake_host helper

Implemented CLI `make_fake_host` factory helper, which allows us to create fake host with no need to remember all the required entities, dependencies and parameters similar to `nailgun.entities.Host().create_missing()`.

As per #3939 `hammer content-host` command was removed, we need to switch to `hammer host` command instead, but as host command is much more complicated and requires a lot of entities passed like architecture, domain, os, medium etc the idea was to create some helper which will allow us to smoothly switch to hosts with no changes to tests themselves.
This implementation allows us to change `make_content_host({...})` to `make_fake_host({...})` inside tests with no extra preconditions and no extra parameters passed, simple as that.
The helper can either create all the required dependencies by its own or use the ones which were passed. As CLI allows us to specify entities by either their ids or names, both cases are correctly accepted and processed.
In addition, as most of our content-host tests were not using any architectures, medium etc, there's basically no need in creating and using unique ones, that's why `isolated_mode` parameter was added. If `isolated_mode` is set to `False`, robottelo will pick up default Satellite entities rather than create new ones.

* Search for default entities instead of use hardcoded id=1, drop isolated_mode parameter

* Fix for make ptable, updated docstrings

* Updated make_ptable docs

1483 of 2016 relevant lines covered (73.56%)

1.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8268.1 (TOXENV=py27) 11 Nov 2016 01:58PM UTC 0
73.46
Travis Job 8268.1
2 8268.2 (TOXENV=py34) 11 Nov 2016 01:58PM UTC 0
73.41
Travis Job 8268.2
Source Files on build 8268
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8268
  • 724b9202 on github
  • Prev Build on master (#8266)
  • Next Build on master (#8278)
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