Commit graph

43 commits

Author SHA1 Message Date
Brian Martin
70fdfdb1b3 helperbot get_msg
- moved get_msg handler from helperbot to broker
2020-01-03 14:23:37 -05:00
Brian Martin
6da98acdad fix tests
- added kwargs for mqttserver init
  - passwd_file and allow_anonymous

- removed unused tests and sleeps
2020-01-03 08:57:02 -05:00
Brian Martin
cb693b5cf6 sleep a bit
tests work locally, seeing if added sleeps fix CI
2020-01-03 01:43:56 -05:00
Brian Martin
63e0620f0c add remove bot and client 2020-01-03 01:33:31 -05:00
Brian Martin
2d5e4e17a0 Update test_confserver.py
-fix tests, missing xmpp server for base
2020-01-02 09:21:15 -05:00
Brian Martin
0a2276d953 Add sniffing and developing notes
Add sniffing and developing notes
2020-01-01 17:00:39 -05:00
Brian Martin
75aa74f39c
Merge branch 'master' into extend-confserver-logging 2019-12-30 16:01:06 -05:00
Brian Martin
5219ab06ab Add tests and fix restart mqtt
Add tests and fix restart mqtt
2019-12-30 15:53:40 -05:00
Brian Martin
d504a248fb Update gitignore to add passwd in tests
Update gitignore to add passwd in tests
2019-12-30 11:54:03 -05:00
Brian Martin
2fbfd4188a add tests for file auth
add tests for file auth
2019-12-30 11:36:38 -05:00
Brian Martin
18f3a807f1 add image for bots in ecovacs home
add endpoint for /api/pim/file/get so an image is displayed for bots in the ecovacs home app
2019-12-27 11:51:31 -05:00
Brian Martin
e690436a37 handle #55
Better handling if a bot is missing a DID, which could be a corrupt or outdated database.
2019-10-19 15:06:08 -04:00
Brian Martin
5ac6663502 fix send_command payloadType
Used toType instead of payloadType...
2019-10-01 20:20:23 -04:00
Brian Martin
e233fe933e send_command json instead of str
send_command json instead of str
2019-10-01 16:27:58 -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
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
0b38562b4a
Merge branch 'master' into docker 2019-06-15 00:12:45 -05: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
d8b2d02ca4 remove extra listeners
removed service_listeners and using bumper_listen
2019-06-09 21:16:37 -04: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
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
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
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
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
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
4080f0f950 More confserver tests
More confserver tests, coverage 75%
2019-03-17 11:02:53 -04:00
Brian Martin
5392bef74f Additional tests for confserver
Additional tests for confserver
2019-03-15 09:05:54 -04:00
Brian Martin
747eeda4a5 Start adding tests for confserver
Start adding tests for confserver
2019-03-14 09:35:37 -04:00
Brian Martin
616729e97f full coverage for init
full coverage for init
- 100% coverage of db operations
2019-03-13 21:07:29 -04:00
Brian Martin
98b65bb808 first test
first test
2019-03-11 23:14:50 -04:00