chore(deps): update poetry #1315
0 passed, 9 failed and 0 skipped
❌ test-results/junit.xml
9 tests were completed in 2s with 0 passed, 9 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 9❌ | 2s |
❌ pytest
test_alert_actions_page.chrome_TestAlertActions
❌ test_action_in_list
request = <SubRequest 'splunk' for <Function test_action_in_list>>
❌ test_dropdown_list
request = <SubRequest 'splunk' for <Function test_dropdown_list>>
❌ test_account_functionality
request = <SubRequest 'splunk' for <Function test_account_functionality>>
❌ test_checkbox
request = <SubRequest 'splunk' for <Function test_checkbox>>
❌ test_single_select
request = <SubRequest 'splunk' for <Function test_single_select>>
❌ test_toggle
request = <SubRequest 'splunk' for <Function test_toggle>>
❌ test_alert_action_save
request = <SubRequest 'splunk' for <Function test_alert_action_save>>
❌ test_alert_help_text_entity
request = <SubRequest 'splunk' for <Function test_alert_help_text_entity>>
❌ test_alert_action_label_entity
request = <SubRequest 'splunk' for <Function test_alert_action_label_entity>>
Annotations
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_action_in_list
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_action_in_list>>
Raw output
request = <SubRequest 'splunk' for <Function test_action_in_list>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_action_in_list>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_dropdown_list
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_dropdown_list>>
Raw output
request = <SubRequest 'splunk' for <Function test_dropdown_list>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_dropdown_list>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_account_functionality
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_account_functionality>>
Raw output
request = <SubRequest 'splunk' for <Function test_account_functionality>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_account_functionality>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_checkbox
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_checkbox>>
Raw output
request = <SubRequest 'splunk' for <Function test_checkbox>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_checkbox>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_single_select
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_single_select>>
Raw output
request = <SubRequest 'splunk' for <Function test_single_select>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_single_select>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_toggle
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_toggle>>
Raw output
request = <SubRequest 'splunk' for <Function test_toggle>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_toggle>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_alert_action_save
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_alert_action_save>>
Raw output
request = <SubRequest 'splunk' for <Function test_alert_action_save>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_alert_action_save>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_alert_help_text_entity
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_alert_help_text_entity>>
Raw output
request = <SubRequest 'splunk' for <Function test_alert_help_text_entity>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_alert_help_text_entity>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception
Check failure on line 0 in test-results/junit.xml
github-actions / test-report-ui-9.2.2-alert
pytest ► test_alert_actions_page.chrome_TestAlertActions ► test_alert_action_label_entity
Failed test found in:
test-results/junit.xml
Error:
request = <SubRequest 'splunk' for <Function test_alert_action_label_entity>>
Raw output
request = <SubRequest 'splunk' for <Function test_alert_action_label_entity>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
> splunk_info = request.getfixturevalue(splunk_fixture)
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:440:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:642: in splunk_external
is_valid_hec(request, splunk_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
request = <SubRequest 'splunk_external' for <Function test_action_in_list>>
splunk = {'forwarder_host': 'localhost', 'host': 'localhost', 'password': 'Chang3d!', 'port': '8089', ...}
def is_valid_hec(request, splunk):
"""
Verify if provided hec token is valid by sending simple post request.
Args:
splunk (dict): details of the Splunk instance
Returns:
None
"""
LOGGER.info(
"Validating HEC token... splunk=%s",
json.dumps(splunk),
)
response = requests.post(
url=f'{request.config.getoption("splunk_hec_scheme")}://{splunk["forwarder_host"]}:{splunk["port_hec"]}/services/collector/raw',
headers={
"Authorization": f'Splunk {request.config.getoption("splunk_hec_token")}'
},
data={"event": "test_hec", "sourcetype": "hec_token_test"},
verify=False,
)
LOGGER.debug("Status code: %d", response.status_code)
if response.status_code == 200:
LOGGER.info("Splunk HEC is valid.")
else:
> pytest.exit("Exiting pytest due to invalid HEC token value.")
E _pytest.outcomes.Exit: Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:1048: Exit
During handling of the above exception, another exception occurred:
request = <SubRequest 'splunk' for <Function test_alert_action_label_entity>>
file_system_prerequisite = None
@pytest.fixture(scope="session")
def splunk(request, file_system_prerequisite):
"""
This fixture based on the passed option will provide a real fixture
for external or docker Splunk
Returns:
dict: Details of the splunk instance including host, port, username & password.
"""
splunk_type = request.config.getoption("splunk_type")
LOGGER.info("Get the Splunk instance of splunk_type=%s", splunk_type)
splunk_fixture = f"splunk_{splunk_type}"
try:
request.fixturenames.append(splunk_fixture)
splunk_info = request.getfixturevalue(splunk_fixture)
except Exception as e:
> raise Exception(f"Failed to get Splunk fixture ({splunk_fixture}): {e}")
E Exception: Failed to get Splunk fixture (splunk_external): Exiting pytest due to invalid HEC token value.
../../../.cache/pypoetry/virtualenvs/splunk-add-on-ucc-framework-rPXMmn5S-py3.7/lib/python3.7/site-packages/pytest_splunk_addon/splunk.py:442: Exception