summaryrefslogtreecommitdiff
path: root/src/leap/base
AgeCommit message (Collapse)Author
2012-10-12ping_gateway now uses the provider gateway defined in config file.antialias
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-08Merge branch 'feature/network_check' into developkali
Conflicts: src/leap/baseapp/mainwindow.py src/leap/eip/tests/test_checks.py
2012-10-08popup dialog error when network error happenskali
we are shutting down for now. we should be acting upon failures in the near future. lowered the recurrent checks interval to 10 seconds.
2012-10-06springbok hardcoded path for registrationkali
2012-10-05add comments to netcheckskali
2012-10-05pep8kali
2012-10-02refactored jsonconfig, included jsonschema validationkali
and type casting.
2012-10-01Still some QT related problems. Hand off to kali to fix.antialias
2012-10-01Checker starting and stopping correctly.antialias
2012-09-28Functionality to shutdown network checker when openvpn is stopped.antialias
But thread not being successfully killed.
2012-09-28Added check that default route is tun0.antialias
2012-09-25First check for threaded network checks.antialias
TODO: tests.
2012-09-25moved LeapNetworkChecker and test in base.antialias
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-20tests pass after branding changeskali
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-09-12Merge branch 'feature/network_check' into developkali
Close #502
2012-09-12checks for systray in unitykali
2012-09-12moved network checks to its own classkali
so it can be more easily moved to base.checks and reused when eip is a module.
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-29change slug to a property (read only)kali
2012-08-29spec creation moved to JSONLeapConfig __metaclass__kali
now we expect spec to be a dict for all the JSONLeapConfig instances.
2012-08-28eipchecker.fetch definition and testskali
deprecated base:test_config.test_complete_file (dup functionality)
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-27add new TODO commentkali
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-23basic provider-definition and provider spec classeskali
tests green for load/dump operations on config. defaults on config spec for LeapServiceProvider should be outputting a minimal working config for bootstrapping the connection. we should be using this config mechanism for other config operations; but probably we should specify a local_editable flag for those configs that are only changed by server.
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.
2012-08-22grabs a definition.json file if one isn't present. includes some basic error ↵antialias
handling and tests. uses the requests library for network interactions and mocks for simulating network states.
2012-08-22moved help functions from eip/config.py to base/configuration.py.antialias
2012-08-22clean imports and remove connection base methodkali
2012-08-21add __init__ to base modulekali
2012-08-21fix imports + style cleaningkali
2012-08-21pep8 cleaningkali