summaryrefslogtreecommitdiff
path: root/src/leap/base/tests
AgeCommit message (Collapse)Author
2012-11-14make tests pass + pep8kali
They were breaking mainly because I did not bother to have a pass over them to change the PROVIDER settings from the branding case. All good now, although much testing is yet needed and some refactor could be used. long live green tests!
2012-11-06new validation pages in a reusable MVC stylekali
using progress indicators inside QTableWidget
2012-10-08Merge branch 'feature/network_check' into developkali
Conflicts: src/leap/baseapp/mainwindow.py src/leap/eip/tests/test_checks.py
2012-10-05pep8kali
2012-10-02refactored jsonconfig, included jsonschema validationkali
and type casting.
2012-09-28Added check that default route is tun0.antialias
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-20tests pass after branding changeskali
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-29add eipconfig spec and config objectkali
2012-08-29change slug to a property (read only)kali
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-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-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.