Commit graph

206 commits

Author SHA1 Message Date
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
Brian Martin
e00c4dd6e0 Add codecov 2019-06-05 00:11:38 -04:00
Brian Martin
f461097cda
Merge pull request #39 from bmartin5692/add-tests
Add unit tests
2019-06-04 22:51:22 -05:00
Brian Martin
29356c9849 add confserver tests
add confserver tests
2019-06-04 23:46:28 -04:00
Brian Martin
2a4c369d58 add more xmpp tests
- test xmpp server
- test starttls upgrade
2019-06-04 22:20:11 -04:00
Brian Martin
105f0ad632 more mqtt tests
more mqtt tests
2019-06-04 17:29:39 -04:00
Brian Martin
0cb5c0b4f3 add test_mqttserver.py
add test_mqttserver.py
2019-06-04 09:57:45 -04:00
Brian Martin
3060e7db20 remove iq auth
Remove old iq auth that is replaced by sasl
2019-06-03 16:41:52 -04:00
Brian Martin
9d95cbd606 rename test_bumper to test_init
- rename test_bumper to test_init
- added more xmppserver tests
2019-06-03 15:48:24 -04:00
Brian Martin
bcafa83c65 update travis and appveyor configs
update travis and appveyor configs to run pytest instead of nosetests
2019-06-03 09:55:22 -04:00
Brian Martin
615c6011ed add test_xmppserver.py
Add new test_xmppserver.py
- first connect test
2019-06-03 09:04:16 -04:00
Brian Martin
d4414bd150 Reworking tests
Reworking tests with pytest
2019-05-31 22:06:54 -04:00
Brian Martin
c78202c347
Update Use_With_App.md 2019-05-30 09:18:30 -04:00
Brian Martin
be13a9b7ac
Update How_It_Works.md 2019-05-30 09:17:21 -04:00
Brian Martin
6b6edaa0f6
Update Use_With_App.md 2019-05-30 09:16:45 -04:00
Brian Martin
d2ebe12145 Split README into docs
Splitting README into docs to make it shorter and easier to maintain.

- Change to os_db_path adding createdir so tests can skip creation of the path
2019-05-30 09:13:19 -04:00
Brian Martin
c3098e03e4 Format with black
Formatting code with black
- pipenv update
2019-05-30 06:55:15 -04:00
Brian Martin
401af5652f
Merge pull request #37 from bmartin5692/dev_starttls_#35
Add STARTTLS
2019-05-29 19:54:39 -05:00
Brian Martin
2dd59a5b98 STARTTLS working
Addresses #35

Re-worked XMPP to use protocol and adds support for STARTTLS.

Re-worked start and added graceful close on Ctrl+C
2019-05-29 20:48:47 -04:00
Brian Martin
b50b0df734 WIP - Init
WIP, not working
2019-05-25 08:39:24 -04:00
Brian Martin
32ae8468a3 xmpp - set from if empty 2019-05-23 15:15:25 -04:00
Brian Martin
a3e7d61987
Merge pull request #34 from bmartin5692/dev_broken-XMPP
Merge async and xmpp work
2019-05-23 09:22:57 -04:00
Brian Martin
7dc2504f2b Fix confserver test and add dev pbr
Fix confserver test and add dev pbr
2019-05-23 09:20:17 -04:00
Brian Martin
588959d1ef bump pipfile
bump pipfile
2019-05-23 09:09:01 -04:00
Brian Martin
2460182f4f Fix the things
XMPP is now async and works - Closes #27
Full async - Closes #22
Individual log files - Closes #21
2019-05-23 09:01:30 -04:00
Brian Martin
ceb8cf2651
Merge pull request #33 from bmartin5692/fix-#31
Fix #31
2019-05-21 10:31:52 -04:00
Brian Martin
3ae24976af
Merge branch 'dev_broken-XMPP' into fix-#31 2019-05-21 10:28:24 -04:00
Brian Martin
4af69d87fb
Merge pull request #32 from bmartin5692/fix-#31
Return 500 errors for command timeout
2019-05-21 10:25:19 -04:00
Brian Martin
5bf202189d Return 500 errors for command timeout
Bumper was returning an invalid errno when a command for MQTT would timeout.  Change to return a 500 errno with a debug message.

Closes #31
2019-05-21 10:13:21 -04:00
Brian Martin
38f31a8e69
Update README.md 2019-05-20 22:59:08 -04:00