Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
we also parse the port number
|
|
|
|
and make the rest of tests pass after some changes
in this branch (dirtyness in config files)
|
|
Changing this now to be able to test different providers by
just updating our local config file.
|
|
|
|
and changes to functions having to do with the default
path to certs.
|
|
|
|
|
|
|
|
|
|
and type casting.
|
|
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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
|
|
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.
|