Commit graph

285 commits

Author SHA1 Message Date
Brian Martin
2663c46d52 remove a few try
remove a few try
2019-06-20 21:05:36 -04:00
Brian Martin
9be1ba8321 restart_XMPP
restart_XMPPServer
2019-06-20 20:39:45 -04:00
Brian Martin
40d4af3f80 fixing the broken tests
leftover helperbot= in tests causing failures....
2019-06-20 08:59:15 -04:00
Brian Martin
7fc7cb80cb api - restart_{service}
add restart_{service}

- restart_Helperbot
- restart_MQTTServer

- Removed a few outstanding references to threads
2019-06-20 08:48:01 -04:00
Brian Martin
58b3567887 split models and db from init
Move models into their own file
Move db functions into their own file
Update tests
2019-06-19 09:29:45 -04:00
Brian Martin
76528d1500 fix tests during wip
- Comment out test_base until api stablizes
2019-06-19 08:10:11 -04:00
Brian Martin
d541234600 add devicealert as boterror
add devicealert as boterror
2019-06-19 07:52:39 -04:00
Brian Martin
b48905b4e4 catch bot errors in log
Close #10
- New boterror log
- Works for MQTT and XMPP
2019-06-19 07:29:12 -04:00
Brian Martin
4fe7f056f4 test api
testing api pulling from db
2019-06-18 20:21:01 -04:00
Brian Martin
f0c13dc8e2 db with open
switch to using with open
2019-06-18 20:18:54 -04:00
Brian Martin
f2585b0450 Remove debug prints
Remove forgotten prints from debugging
2019-06-15 01:49:38 -04:00
Brian Martin
d236136dc0
Update README.md 2019-06-15 01:33:51 -04:00
Brian Martin
67fd5054e5
Update README.md 2019-06-15 01:31:06 -04:00
Brian Martin
8e149826c8
Merge pull request #46 from bmartin5692/docker
Docker
2019-06-15 00:15:23 -05:00
Brian Martin
0b38562b4a
Merge branch 'master' into docker 2019-06-15 00:12:45 -05:00
Brian Martin
52d192efed Update README.md 2019-06-15 01:01:04 -04:00
Brian Martin
8bb28a8b43
Update DNS_Setup.md 2019-06-14 10:13:10 -04:00
Brian Martin
e16360a29d
Update DNS_Setup.md 2019-06-14 10:05:19 -04:00
Brian Martin
6b2ed31c9e remove first run prompt - fix tests
remove first run prompt, default to generate certs
fix tests
2019-06-10 22:10:18 -04:00
Brian Martin
8ed31a1cb6
Merge pull request #45 from bmartin5692/fix-#41
Fix #41
2019-06-10 13:12:55 -05:00
Brian Martin
fa081393d2 re-build
re-build
2019-06-10 13:50:24 -04:00
Brian Martin
990a93e583 add test for create_certs args
add test for create_certs args
2019-06-10 13:49:39 -04:00
Brian Martin
d3db3e35e3 fix up paths and execution
Now works according to how the docs specify
2019-06-10 09:28:22 -04:00
Brian Martin
1e3550a5ee Make create_certs more resilient
Better error and file path handling
2019-06-10 08:56:56 -04:00
Brian Martin
07a9fa0dc8
Merge pull request #44 from bmartin5692/fix-#42
Fix command-line args
2019-06-09 20:30:31 -05:00
Brian Martin
d8b2d02ca4 remove extra listeners
removed service_listeners and using bumper_listen
2019-06-09 21:16:37 -04:00
Brian Martin
d5db3b696c dockerfile and env var
Add Dockerfile, requirement.txt, and new BUMPER_CERTS env var.
2019-06-09 20:09:35 -04:00
Brian Martin
3f44b33a0a
Update README.md 2019-06-08 17:04:24 -04:00
Brian Martin
edb6c7b5cc
Merge pull request #40 from bmartin5692/create_cert
Create cert
2019-06-08 16:02:08 -05:00
Brian Martin
4fb7b63863 Update test_z_problem.py
fix for windows tests
2019-06-08 16:55:42 -04:00
Brian Martin
b7aea02444 Update test_z_problem.py
fix bad test
2019-06-08 16:49:11 -04:00
Brian Martin
1f0e417760 no more start_bumper
remove start_bumper
- built into __main__ + __init__
- add tests
2019-06-08 16:45:52 -04:00
Brian Martin
7637dfca6e get tests to 100
get tests to 100% cov
2019-06-07 19:52:20 -04:00
Brian Martin
edf5e8e3c0 add first_run
if certs aren't in folder, ask to create with create_certs.
2019-06-07 19:16:44 -04:00
Brian Martin
b3be060760 Update README.md
Add command-line / env vars
2019-06-07 10:58:56 -04:00
Brian Martin
715cbb7c89 Update Create_Certs.md
fix table
2019-06-07 10:35:41 -04:00
Brian Martin
d99a37d6ba Update docs
Update docs
2019-06-07 09:40:04 -04:00
Brian Martin
0157cac703 update gitignore add readme to empties
update gitignore and add readme to:
logs/data/certs
2019-06-07 08:05:09 -04:00
Brian Martin
422a28cd8d fix tests
fix tests broken by lack of certs
- pytest.ini provides environment variables that load tests/test_certs
2019-06-07 02:00:42 -04:00
Brian Martin
d1dffcff0e add create_certs binary
add create_certs binary
2019-06-07 01:05:07 -04:00
Brian Martin
40291cd075 add create_certs
add new cert generator code
- ./build.sh will create binaries for major platforms
2019-06-07 00:56:41 -04:00
Brian Martin
6c429b93e6 more grace
more graceful shutdown and error handling
2019-06-07 00:54:12 -04:00
Brian Martin
4e46d7e810 add autoflake
add autoflake
remove unused imports
2019-06-06 23:18:28 -04:00
Brian Martin
75810c18e2 Update __init__.py 2019-06-06 22:47:16 -04:00
Brian Martin
72f3b5d049 change execution
bumper.start/shutdown
- allow envionrment variables (prep for docker)
- move bumper.db to new "data" directory
start_bumper reworked
- use argparse
2019-06-06 22:46:40 -04:00
Brian Martin
1f945ba7cd Update .gitignore 2019-06-06 22:43:31 -04:00
Brian Martin
e43fd4cb84 Remove certs
Remove certs
2019-06-06 22:43:19 -04:00
Brian Martin
e4850174ce
Update README.md 2019-06-05 00:25:52 -04:00
Brian Martin
63e38c548c Update appveyor.yml 2019-06-05 00:22:13 -04:00
Brian Martin
aa242fb378 add --cov to builds 2019-06-05 00:15:26 -04:00