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

pywbem / pywbemtools / 3758
93%

Build:
DEFAULT BRANCH: master
Ran 07 Jul 2020 07:22PM UTC
Jobs 1
Files 19
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
3758

push

travis-ci

web-flow
Fixes #596: Location of connection file (#659)

* Fixes Issue # 596 - Location of connection file

Allows connection file to be in either users home directory (default)
or directory/filename defined by new parameter --connections-file

The code in ConnectionRepository was refactored to:

1. Eliminate the class attributes for the repository dictionary and
make the whole class based on the class instance. Thus the Connection
Repository is instantiated only once in an interactive session.
This meant

  a. Added the created ConnectionRepository instance to the context_obj
  b. References the contextObj.connections_repo rather than constructing a new
     ConnectionRepository each time a command uses the repository
  c. Make the ConnectionRepository lazy load the YAML file
     so that a new repository can be created without getting
     caught in the issue of the code not existing.  Each
     read connection repository read access  method attempts to
     load the repository so that the repository is loaded only
     the first time it is used.
  d. Changed some variables naming in pywbemcli when the new
     general options --connection-file was added. In particular
     changed internal name of svr_name to connections_name
     internally but kept same name on option.
  d. Specifically test for existence of a connections_file in
     a number of the connection command group commands.

2. Add a new general option (--connections-file) that allows the
   user to specifically define the connections file.

3. Move the whole decision process for the name of the file into
   pywbemcli before the instance of ContextObj is created so that
   it is the ConnectionRepository object that is maintained in
   ContextObj.

4. Extended and corrected some tests to account for the new
   functionality.

* Fixes from comments and last review

1. Fixed some text in commands.rst

2. Fixed per comment in generaoptions.rst

3. Added ... (continued)

2973 of 3277 relevant lines covered (90.72%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
5 3758.5 (PACKAGE_LEVEL=latest) 07 Jul 2020 07:22PM UTC 0
90.72
Travis Job 3758.5
Source Files on build 3758
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3758
  • 0c1eef64 on github
  • Prev Build on master (#3742)
  • Next Build on master (#3770)
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