Closed
Description
Is your feature request related to a problem? Please describe.
Monkeys do an internet connectivity check (where do we even display this information?), which takes up to a minute (especially if the internet is unavailable):
2021-06-30 07:16:15,039 [1844:140651882833664:DEBUG] control.wakeup.45: parent: 237567998424320
2021-06-30 07:16:15,040 [1844:140651882833664:DEBUG] connectionpool._new_conn.959: Starting new HTTPS connection (1): updates.infectionmonkey.com:443
2021-06-30 07:17:15,150 [1844:140651882833664:DEBUG] connectionpool._new_conn.959: Starting new HTTPS connection (1): www.google.com:443
2021-06-30 07:17:30,175 [1844:140651882833664:DEBUG] connectionpool._new_conn.959: Starting new HTTPS connection (1): 10.2.2.251:5000
2021-06-30 07:17:30,203 [1844:140651882833664:DEBUG] connectionpool._make_request.437: https://10.2.2.251:5000 \"POST /api/monkey HTTP/1.1\" 200 34
2021-07-26 05:14:10,771 [2745:139797814303616:DEBUG] monkey.set_default_server.461: default server set to: 192.168.10.1:5000
2021-07-26 05:14:10,772 [2745:139797814303616:DEBUG] control.wakeup.48: parent: 211375648895908
2021-07-26 05:14:10,773 [2745:139797814303616:DEBUG] connectionpool._new_conn.943: Starting new HTTPS connection (1): updates.infectionmonkey.com:443
2021-07-26 05:14:27,625 [2745:139797814303616:DEBUG] connectionpool._new_conn.943: Starting new HTTPS connection (1): www.google.com:443
2021-07-26 05:14:47,650 [2745:139797814303616:DEBUG] connectionpool._new_conn.943: Starting new HTTPS connection (1): 192.168.10.1:5000
2021-07-26 05:14:47,675 [2745:139797814303616:DEBUG] connectionpool._make_request.442: https://192.168.10.1:5000 "POST /api/monkey HTTP/1.1" 200 34
2021-07-26 05:14:47,677 [2745:139797814303616:DEBUG] connectionpool._new_conn.943: Starting new HTTPS connection (1): 192.168.10.1:5000
This is not common however, thus this issue has a low priority.
Describe the solution you'd like
Disable internet connectivity check for unit tests by modifying the default template to not contain any internet addresses to check.
Describe alternatives you've considered
Keeping as is
Tasks
- Change the default blackbox configuration templates to not have any internet addresses to query (internal -> monkey -> internet_services) (0d) @ilija-lazoroski