Skip to content

Commit

Permalink
Rename testing config so it doesn't get run in the config_tests
Browse files Browse the repository at this point in the history
These tests are meant for real configs using real modules, the testing config doesn't run on its own

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Dec 22, 2023
1 parent db140c1 commit 99949a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/framework_tests/cpp_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def error_handling_tester(self, probe_module: ProbeModule):
"""
return ErrorHandlingTester(probe_module)

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_raise_error(
self,
Expand All @@ -479,7 +479,7 @@ async def test_raise_error(
assert recieved_error['message'] == err_args['message'], 'Received wrong error message'
assert recieved_error['severity'] == err_args['severity'], 'Received wrong error severity'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_clear_error_by_uuid(
self,
Expand Down Expand Up @@ -512,7 +512,7 @@ async def test_clear_error_by_uuid(
cleared_error = error_handling_tester.probe_module['errors_cleared_TestErrorA'][0]
assert raised_error == cleared_error, 'Raised error does not match cleared error'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_clear_errors_by_type(
self,
Expand Down Expand Up @@ -550,7 +550,7 @@ async def test_clear_errors_by_type(
for raised_error in raised_errors_b:
assert raised_error in cleared_errors_B, 'Raised errors should be cleared'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_clear_all_errors(
self,
Expand Down Expand Up @@ -597,7 +597,7 @@ async def test_clear_all_errors(
assert raised_error in cleared_errors, 'Raised errors should be cleared'


@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_req_error(
self,
Expand Down Expand Up @@ -626,7 +626,7 @@ async def test_receive_req_error(
assert raised_error == error_handling_tester.test_error_handling['errors_all'][0], 'Equal error should be received by all'
assert raised_error == error_handling_tester.test_error_handling['errors_global_all'][0], 'Equal error should be received by global all'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_req_error_cleared(
self,
Expand Down Expand Up @@ -660,7 +660,7 @@ async def test_receive_req_error_cleared(
assert cleared_error == error_handling_tester.test_error_handling['errors_all'][0], 'Equal error should be received by all'
assert cleared_error == error_handling_tester.test_error_handling['errors_global_all'][0], 'Equal error should be received by global all'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_req_not_sub_error(
self,
Expand All @@ -687,7 +687,7 @@ async def test_receive_req_not_sub_error(
assert raised_error['severity'] == err_arg['severity'], 'Raised error severity does not match expected error'
assert raised_error == error_handling_tester.test_error_handling['errors_global_all'][0], 'Equal error should be received by global all'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_req_not_sub_error_cleared(
self,
Expand Down Expand Up @@ -719,7 +719,7 @@ async def test_receive_req_not_sub_error_cleared(
assert cleared_error == error_handling_tester.test_error_handling['errors_global_all'][0], 'Equal error should be received by global all'


@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_not_req_error(
self,
Expand All @@ -745,7 +745,7 @@ async def test_receive_not_req_error(
assert raised_error['message'] == err_arg['message'], 'Raised error message does not match expected error'
assert raised_error['severity'] == err_arg['severity'], 'Raised error severity does not match expected error'

@pytest.mark.everest_core_config('config-test-cpp-error-handling.yaml')
@pytest.mark.everest_core_config('everest-core-testing-config-test-cpp-error-handling.yaml')
@pytest.mark.asyncio
async def test_receive_not_req_error_cleared(
self,
Expand Down

0 comments on commit 99949a1

Please sign in to comment.