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

SatelliteQE / robottelo / 8268 / 1
37%
master: 37%

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

11 Nov 2016 01:55PM UTC coverage: 73.462%. Remained the same
TOXENV=py27

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

1481 of 2016 relevant lines covered (73.46%)

0.73 hits per line

Source Files on job 8268.1 (TOXENV=py27)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8268
  • Travis Job 8268.1
  • 724b9202 on github
  • Prev Job for TOXENV=py27 on master (#8266.1)
  • Next Job for TOXENV=py27 on master (#8278.1)
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