summaryrefslogtreecommitdiff
path: root/src/leap/eip
AgeCommit message (Collapse)Author
2012-10-02refactored jsonconfig, included jsonschema validationkali
and type casting.
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-24fix slug for eip configkali
(was taking the one for eip-service) also correct the path (should be in root leap config folder).
2012-09-21add property to baseconfigkali
config instead of get_config()
2012-09-21added --no-provider-checks and --no-ca-verify for ease of debuggingkali
Close #604
2012-09-20add loggingkali
2012-09-20toggle connection on/offkali
2012-09-20Merge branch 'develop' into feature/systray-menukali
Conflicts: src/leap/app.py
2012-09-20tests pass after branding changeskali
2012-09-19openvpn options come from eip.jsonkali
2012-09-19copy cacert to local config dirkali
2012-09-19checks for certificatekali
2012-09-18cert verification and malformed json checkskali
2012-09-18do_branding command added to setupkali
2012-09-13fix race condition on app initkali
still fragile; sometimes the qt app inits faster and make the send command miss the not yet created managemente socket.
2012-09-12add openvpn-verb option to cli.kali
Closes #534. accepts int [1-6] that get passed to openvpn invocation. We should filter out the polling "state"/"status" commands from the log if we want it to be real useful.
2012-09-12time boundary check of certificate using gnutlskali
2012-09-12close fd. with breaks with StringIO passed in tests.kali
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-09-12some human friendly stubs for raising these exceptionskali
2012-09-12pep8kali
2012-09-10Implemented basic networks checks: valid interface, default route, and can ↵antialias
ping the listed gateway.
2012-09-06openvpn management socket is a temp path on each runkali
2012-09-06make tests pass.kali
forgot to update eipconnection tests after #504 changes :(
2012-09-06fix silly return mistake on has_errors methodkali
2012-09-06more generic error handler in EipConductorAppMixinkali
documentation of the Exception Hierarchy and attributes. also a bit of general cleanup around error handling in conductor. Hopefully to be polished an abstracted to leap.base with time. not all errors are converted (and the old with_errors/ignoring errors) are still there, but we should be using this style of handlers from now on. wrapping up with this pseudo-feature for now. as we work on individual features we can mimick the exceptions that are working.
2012-09-05missing_pkexec error converted to "auto" error.kali
idea is that we define user messages in the exceptions, and queue them during (conductor) checks. user facing dialogs get constucted from exception attrs. if critical, log as such and exit.
2012-09-05app wide logging handlerkali
2012-09-04fix test_checks: do not mess with real home path!kali
It is really dangerous to mess with expanduser paths in tests without deriving testcases from LeapTestCase. It'd be good to devise a way of checking for that :(
2012-09-04better separate cert validation/download logickali
stubbing out the timestamp validity check (waiting for #507) also some more deep tests are missing, wrote todo in tests.
2012-09-03basic download cert functionalitykali
2012-09-03providercertchecks:check_https_is_workingkali
implementing a https server with its own base testcase for convenience. https is delicate, and I think it's better checking against a real implementation than mocking everything here.
2012-08-31deprecated configparser. closes #500kali
2012-08-30remove unused functionkali
2012-08-30working with options only from clikali
2012-08-30move extra options from config template to cl optskali
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-29test for eip_config_checker called from eip_connection run_checks methodkali
also: - changed name EIPChecker -> EipConfigChecker - Added class documentation
2012-08-28eip_checks called from main app.kali
removed "configuration" object. checks are called from conductor.
2012-08-28add todokali
2012-08-28checki complete eip_config tests.kali
completed first version of EIPChecks
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-27add stubs for eip.checkskali
will handle pre-init sanity checks for eip connection. some of this will actually end in more general leap-checks, but let's keep it alltogether by now.
2012-08-27make eipconductor test use BaseLeapTestkali
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.