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

cloudmarker / cloudmarker
90%
master: 84%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/urllib3-1.26.5
DEFAULT BRANCH: master
Repo Added 17 Dec 2018 06:07PM UTC
Files 92
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

LAST BUILD ON BRANCH userconfig
branch: userconfig
CHANGE BRANCH
x
Reset
  • userconfig
  • 0.1.0
  • alertdocs
  • apidocindent
  • audit-version
  • auditemails
  • azcloud
  • azstorage
  • azurecloud
  • azurecloud-exception
  • azvm_record_type
  • azwebapp
  • badges
  • baseconfig
  • bracket
  • buckets
  • build-matrix
  • changelog
  • clioptions
  • clouderror
  • common-plugins-config
  • consistency
  • copy-ext
  • copyext
  • cov_clean
  • dependabot/pip/cryptography-3.3.2
  • dependabot/pip/httplib2-0.18.0
  • dependabot/pip/httplib2-0.19.0
  • dependabot/pip/pyyaml-5.4
  • dependabot/pip/rsa-4.7
  • dependabot/pip/urllib3-1.26.5
  • dist
  • docfixes
  • doctest-fix
  • email_debug_param_from_config
  • emailbody
  • emaildocs
  • empty-port
  • esstore
  • firewalleventtest
  • firewallnorm
  • firewallruleevent
  • fix-esstore-done
  • fix-unused-input-queue
  • fix_cloud_worker
  • fixbuild
  • fixcoverage
  • fixindent
  • freeze
  • gcpcloudlogs
  • gcpcloudtest
  • iam_policy
  • ignore-virtual-machines
  • ioworkers
  • key_file_name_fix
  • lint
  • load_yaml_safely
  • log
  • logfixes
  • logger-defaults
  • logging-levels
  • master
  • maxrecs
  • mock-records
  • mockplugins
  • mongodbdefaults
  • mongodbfix
  • mongodbtests
  • multiprocessing
  • pluginframework
  • pluginloader
  • readable-version
  • readme
  • remove-email-config
  • removefirewallevent
  • rename_logger
  • renameparams
  • requirements
  • rest
  • reuse-mock
  • rm-venv
  • slackalert
  • smtpssl
  • sphinx
  • sphinx-rst-update
  • splunkfixes
  • splunkhecstore_docs
  • splunkhectokentest
  • splunkstore
  • sub_id_rename
  • tests
  • travis
  • userdoc
  • userecordterm
  • verdev
  • webapp
  • worker-com-fields
  • worker-error-handling
  • workerlogs

pending completion
559

Pull #90

travis-ci-com

web-flow
Search for user configuration in popular locations

Since Cloudmarker is supposed to serve as a CLI tool that one can run
with `cloudmarker -n` as well as a service that one may run as
`cloudmarker`, it is convenient if Cloudmarker searches certain popular
paths where configuration files usually reside. This would prevent the
users or service unit definition from having to specify configuration
files as arguments to the `-c` or `--config` option.

With this change, it now looks for a configuration file at the following
locations in the order specified:

  - /etc/cloudmarker.yaml
  - ~/.cloudmarker.yaml
  - ~/cloudmarker.yaml
  - cloudmarker.yaml (i.e., in the current working directory)

The base configuration file (which was named `config.base.yaml`) earlier
has been removed from the file system. There is no counterpart for it
now on the file system. Instead the base configuration is now built into
the code in a new module named `baseconfig`. This has been done for the
following reasons:

  - Provide reasonable defaults as built-in. This is consistent with how
    other tools work, e.g., Vim, Bash, etc. ship with defaults and we
    write `~/.vimrc`, `~/.bashrc`, etc. only when we want to override
    these defaults.

  - The users were never supposed to edit `config.base.yaml` anyway. By
    removing it from the file system, the users do not have to worry
    about notions like base configuration and user configuration. They
    do not have to be careful about not editing the base configuration.
    The users can still refer to the base configuration if they wish to
    by entering `cloudmarker --print-base-config`.

Since multiple configuration paths are involved, the logging has been
improved to show what configuration paths are being looked for and which
configuration paths are being found.
Pull Request #90: Search for user configuration in popular locations

308 of 338 branches covered (91.12%)

Branch coverage included in aggregate %.

54 of 54 new or added lines in 6 files covered. (100.0%)

1387 of 1550 relevant lines covered (89.48%)

2.68 hits per line

Relevant lines Covered
Build:
Build:
1550 RELEVANT LINES 1387 COVERED LINES
2.68 HITS PER LINE
Source Files on userconfig
  • List 0
  • Changed 15
  • Source Changed 15
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
559 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... Pull #90 16 Apr 2019 03:32PM UTC web-flow travis-ci-com pending completion  
558 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... push 16 Apr 2019 03:29PM UTC susam travis-ci-com pending completion  
544 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... Pull #90 15 Apr 2019 02:28PM UTC web-flow travis-ci-com pending completion  
543 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... push 15 Apr 2019 02:26PM UTC susam travis-ci-com pending completion  
538 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... Pull #90 15 Apr 2019 09:23AM UTC web-flow travis-ci-com pending completion  
537 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... push 15 Apr 2019 09:21AM UTC susam travis-ci-com pending completion  
527 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... Pull #90 14 Apr 2019 03:55PM UTC web-flow travis-ci-com pending completion  
526 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... push 14 Apr 2019 03:52PM UTC susam travis-ci-com pending completion  
525 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... Pull #90 14 Apr 2019 03:42PM UTC web-flow travis-ci-com pending completion  
524 userconfig Search for user configuration in popular locations Since Cloudmarker is supposed to serve as a CLI tool that one can run with `cloudmarker -n` as well as a service that one may run as `cloudmarker`, it is convenient if Cloudmarker searches certai... push 14 Apr 2019 03:40PM UTC susam travis-ci-com pending completion  
See All Builds (953)
  • Repo on GitHub
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

© 2025 Coveralls, Inc