Age | Commit message (Collapse) | Author |
|
|
|
Conflicts:
src/leap/baseapp/mainwindow.py
src/leap/eip/tests/test_checks.py
|
|
we are shutting down for now.
we should be acting upon failures in the near future.
lowered the recurrent checks interval to 10 seconds.
|
|
|
|
|
|
|
|
and type casting.
|
|
|
|
|
|
But thread not being successfully killed.
|
|
|
|
TODO: tests.
|
|
|
|
|
|
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
|
|
config instead of get_config()
|
|
|
|
|
|
|
|
|
|
|
|
Close #502
|
|
|
|
so it can be more easily moved to base.checks and reused
when eip is a module.
|
|
|
|
|
|
it was not updating config dict
|
|
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 :)
|
|
|
|
|
|
now we expect spec to be a dict for all the JSONLeapConfig instances.
|
|
deprecated base:test_config.test_complete_file (dup functionality)
|
|
plus a little bit of cleaning around (created constants file).
added some notes about inminent deprecation *work in progress*
|
|
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.
|
|
|
|
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).
|
|
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
|
|
|
|
(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
|
|
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.
|
|
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.
|
|
handling and tests.
uses the requests library for network interactions and mocks for simulating network states.
|
|
|
|
|
|
|
|
|
|
|
|
|