Commit Graph

100 Commits (master)

Author SHA1 Message Date
Justin Riley 17acd42c7d vcr: decompress response bodies before recording 2016-08-03 11:33:36 -04:00
Justin Riley 8d00264eb7 vcr: save fixtures with .yaml extension 2016-08-03 11:33:17 -04:00
Justin Riley d57ca4efa8 use pytest-flake8 plugin 2016-08-03 00:44:16 -04:00
Justin Riley e411bb7a8a add pytest-cov to test dependencies 2016-08-03 00:43:11 -04:00
Justin Riley a0cadb7258 logger: remove unused os import 2016-08-03 00:38:56 -04:00
Justin Riley ca951f324a add mock to test dependencies 2016-08-03 00:37:45 -04:00
Justin Riley 679f3a0369 use vcrpy for oneclient tests
Will commit cassettes later once the tests have been executed on a test
VM and the test authorization token has been stripped.
2016-08-03 00:36:18 -04:00
Justin Riley eff941dbf8 utils: add get_kwargs_from_env function 2016-08-03 00:13:16 -04:00
Justin Riley f312c86df6 gitignore: ignore .eggs directory 2016-08-03 00:12:31 -04:00
Justin Riley 923c8305ae add tests for utils module 2016-08-02 23:19:04 -04:00
Justin Riley 649fb7d6a6 add tests for onedns.logger module 2016-08-02 18:35:17 -04:00
Justin Riley 8b02727e35 remove unused onedns.monitor module 2016-08-02 18:08:50 -04:00
Justin Riley c4941aaf44 add tests for one.OneClient 2016-08-02 18:06:51 -04:00
Justin Riley ea68558d63 logger: remove syslog handlers for now 2016-08-02 17:28:44 -04:00
Justin Riley 68b64b58ee logger: leave default log completely unconfigured
...dont add NullHandler
2016-08-02 17:25:38 -04:00
Justin Riley 14cd665964 configure pytest and setuptools integration 2016-08-02 17:17:38 -04:00
Justin Riley 989e194c1a cli: remove all commands except daemon and shell
...for now
2016-08-02 13:32:12 -04:00
Justin Riley fb1608ce56 move api.py module to server.py 2016-08-02 13:31:55 -04:00
Justin Riley c1a6d81157 add daemon method to DynamicResolver
Keeps main process up indefinitely as long as DynamicResolver UDP
socketserver is up
2016-08-02 13:29:30 -04:00
Justin Riley 12a2a46f14 move server.py -> resolver.py 2016-08-02 12:39:02 -04:00
Justin Riley dad6ce3e2c setup.cfg: s/missing-term/term-missing 2016-08-02 12:05:02 -04:00
Justin Riley 8dfa63da5d remove all traces of skydns and etcd from code 2016-08-02 11:54:29 -04:00
Justin Riley dd8430e548 add setup.cfg for flake8, pytest, coverage, etc. 2016-08-02 11:44:59 -04:00
Justin Riley 2e84626fb8 add dnslib to project dependencies 2016-08-02 11:34:15 -04:00
Justin Riley a80a85191c add DynamicResolver class with 100% test coverage 2016-08-02 11:29:16 -04:00
Justin Riley a44f956d2c add IPy as a dependency 2016-08-02 10:14:19 -04:00
Justin Riley ee1e22708d cli: add args=None kwarg to main() 2016-07-21 15:21:47 -04:00
Justin Riley 0063ecc526 move get_kwargs to utils as get_kwargs_from_dict 2016-07-21 15:15:51 -04:00
Justin Riley f8126ea533 improve implementation of show_tb kwarg
...shows traceback while still showing ERROR or WARN
2016-07-21 13:39:59 -04:00
Justin Riley 93db7bcd17 add log instance to IPython shell environment 2016-07-21 13:37:03 -04:00
Justin Riley 2878ede2d6 raise exception if vm doesnt have any networks 2016-07-21 13:36:30 -04:00
Justin Riley d73dc5f692 add vm/host subcommands to add/remove subcommands
$ onedns add vm 3
$ onedns add host myhost 192.168.99.110
$ onedns remove vm 3
$ onedns remove host myhost 192.168.99.110
2016-07-21 09:52:27 -04:00
Justin Riley 9bcddf29ad refactor code to use new OneDNS api class
- OneDNS class provides VM -> DNS interface
- Updated OneMonitor to subclass OneDNS
- Moved 'register' method from skydns client to OneDNS as add_vm
- Moved 'update' method from OneMonitor to OneDNS as sync
- Added methods to OneDNS to add/remove VMs by id
2016-07-21 09:52:00 -04:00
Justin Riley 388739a2e0 add shell subcommand for IPython development 2016-07-20 10:03:37 -04:00
Justin Riley b8b9dab77c oneclient: add get_vm_by_id function 2016-07-19 14:05:28 -04:00
Justin Riley 38d9e539fb add new 'add' and 'remove' subcommands
Allows manually adding and removing hosts from DNS. These will be
utilized by ONE hook scripts.
2016-07-19 09:15:34 -04:00
Justin Riley 8114dbed88 add daemon subcommand and add --interval option 2016-07-19 09:14:34 -04:00
Justin Riley 54537b53dd convert domain arg to option (default: one.local) 2016-07-19 09:12:27 -04:00
Justin Riley 3ceb81545d flake8 cleanup 2016-07-14 23:15:52 -04:00
Justin Riley fd5f3d7077 monitor all vms not just one_auth user 2016-07-14 23:11:29 -04:00
Justin Riley 8c463cb12d add --interval flag to onedns command 2016-07-14 22:38:38 -04:00
Justin Riley 0c78683153 first working version of SkyDNS client 2016-07-14 22:38:05 -04:00
Justin Riley ad61c4d4b4 add required domain argument to onedns command 2016-07-14 22:38:03 -04:00
Justin Riley 89bf167c76 add debug flag -d to onedns command 2016-07-14 22:28:22 -04:00
Justin Riley 6cb4976961 move hostname validation regex to skydns client 2016-07-14 22:25:54 -04:00
Justin Riley 5cc9f7f9a5 remove old VM namedtuple 2016-07-14 16:12:13 -04:00
Justin Riley 58f4738e4b remove old setup.sh script 2016-07-14 15:43:19 -04:00
Justin Riley 428af26881 initial project scaffolding 2016-07-14 15:33:13 -04:00
Justin Riley 51446bb00b initial docker-compose configuration for one-dns 2016-07-13 23:46:26 -04:00
Justin Riley 07a325cdd2 initial setup script to bootstrap skydns + etcd 2016-07-11 16:33:11 -04:00