|
PACS System 0.1.0
PACS DICOM system library
|
Scenario 5: Error Recovery Tests. More...
#include "test_fixtures.h"#include <catch2/catch_test_macros.hpp>#include "kcenon/pacs/network/dimse/dimse_message.h"#include "kcenon/pacs/services/storage_scp.h"#include "kcenon/pacs/services/storage_scu.h"#include "kcenon/pacs/services/verification_scp.h"#include "kcenon/pacs/storage/file_storage.h"#include "kcenon/pacs/storage/index_database.h"#include <atomic>#include <thread>
Go to the source code of this file.
Functions | |
| TEST_CASE ("Invalid SOP Class rejection", "[error][sop_class]") | |
| TEST_CASE ("Server rejection of all stores", "[error][rejection]") | |
| TEST_CASE ("Connection to offline server and retry", "[error][retry]") | |
| TEST_CASE ("Server restart during operations", "[error][restart]") | |
| TEST_CASE ("Timeout during slow processing", "[error][timeout]") | |
| TEST_CASE ("Association abort handling", "[error][abort]") | |
| TEST_CASE ("Multiple rapid aborts", "[error][rapid_abort]") | |
| TEST_CASE ("Duplicate SOP Instance handling", "[error][duplicate]") | |
Scenario 5: Error Recovery Tests.
Tests system error handling and recovery:
Definition in file test_error_recovery.cpp.
| TEST_CASE | ( | "Association abort handling" | , |
| "" | [error][abort] ) |
Definition at line 499 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::test_association::connect(), kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::verification_sop_class_uid.

| TEST_CASE | ( | "Connection to offline server and retry" | , |
| "" | [error][retry] ) |
Definition at line 354 of file test_error_recovery.cpp.
References kcenon::pacs::integration_test::test_association::connect(), kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), and kcenon::pacs::services::verification_sop_class_uid.

| TEST_CASE | ( | "Duplicate SOP Instance handling" | , |
| "" | [error][duplicate] ) |
Definition at line 586 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::integration_test::generate_ct_dataset(), kcenon::pacs::integration_test::generate_uid(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, kcenon::pacs::core::dicom_dataset::set_string(), and kcenon::pacs::services::storage_scu::store().

| TEST_CASE | ( | "Invalid SOP Class rejection" | , |
| "" | [error][sop_class] ) |
Definition at line 265 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::integration_test::generate_mr_dataset(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::storage_scu::store().

| TEST_CASE | ( | "Multiple rapid aborts" | , |
| "" | [error][rapid_abort] ) |
Definition at line 536 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::test_association::connect(), kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::dimse::make_c_echo_rq(), kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::verification_sop_class_uid.

| TEST_CASE | ( | "Server rejection of all stores" | , |
| "" | [error][rejection] ) |
Definition at line 314 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::integration_test::generate_ct_dataset(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::storage_scu::store().

| TEST_CASE | ( | "Server restart during operations" | , |
| "" | [error][restart] ) |
Definition at line 388 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::test_association::connect(), kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::integration_test::generate_ct_dataset(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::storage_scu::store().

| TEST_CASE | ( | "Timeout during slow processing" | , |
| "" | [error][timeout] ) |
Definition at line 449 of file test_error_recovery.cpp.
References kcenon::pacs::network::association_config::called_ae_title, kcenon::pacs::network::association_config::calling_ae_title, kcenon::pacs::integration_test::default_timeout(), kcenon::pacs::integration_test::find_available_port(), kcenon::pacs::integration_test::generate_ct_dataset(), kcenon::pacs::network::association_config::implementation_class_uid, kcenon::pacs::network::association_config::proposed_contexts, and kcenon::pacs::services::storage_scu_config::response_timeout.
