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

certbot / certbot / 9550
99%

Build:
DEFAULT BRANCH: master
Ran 11 Apr 2018 04:00PM UTC
Jobs 1
Files 188
Run time 15s
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
9550

push

travis-ci

bmw
PluginStorage to store variables between invocations. (#5468)

The base class for Installer plugins `certbot.plugins.common.Installer` now provides functionality of `PluginStorage` to all installer plugins. This allows a plugin to save and retrieve variables in between of invocations.

The on disk storage is basically a JSON file at `config_dir`/`.pluginstorage.json`, usually `/etc/letsencrypt/.pluginstorage.json`. The JSON structure is automatically namespaced using the internal plugin name as a namespace key. Because the actual storage is JSON, the supported data types are: dict, list, tuple, str, unicode, int, long, float, boolean and nonetype.

To add a variable from inside the plugin class:
`self.storage.put("my_variable_name", my_var)`

To fetch a variable from inside the plugin class:
`my_var = self.storage.fetch("my_variable_key")`

The storage state isn't written on disk automatically, but needs to be called:
`self.storage.save()`

* Plugin storage implementation

* Added config_dir to existing test mocks

* PluginStorage test cases

* Saner handling of bad config_dir paths

* Storage moved to Installer and not initialized on plugin __init__

* Finetuning and renaming

22852 of 23152 relevant lines covered (98.7%)

0.99 hits per line

Jobs
ID Job ID Ran Files Coverage
3 9550.3 (TOXENV=cover FYI="this also tests py27") 11 Apr 2018 04:00PM UTC 0
98.7
Travis Job 9550.3
Source Files on build 9550
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9550
  • 4a8e3528 on github
  • Prev Build on master (#9542)
  • Next Build on master (#9551)
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