summaryrefslogtreecommitdiff
path: root/src/leap/base/config.py
AgeCommit message (Collapse)Author
2013-03-06Remove everything to start from scratchTomás Touceda
2013-01-31add underscore to the $HOME pattern exceptionkali
2013-01-28change dirspec dep by pyxdgkali
2013-01-25use dirspec for cross-platform friendly directorieskali
2013-01-25use dirspeckali
2013-01-24refine get_username to work on buildslavesantialias
2013-01-24changed get_username to work on buildslavesantialias
2013-01-11all calls except the first one are made to api urikali
we also parse the port number
2012-12-18back-compat fix for requests api changekali
2012-12-12tests for openvpn optionskali
and make the rest of tests pass after some changes in this branch (dirtyness in config files)
2012-12-11fetch only if not changed-since config file timestampkali
Changing this now to be able to test different providers by just updating our local config file.
2012-11-13fix missing provider parameter in leapconfig objects chainkali
2012-10-20connecting pagekali
and changes to functions having to do with the default path to certs.
2012-10-11comment out the set_password call until we fix #744kali
2012-10-11removed debug info since eval HOME is causing the bugkali
2012-10-11another attempt at fixing recursion error with expanduserkali
2012-10-06springbok hardcoded path for registrationkali
2012-10-02refactored jsonconfig, included jsonschema validationkali
and type casting.
2012-09-25make test for provider passkali
2012-09-24add schema to JSONLeapConfig classeskali
and a jsonvalidate function too, that calls to jsonchemea.validate(self, data) with self.schema We're using the specs to both purposes now: * providing a type casting system for our config options (work in progress for the type casting) * json schema validation
2012-09-21add property to baseconfigkali
config instead of get_config()
2012-09-20cleanupkali
2012-09-19openvpn options come from eip.jsonkali
2012-09-18cert verification and malformed json checkskali
2012-09-18do_branding command added to setupkali
2012-08-30add test for JSONLeapConfig metaclasskali
2012-08-30fetcher moved to baseconfig + eipchecker using eipservice config.kali
2012-08-30fix config load methodkali
it was not updating config dict
2012-08-30add lazy evaluation to config specskali
now callables are allowed in specs *only at one level depth* to allow for last-minute evaluation on context-sensitive data, like paths affected by os.environ also some minor modifications to make check tests pass after putting the new jsonconfig-based eipconfig in place. aaaaaall green again :)
2012-08-29add eipconfig spec and config objectkali
2012-08-29spec creation moved to JSONLeapConfig __metaclass__kali
now we expect spec to be a dict for all the JSONLeapConfig instances.
2012-08-27add test_dump_default_eipconfig to eip.test_checkskali
plus a little bit of cleaning around (created constants file). added some notes about inminent deprecation *work in progress*
2012-08-27change default_provider_path to base.constantskali
fix tests by introducing a (dirtish) workaround for check for openvpn keys during vpn connection initialization. noted that eipconnection constructor should be better not having that class of side-effects.
2012-08-27make provider-fetch tests passkali
test provider-definition dump functions. refactored the set-temp-to-home methods to setUpClass separate provider-fetch tests on different testcases (so they actually call to requests).
2012-08-24Merge branch 'get-definition.json' into providers-statickali
adjusted some loose ends to make tests pass again. this merge is still half-baked regarding functionality: I've left in place old Configuration class used by some tests antialias did on his branch. I plan to merge that functionality with the more recent JSONConfig and Spec classes. Conflicts: src/leap/base/configuration.py src/leap/eip/config.py src/leap/eip/tests/test_config.py
2012-08-24fix circular importkali
2012-08-23moved help functions from eip/config.py to base/configuration.py.antialias
(cherry picked from get-definition.json branch) solve merge conflict since antialias was working in a version in which baseconfig was still at `configuration` file. Conflicts: src/leap/base/configuration.py
2012-08-23base config and json-configkali
an initial attempt at stablishing base classes for config. we go with a jsonconfig by now, and will switch to a different storage backend in near future. things will surely be broken at this state; i'm splitting work on different commits.