Task #2497
Task #2484: Python 3 support
Scrape tests are failing
Start date:
11/06/2019
Due date:
% Done:
100%
Description
[exec] ======================================================================
[exec] ERROR: test_scrape_page_name_attributes (__main__.TestWebInput)
[exec] ----------------------------------------------------------------------
[exec] Traceback (most recent call last):
[exec] File "/Users/lmurphey/git/splunk-web-input/tests/unit_test_web_server.py", line 89, in _decorator
[exec] return func(self, *args, **kwargs)
[exec] File "unit.py", line 374, in test_scrape_page_name_attributes
[exec] self.assertEqual(len(result['hd']), 31)
[exec] KeyError: 'hd'
[exec]
[exec] ======================================================================
[exec] ERROR: test_scrape_page_name_attributes_separate_fields (__main__.TestWebInput)
[exec] ----------------------------------------------------------------------
[exec] Traceback (most recent call last):
[exec] File "/Users/lmurphey/git/splunk-web-input/tests/unit_test_web_server.py", line 89, in _decorator
[exec] return func(self, *args, **kwargs)
[exec] File "unit.py", line 386, in test_scrape_page_name_attributes_separate_fields
[exec] self.assertEqual(result['match_hd_1'], 'Mode:')
[exec] KeyError: 'match_hd_1'
[exec]
[exec] ======================================================================
[exec] ERROR: test_scrape_page_output_fx (__main__.TestWebInput)
[exec] ----------------------------------------------------------------------
[exec] Traceback (most recent call last):
[exec] File "/Users/lmurphey/git/splunk-web-input/tests/unit_test_web_server.py", line 89, in _decorator
[exec] return func(self, *args, **kwargs)
[exec] File "unit.py", line 554, in test_scrape_page_output_fx
[exec] self.assertEqual(len(results[0]['hd']), 31)
[exec] KeyError: 'hd'
[exec]
[exec] ======================================================================
[exec] ERROR: test_scrape_page_with_credentials (__main__.TestWebInput)
[exec] ----------------------------------------------------------------------
[exec] Traceback (most recent call last):
[exec] File "/Users/lmurphey/git/splunk-web-input/tests/unit_test_web_server.py", line 89, in _decorator
[exec] return func(self, *args, **kwargs)
[exec] File "unit.py", line 251, in test_scrape_page_with_credentials
[exec] self.assertEqual(len(result['match']), 30)
[exec] KeyError: 'match'
[exec]
[exec] ======================================================================
[exec] FAIL: test_scrape_page_name_attributes_escaped_name (__main__.TestWebInput)
[exec] ----------------------------------------------------------------------
[exec] Traceback (most recent call last):
[exec] File "/Users/lmurphey/git/splunk-web-input/tests/unit_test_web_server.py", line 89, in _decorator
[exec] return func(self, *args, **kwargs)
[exec] File "unit.py", line 398, in test_scrape_page_name_attributes_escaped_name
[exec] self.assertTrue('btnBerTest__' in result)
[exec] AssertionError: False is not true
[exec]
[exec] ----------------------------------------------------------------------
Associated revisions
Fixed issue where header detection wasn't working properly
Reference #2497
History
#1
Updated by Luke Murphey about 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100