diff --git a/tests/fixtures/cassettes/test_mother_scan_updates_autotune b/tests/fixtures/cassettes/test_mother_scan_updates_autotune deleted file mode 100644 index d3d6c32..0000000 --- a/tests/fixtures/cassettes/test_mother_scan_updates_autotune +++ /dev/null @@ -1,273 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.1/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['350'] - Content-Type: [text/html] - Last-Modified: ['Mon, 26 Mar 2018 22:36:41 GMT'] - Server: [lighttpd/1.4.39] - X-Frame-Options: [deny] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.8/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Cache-Control: [max-age=315360000] - Connection: [keep-alive] - Content-Length: ['11506'] - Content-Type: [image/png] - Date: ['Sat, 16 Jun 2018 22:25:17 GMT'] - ETag: ['"5abc0f0e-2cf2"'] - Expires: ['Thu, 31 Dec 2037 23:55:55 GMT'] - Last-Modified: ['Wed, 28 Mar 2018 21:54:22 GMT'] - Server: [nginx/1.12.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.10/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Cache-Control: [max-age=315360000] - Connection: [keep-alive] - Content-Length: ['11506'] - Content-Type: [image/png] - Date: ['Sat, 16 Jun 2018 22:25:18 GMT'] - ETag: ['"5abc0f0e-2cf2"'] - Expires: ['Thu, 31 Dec 2037 23:55:55 GMT'] - Last-Modified: ['Wed, 28 Mar 2018 21:54:22 GMT'] - Server: [nginx/1.12.2] - status: {code: 200, message: OK} -- request: - body: username=admin&password=dragonadmin - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['35'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/auth - response: - body: {string: '{"success":true,"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTIxLCJleHAiOjE1MjkyMDk1MjEsInVzZXIiOiJhZG1pbiJ9.f7wD5j1WnMMx3ZHc6aWz1k08jHVFr7PjqN95G1JGGC4"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:21 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTIxLCJleHAiOjE1MjkyMDk1MjEsInVzZXIiOiJhZG1pbiJ9.f7wD5j1WnMMx3ZHc6aWz1k08jHVFr7PjqN95G1JGGC4] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/overview - response: - body: {string: '{"success":true,"type":"T1","hardware":{"status":"22:25:22 up - 2 days, 2:55, load average: 0.12, 0.12, 0.09","memUsed":75004,"memFree":175560,"memTotal":250564,"cacheUsed":43024,"cacheFree":196700,"cacheTotal":239724},"network":{"dhcp":"dhcp","ipaddress":"10.1.0.10","netmask":"255.255.252.0","gateway":"10.1.0.1","dns1":"10.1.0.1","dns2":""},"version":{"hwver":"g19","ethaddr":"a0:b0:45:01:72:dd","build_date":"15th - of May 2018 06:08 AM","platform_v":"t1_20180515_060842"}}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:22 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTIxLCJleHAiOjE1MjkyMDk1MjEsInVzZXIiOiJhZG1pbiJ9.f7wD5j1WnMMx3ZHc6aWz1k08jHVFr7PjqN95G1JGGC4] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/pools - response: - body: {string: '{"success":true,"pools":[{"url":"stratum+tcp://us-east.stratum.slushpool.com:3333","user":"brndnmtthws.dragon-450172dd","pass":"x"},{"url":"stratum+tcp://pool.ckpool.org:3333","user":"3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-450172dd","pass":"x"}]}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:22 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTIxLCJleHAiOjE1MjkyMDk1MjEsInVzZXIiOiJhZG1pbiJ9.f7wD5j1WnMMx3ZHc6aWz1k08jHVFr7PjqN95G1JGGC4] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/getAutoTune - response: - body: {string: '{"success":true,"autoTuneMode":"efficient"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:23 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: autotune=balanced - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTIxLCJleHAiOjE1MjkyMDk1MjEsInVzZXIiOiJhZG1pbiJ9.f7wD5j1WnMMx3ZHc6aWz1k08jHVFr7PjqN95G1JGGC4] - Connection: [keep-alive] - Content-Length: ['17'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/setAutoTune - response: - body: {string: '{"success":true}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:24 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: username=admin&password=dragonadmin - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['35'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/auth - response: - body: {string: '{"success":true,"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTI0LCJleHAiOjE1MjkyMDk1MjQsInVzZXIiOiJhZG1pbiJ9.K5gM_cc7BFhtagpWsT9m39-wZPh857THtWTAunSipt0"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:24 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTI0LCJleHAiOjE1MjkyMDk1MjQsInVzZXIiOiJhZG1pbiJ9.K5gM_cc7BFhtagpWsT9m39-wZPh857THtWTAunSipt0] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/overview - response: - body: {string: '{"success":true,"type":"T1","hardware":{"status":"22:25:25 up - 2 days, 2:55, load average: 0.01, 0.05, 0.06","memUsed":76384,"memFree":174180,"memTotal":250564,"cacheUsed":43084,"cacheFree":195388,"cacheTotal":238472},"network":{"dhcp":"dhcp","ipaddress":"10.1.0.8","netmask":"255.255.252.0","gateway":"10.1.0.1","dns1":"10.1.0.1","dns2":""},"version":{"hwver":"g19","ethaddr":"a0:b0:45:00:e3:ab","build_date":"15th - of May 2018 06:08 AM","platform_v":"t1_20180515_060842"}}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:25 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTI0LCJleHAiOjE1MjkyMDk1MjQsInVzZXIiOiJhZG1pbiJ9.K5gM_cc7BFhtagpWsT9m39-wZPh857THtWTAunSipt0] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/pools - response: - body: {string: '{"success":true,"pools":[{"url":"stratum+tcp://us-east.stratum.slushpool.com:3333","user":"brndnmtthws.dragon-4500e3ab","pass":"x"},{"url":"stratum+tcp://pool.ckpool.org:3333","user":"3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-4500e3ab","pass":"x"}]}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:26 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTI0LCJleHAiOjE1MjkyMDk1MjQsInVzZXIiOiJhZG1pbiJ9.K5gM_cc7BFhtagpWsT9m39-wZPh857THtWTAunSipt0] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/getAutoTune - response: - body: {string: '{"success":true,"autoTuneMode":"efficient"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:27 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: autotune=balanced - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3OTI0LCJleHAiOjE1MjkyMDk1MjQsInVzZXIiOiJhZG1pbiJ9.K5gM_cc7BFhtagpWsT9m39-wZPh857THtWTAunSipt0] - Connection: [keep-alive] - Content-Length: ['17'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/setAutoTune - response: - body: {string: '{"success":true}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:25:28 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/fixtures/cassettes/test_mother_scan_updates_pools b/tests/fixtures/cassettes/test_mother_scan_updates_pools deleted file mode 100644 index 8b0172f..0000000 --- a/tests/fixtures/cassettes/test_mother_scan_updates_pools +++ /dev/null @@ -1,233 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.1/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['350'] - Content-Type: [text/html] - Last-Modified: ['Mon, 26 Mar 2018 22:36:41 GMT'] - Server: [lighttpd/1.4.39] - X-Frame-Options: [deny] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.8/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Cache-Control: [max-age=315360000] - Connection: [keep-alive] - Content-Length: ['11506'] - Content-Type: [image/png] - Date: ['Sat, 16 Jun 2018 22:24:42 GMT'] - ETag: ['"5abc0f0e-2cf2"'] - Expires: ['Thu, 31 Dec 2037 23:55:55 GMT'] - Last-Modified: ['Wed, 28 Mar 2018 21:54:22 GMT'] - Server: [nginx/1.12.2] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] - method: HEAD - uri: http://10.1.0.10/static/media/logo-inverse.74ec0f24.png - response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Cache-Control: [max-age=315360000] - Connection: [keep-alive] - Content-Length: ['11506'] - Content-Type: [image/png] - Date: ['Sat, 16 Jun 2018 22:24:43 GMT'] - ETag: ['"5abc0f0e-2cf2"'] - Expires: ['Thu, 31 Dec 2037 23:55:55 GMT'] - Last-Modified: ['Wed, 28 Mar 2018 21:54:22 GMT'] - Server: [nginx/1.12.2] - status: {code: 200, message: OK} -- request: - body: username=admin&password=dragonadmin - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['35'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/auth - response: - body: {string: '{"success":true,"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODg2LCJleHAiOjE1MjkyMDk0ODYsInVzZXIiOiJhZG1pbiJ9.WQGGxWzekpixV55cVsfBgQUekWPtI5KqdRHY_xKr5OM"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:46 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODg2LCJleHAiOjE1MjkyMDk0ODYsInVzZXIiOiJhZG1pbiJ9.WQGGxWzekpixV55cVsfBgQUekWPtI5KqdRHY_xKr5OM] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/overview - response: - body: {string: '{"success":true,"type":"T1","hardware":{"status":"22:24:46 up - 2 days, 2:55, load average: 0.22, 0.14, 0.10","memUsed":74968,"memFree":175596,"memTotal":250564,"cacheUsed":43024,"cacheFree":196732,"cacheTotal":239756},"network":{"dhcp":"dhcp","ipaddress":"10.1.0.10","netmask":"255.255.252.0","gateway":"10.1.0.1","dns1":"10.1.0.1","dns2":""},"version":{"hwver":"g19","ethaddr":"a0:b0:45:01:72:dd","build_date":"15th - of May 2018 06:08 AM","platform_v":"t1_20180515_060842"}}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:46 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODg2LCJleHAiOjE1MjkyMDk0ODYsInVzZXIiOiJhZG1pbiJ9.WQGGxWzekpixV55cVsfBgQUekWPtI5KqdRHY_xKr5OM] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/pools - response: - body: {string: '{"success":true,"pools":[{"url":"stratum+tcp://pool.ckpool.org:3333","user":"3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-450172dd","pass":"x"}]}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:47 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: Pool1=stratum%2Btcp%3A%2F%2Fus-east.stratum.slushpool.com%3A3333&UserName1=brndnmtthws.dragon-450172dd&Password1=x&Pool2=stratum%2Btcp%3A%2F%2Fpool.ckpool.org%3A3333&UserName2=3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-450172dd&Password2=x&UserName3=None.dragon-450172dd - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODg2LCJleHAiOjE1MjkyMDk0ODYsInVzZXIiOiJhZG1pbiJ9.WQGGxWzekpixV55cVsfBgQUekWPtI5KqdRHY_xKr5OM] - Connection: [keep-alive] - Content-Length: ['269'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.10/api/updatePools - response: - body: {string: '{"success":true}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:49 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: username=admin&password=dragonadmin - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['35'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/auth - response: - body: {string: '{"success":true,"jwt":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODkwLCJleHAiOjE1MjkyMDk0OTAsInVzZXIiOiJhZG1pbiJ9.gA6s0gT6B99nk7ij-tmbJ-flRvhmdUi4lePjINCPlj0"}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:50 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODkwLCJleHAiOjE1MjkyMDk0OTAsInVzZXIiOiJhZG1pbiJ9.gA6s0gT6B99nk7ij-tmbJ-flRvhmdUi4lePjINCPlj0] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/overview - response: - body: {string: '{"success":true,"type":"T1","hardware":{"status":"22:24:51 up - 2 days, 2:55, load average: 0.02, 0.06, 0.07","memUsed":76452,"memFree":174112,"memTotal":250564,"cacheUsed":43084,"cacheFree":195320,"cacheTotal":238404},"network":{"dhcp":"dhcp","ipaddress":"10.1.0.8","netmask":"255.255.252.0","gateway":"10.1.0.1","dns1":"10.1.0.1","dns2":""},"version":{"hwver":"g19","ethaddr":"a0:b0:45:00:e3:ab","build_date":"15th - of May 2018 06:08 AM","platform_v":"t1_20180515_060842"}}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:51 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODkwLCJleHAiOjE1MjkyMDk0OTAsInVzZXIiOiJhZG1pbiJ9.gA6s0gT6B99nk7ij-tmbJ-flRvhmdUi4lePjINCPlj0] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/pools - response: - body: {string: '{"success":true,"pools":[{"url":"stratum+tcp://pool.ckpool.org:3333","user":"3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-4500e3ab","pass":"x"}]}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:52 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -- request: - body: Pool1=stratum%2Btcp%3A%2F%2Fus-east.stratum.slushpool.com%3A3333&UserName1=brndnmtthws.dragon-4500e3ab&Password1=x&Pool2=stratum%2Btcp%3A%2F%2Fpool.ckpool.org%3A3333&UserName2=3GWdXx9dfLPvSe7d8UnxjnDnSAJodTTbrt.dragon-4500e3ab&Password2=x&UserName3=None.dragon-4500e3ab - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Authorization: [Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEcmFnb25NaW50IiwiaWF0IjoxNTI5MTg3ODkwLCJleHAiOjE1MjkyMDk0OTAsInVzZXIiOiJhZG1pbiJ9.gA6s0gT6B99nk7ij-tmbJ-flRvhmdUi4lePjINCPlj0] - Connection: [keep-alive] - Content-Length: ['269'] - Content-Type: [application/x-www-form-urlencoded] - User-Agent: [python-requests/2.18.4] - method: POST - uri: http://10.1.0.8/api/updatePools - response: - body: {string: '{"success":true}'} - headers: - Connection: [keep-alive] - Content-Type: [application/json] - Date: ['Sat, 16 Jun 2018 22:24:53 GMT'] - Server: [nginx/1.12.2] - X-Powered-By: [PHP/7.2.4] - status: {code: 200, message: OK} -version: 1 diff --git a/tests/test_mother.py b/tests/test_mother.py index 43ca686..acf6a74 100644 --- a/tests/test_mother.py +++ b/tests/test_mother.py @@ -107,21 +107,6 @@ def test_mother_scan(mother, host): assert mother.dragons[host].host == host -@vcr.use_cassette() -def test_mother_scan_updates_pools(mother, host): - mother.scan(schedule=False) - gevent.sleep(2) - - assert len(mother.dragons) == 0 - -@vcr.use_cassette() -def test_mother_scan_updates_autotune(mother, host): - mother.scan(schedule=False) - gevent.sleep(2) - - assert len(mother.dragons) == 0 - - @vcr.use_cassette() def test_mother_workers_started(mother, host, mocker): mocker.patch.object(Mother, '_schedule_scanner', autospec=True) @@ -130,7 +115,7 @@ def test_mother_workers_started(mother, host, mocker): mother.start() gevent.sleep(2) - assert len(mother.dragons) == 0 + assert len(mother.dragons) == 2 Mother._schedule_scanner.assert_called_once_with(mother) Mother._schedule_scanner.assert_called_with(mother)