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

pywbem / pywbemtools / 4098
93%

Build:
DEFAULT BRANCH: master
Ran 22 Aug 2020 08:31PM UTC
Jobs 3
Files 21
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
4098

push

travis-ci

web-flow
Fixes issue #661-IssuesWithConnectionFileFailMsgs (#729)

* Fixes issue #661-IssuesWithConnectionFileFailMsgs

Add unit tests for connection repository to test for errors in
the YAML file being loaded.

This now outputs exceptions for all significant errors in the
yaml load including:

1. Any YAML parse error.
2. Missing key names
3. Unknown keys for server elements
4  Missing file

The exceptions attempt to point as close as possible to the
name of the file, the element causing the problem and the
exception. Note that connections file load issues are considered
fatal and terminate the interactive session.

Created new class hierarchy for exceptions in ConnectionRepository.py.

Fixes issue issue to allow setting the default back to None and adds test
for that change.

Refactor get and set default_connection_name methods.
Removed these methods since we included both a property and a method.
This required extending the getter to force the lazy load and creating a
setter method.

Move all use of click.exceiption and click.Abort() to the the
_cmd_connection.py and pywbemcli.py files so that the
ConnectionRepository.py only uses non-click exceptions.

Modified exception in pywbemcli to not abort if issue found with
default_connection_name . Do not abort of the default_connection_name
defines a non-existent connection.  Just fix it, continue and
terminate that command rather than abort the interactive mode.
All other issues with the connections file abort the interactive mode

* Fixes per PR comments.

This commit includes all the changes created in response to the issues
raised in the previous review.

* WIP

* WIP

127 of 127 new or added lines in 4 files covered. (100.0%)

3095 of 3354 relevant lines covered (92.28%)

2.76 hits per line

Jobs
ID Job ID Ran Files Coverage
2 4098.2 (PACKAGE_LEVEL=latest) 22 Aug 2020 08:32PM UTC 0
92.2
Travis Job 4098.2
3 4098.3 (PACKAGE_LEVEL=latest) 22 Aug 2020 08:33PM UTC 0
92.05
Travis Job 4098.3
5 4098.5 (PACKAGE_LEVEL=latest) 22 Aug 2020 08:31PM UTC 0
92.16
Travis Job 4098.5
Source Files on build 4098
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4098
  • 70b3eee3 on github
  • Prev Build on master (#4084)
  • Next Build on master (#4134)
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