AAS HTTP Client Documentation
Loading...
Searching...
No Matches
tests.test_client Namespace Reference

Functions

AasHttpClient client (request)
 
model.Property shared_sme_string ()
 
model.Property shared_sme_bool ()
 
model.Property shared_sme_int ()
 
model.Property shared_sme_float ()
 
model.SubmodelElementCollection shared_sme_collection ()
 
model.Submodel shared_sm ()
 
model.AssetAdministrationShell shared_aas (model.Submodel shared_sm)
 
 test_000a_create_client_by_url (AasHttpClient client)
 
 test_000b_create_client_by_dict (AasHttpClient client)
 
 test_001a_connect (AasHttpClient client)
 
 test_001b_delete_all_asset_administration_shells (AasHttpClient client)
 
 test_001c_delete_all_submodels (AasHttpClient client)
 
 test_002_get_all_asset_administration_shells (AasHttpClient client)
 
 test_003_post_asset_administration_shell (AasHttpClient client, model.AssetAdministrationShell shared_aas)
 
 test_004a_get_asset_administration_shell_by_id (AasHttpClient client, model.AssetAdministrationShell shared_aas)
 
 test_004b_get_asset_administration_shell_by_id (AasHttpClient client)
 
 test_005a_put_asset_administration_shell_by_id (AasHttpClient client, model.AssetAdministrationShell shared_aas)
 
 test_005b_put_asset_administration_shell_by_id (AasHttpClient client, model.AssetAdministrationShell shared_aas)
 
 test_006_get_asset_administration_shell_by_id_reference_aas_repository (AasHttpClient client)
 
 test_007_get_submodel_by_id_aas_repository (AasHttpClient client)
 
 test_008_get_all_submodels (AasHttpClient client)
 
 test_009a_post_submodel (AasHttpClient client, model.Submodel shared_sm)
 
 test_009b_post_submodel (AasHttpClient client)
 
 test_010_get_submodel_by_id_aas_repository (AasHttpClient client, model.Submodel shared_sm)
 
 test_011a_get_submodel_by_id (AasHttpClient client, model.Submodel shared_sm)
 
 test_011b_get_submodel_by_id (AasHttpClient client)
 
 test_011c_get_submodel_by_id (AasHttpClient client)
 
 test_011d_get_submodel_by_id (AasHttpClient client)
 
 test_012_patch_submodel_by_id (AasHttpClient client, model.Submodel shared_sm)
 
 test_013_put_submodel_by_id_aas_repository (AasHttpClient client, model.Submodel shared_sm)
 
 test_014_put_submodels_by_id (AasHttpClient client, model.Submodel shared_sm)
 
 test_015_get_all_submodel_elements_submodel_repository (AasHttpClient client, model.Submodel shared_sm)
 
 test_016a_post_submodel_element_submodel_repo (AasHttpClient client, model.Property shared_sme_string)
 
 test_016b_post_submodel_element_submodel_repo (AasHttpClient client, model.Property shared_sme_bool)
 
 test_016c_post_submodel_element_submodel_repo (AasHttpClient client, model.Property shared_sme_int)
 
 test_016d_post_submodel_element_submodel_repo (AasHttpClient client, model.Property shared_sme_float)
 
 test_017a_get_submodel_element_by_path_submodel_repo (AasHttpClient client, model.Property shared_sme_string)
 
 test_017b_get_submodel_element_by_path_submodel_repo (AasHttpClient client, model.Property shared_sme_bool)
 
 test_017c_get_submodel_element_by_path_submodel_repo (AasHttpClient client, model.Property shared_sme_int)
 
 test_017d_get_submodel_element_by_path_submodel_repo (AasHttpClient client, model.Property shared_sme_float)
 
 test_018a_patch_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_string)
 
 test_018b_patch_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_bool)
 
 test_018c_patch_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_int)
 
 test_018d_patch_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_float)
 
 test_019a_post_submodel_element_by_path_submodel_repo (AasHttpClient client)
 
 test_019b_post_submodel_element_by_path_submodel_repo (AasHttpClient client)
 
 test_020b_encoded_ids (AasHttpClient client)
 
 test_021_post_file_by_path_submodel_repo (AasHttpClient client)
 
 test_022_get_file_content_by_path_submodel_repo (AasHttpClient client)
 
 test_023_put_file_content_by_path_submodel_repo (AasHttpClient client)
 
 test_024_delete_file_content_by_path_submodel_repo (AasHttpClient client)
 
 test_025_get_thumbnail_aas_repository (AasHttpClient client)
 
 test_026_put_thumbnail_aas_repository (AasHttpClient client)
 
 test_027_get_thumbnail_aas_repository (AasHttpClient client)
 
 test_028_delete_thumbnail_aas_repository (AasHttpClient client)
 
 test_028a_put_thumbnail_aas_repository_stream (AasHttpClient client)
 
 test_029_get_all_submodel_references_aas_repository (AasHttpClient client)
 
 test_030_post_submodel_reference_aas_repository (AasHttpClient client)
 
 test_031_delete_submodel_reference_by_id_aas_repository (AasHttpClient client)
 
 test_032_put_submodel_element_by_path_submodel_repo (AasHttpClient client, model.Property shared_sme_string)
 
 test_033a_get_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_string)
 
 test_033b_get_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_int)
 
 test_033c_get_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_float)
 
 test_033d_get_submodel_element_by_path_value_only_submodel_repo (AasHttpClient client, model.Property shared_sme_bool)
 
 test_034_get_submodel_by_id_value_only (AasHttpClient client, model.Submodel shared_sm)
 
 test_035_patch_submodel_by_id_value_only (AasHttpClient client, model.Submodel shared_sm, model.Property shared_sme_string, model.Property shared_sme_int, model.Property shared_sme_float)
 
 test_036_get_submodel_by_id_metadata (AasHttpClient client, model.Submodel shared_sm)
 
 test_098_delete_asset_administration_shell_by_id (AasHttpClient client)
 
 test_099a_delete_submodel_by_id (AasHttpClient client)
 
 test_099b_delete_submodel_by_id (AasHttpClient client)
 

Variables

 logger = logging.getLogger(__name__)
 
list JAVA_SERVER_PORTS = [8075]
 
list PYTHON_SERVER_PORTS = [5080, 80]
 
list DOTNET_SERVER_PORTS = [5043]
 
str AIMC_SM_ID = "https://fluid40.de/ids/sm/7644_4034_2556_2369"
 
str SM_ID = "fluid40/sm_http_client_unit_tests"
 
str SHELL_ID = "fluid40/aas_http_client_unit_tests"
 
list CONFIG_FILES
 

Function Documentation

◆ client()

AasHttpClient tests.test_client.client (   request)

Definition at line 41 of file test_client.py.

◆ shared_aas()

model.AssetAdministrationShell tests.test_client.shared_aas ( model.Submodel  shared_sm)

Definition at line 108 of file test_client.py.

◆ shared_sm()

model.Submodel tests.test_client.shared_sm ( )

Definition at line 103 of file test_client.py.

◆ shared_sme_bool()

model.Property tests.test_client.shared_sme_bool ( )

Definition at line 78 of file test_client.py.

◆ shared_sme_collection()

model.SubmodelElementCollection tests.test_client.shared_sme_collection ( )

Definition at line 93 of file test_client.py.

◆ shared_sme_float()

model.Property tests.test_client.shared_sme_float ( )

Definition at line 88 of file test_client.py.

◆ shared_sme_int()

model.Property tests.test_client.shared_sme_int ( )

Definition at line 83 of file test_client.py.

◆ shared_sme_string()

model.Property tests.test_client.shared_sme_string ( )

Definition at line 73 of file test_client.py.

◆ test_000a_create_client_by_url()

tests.test_client.test_000a_create_client_by_url ( AasHttpClient  client)

Definition at line 117 of file test_client.py.

◆ test_000b_create_client_by_dict()

tests.test_client.test_000b_create_client_by_dict ( AasHttpClient  client)

Definition at line 122 of file test_client.py.

◆ test_001a_connect()

tests.test_client.test_001a_connect ( AasHttpClient  client)

Definition at line 132 of file test_client.py.

◆ test_001b_delete_all_asset_administration_shells()

tests.test_client.test_001b_delete_all_asset_administration_shells ( AasHttpClient  client)

Definition at line 135 of file test_client.py.

◆ test_001c_delete_all_submodels()

tests.test_client.test_001c_delete_all_submodels ( AasHttpClient  client)

Definition at line 161 of file test_client.py.

◆ test_002_get_all_asset_administration_shells()

tests.test_client.test_002_get_all_asset_administration_shells ( AasHttpClient  client)

Definition at line 187 of file test_client.py.

◆ test_003_post_asset_administration_shell()

tests.test_client.test_003_post_asset_administration_shell ( AasHttpClient  client,
model.AssetAdministrationShell  shared_aas 
)

Definition at line 196 of file test_client.py.

◆ test_004a_get_asset_administration_shell_by_id()

tests.test_client.test_004a_get_asset_administration_shell_by_id ( AasHttpClient  client,
model.AssetAdministrationShell  shared_aas 
)

Definition at line 220 of file test_client.py.

◆ test_004b_get_asset_administration_shell_by_id()

tests.test_client.test_004b_get_asset_administration_shell_by_id ( AasHttpClient  client)

Definition at line 235 of file test_client.py.

◆ test_005a_put_asset_administration_shell_by_id()

tests.test_client.test_005a_put_asset_administration_shell_by_id ( AasHttpClient  client,
model.AssetAdministrationShell  shared_aas 
)

Definition at line 243 of file test_client.py.

◆ test_005b_put_asset_administration_shell_by_id()

tests.test_client.test_005b_put_asset_administration_shell_by_id ( AasHttpClient  client,
model.AssetAdministrationShell  shared_aas 
)

Definition at line 288 of file test_client.py.

◆ test_006_get_asset_administration_shell_by_id_reference_aas_repository()

tests.test_client.test_006_get_asset_administration_shell_by_id_reference_aas_repository ( AasHttpClient  client)

Definition at line 327 of file test_client.py.

◆ test_007_get_submodel_by_id_aas_repository()

tests.test_client.test_007_get_submodel_by_id_aas_repository ( AasHttpClient  client)

Definition at line 348 of file test_client.py.

◆ test_008_get_all_submodels()

tests.test_client.test_008_get_all_submodels ( AasHttpClient  client)

Definition at line 363 of file test_client.py.

◆ test_009a_post_submodel()

tests.test_client.test_009a_post_submodel ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 372 of file test_client.py.

◆ test_009b_post_submodel()

tests.test_client.test_009b_post_submodel ( AasHttpClient  client)

Definition at line 391 of file test_client.py.

◆ test_010_get_submodel_by_id_aas_repository()

tests.test_client.test_010_get_submodel_by_id_aas_repository ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 411 of file test_client.py.

◆ test_011a_get_submodel_by_id()

tests.test_client.test_011a_get_submodel_by_id ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 433 of file test_client.py.

◆ test_011b_get_submodel_by_id()

tests.test_client.test_011b_get_submodel_by_id ( AasHttpClient  client)

Definition at line 448 of file test_client.py.

◆ test_011c_get_submodel_by_id()

tests.test_client.test_011c_get_submodel_by_id ( AasHttpClient  client)

Definition at line 456 of file test_client.py.

◆ test_011d_get_submodel_by_id()

tests.test_client.test_011d_get_submodel_by_id ( AasHttpClient  client)

Definition at line 471 of file test_client.py.

◆ test_012_patch_submodel_by_id()

tests.test_client.test_012_patch_submodel_by_id ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 487 of file test_client.py.

◆ test_013_put_submodel_by_id_aas_repository()

tests.test_client.test_013_put_submodel_by_id_aas_repository ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 526 of file test_client.py.

◆ test_014_put_submodels_by_id()

tests.test_client.test_014_put_submodels_by_id ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 570 of file test_client.py.

◆ test_015_get_all_submodel_elements_submodel_repository()

tests.test_client.test_015_get_all_submodel_elements_submodel_repository ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 607 of file test_client.py.

◆ test_016a_post_submodel_element_submodel_repo()

tests.test_client.test_016a_post_submodel_element_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_string 
)

Definition at line 621 of file test_client.py.

◆ test_016b_post_submodel_element_submodel_repo()

tests.test_client.test_016b_post_submodel_element_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_bool 
)

Definition at line 648 of file test_client.py.

◆ test_016c_post_submodel_element_submodel_repo()

tests.test_client.test_016c_post_submodel_element_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_int 
)

Definition at line 675 of file test_client.py.

◆ test_016d_post_submodel_element_submodel_repo()

tests.test_client.test_016d_post_submodel_element_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_float 
)

Definition at line 702 of file test_client.py.

◆ test_017a_get_submodel_element_by_path_submodel_repo()

tests.test_client.test_017a_get_submodel_element_by_path_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_string 
)

Definition at line 729 of file test_client.py.

◆ test_017b_get_submodel_element_by_path_submodel_repo()

tests.test_client.test_017b_get_submodel_element_by_path_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_bool 
)

Definition at line 748 of file test_client.py.

◆ test_017c_get_submodel_element_by_path_submodel_repo()

tests.test_client.test_017c_get_submodel_element_by_path_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_int 
)

Definition at line 767 of file test_client.py.

◆ test_017d_get_submodel_element_by_path_submodel_repo()

tests.test_client.test_017d_get_submodel_element_by_path_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_float 
)

Definition at line 786 of file test_client.py.

◆ test_018a_patch_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_018a_patch_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_string 
)

Definition at line 805 of file test_client.py.

◆ test_018b_patch_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_018b_patch_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_bool 
)

Definition at line 841 of file test_client.py.

◆ test_018c_patch_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_018c_patch_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_int 
)

Definition at line 877 of file test_client.py.

◆ test_018d_patch_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_018d_patch_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_float 
)

Definition at line 913 of file test_client.py.

◆ test_019a_post_submodel_element_by_path_submodel_repo()

tests.test_client.test_019a_post_submodel_element_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 949 of file test_client.py.

◆ test_019b_post_submodel_element_by_path_submodel_repo()

tests.test_client.test_019b_post_submodel_element_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 988 of file test_client.py.

◆ test_020b_encoded_ids()

tests.test_client.test_020b_encoded_ids ( AasHttpClient  client)

Definition at line 1038 of file test_client.py.

◆ test_021_post_file_by_path_submodel_repo()

tests.test_client.test_021_post_file_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 1052 of file test_client.py.

◆ test_022_get_file_content_by_path_submodel_repo()

tests.test_client.test_022_get_file_content_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 1087 of file test_client.py.

◆ test_023_put_file_content_by_path_submodel_repo()

tests.test_client.test_023_put_file_content_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 1107 of file test_client.py.

◆ test_024_delete_file_content_by_path_submodel_repo()

tests.test_client.test_024_delete_file_content_by_path_submodel_repo ( AasHttpClient  client)

Definition at line 1140 of file test_client.py.

◆ test_025_get_thumbnail_aas_repository()

tests.test_client.test_025_get_thumbnail_aas_repository ( AasHttpClient  client)

Definition at line 1168 of file test_client.py.

◆ test_026_put_thumbnail_aas_repository()

tests.test_client.test_026_put_thumbnail_aas_repository ( AasHttpClient  client)

Definition at line 1187 of file test_client.py.

◆ test_027_get_thumbnail_aas_repository()

tests.test_client.test_027_get_thumbnail_aas_repository ( AasHttpClient  client)

Definition at line 1207 of file test_client.py.

◆ test_028_delete_thumbnail_aas_repository()

tests.test_client.test_028_delete_thumbnail_aas_repository ( AasHttpClient  client)

Definition at line 1226 of file test_client.py.

◆ test_028a_put_thumbnail_aas_repository_stream()

tests.test_client.test_028a_put_thumbnail_aas_repository_stream ( AasHttpClient  client)

Definition at line 1246 of file test_client.py.

◆ test_029_get_all_submodel_references_aas_repository()

tests.test_client.test_029_get_all_submodel_references_aas_repository ( AasHttpClient  client)

Definition at line 1280 of file test_client.py.

◆ test_030_post_submodel_reference_aas_repository()

tests.test_client.test_030_post_submodel_reference_aas_repository ( AasHttpClient  client)

Definition at line 1294 of file test_client.py.

◆ test_031_delete_submodel_reference_by_id_aas_repository()

tests.test_client.test_031_delete_submodel_reference_by_id_aas_repository ( AasHttpClient  client)

Definition at line 1320 of file test_client.py.

◆ test_032_put_submodel_element_by_path_submodel_repo()

tests.test_client.test_032_put_submodel_element_by_path_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_string 
)

Definition at line 1340 of file test_client.py.

◆ test_033a_get_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_033a_get_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_string 
)

Definition at line 1378 of file test_client.py.

◆ test_033b_get_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_033b_get_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_int 
)

Definition at line 1401 of file test_client.py.

◆ test_033c_get_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_033c_get_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_float 
)

Definition at line 1424 of file test_client.py.

◆ test_033d_get_submodel_element_by_path_value_only_submodel_repo()

tests.test_client.test_033d_get_submodel_element_by_path_value_only_submodel_repo ( AasHttpClient  client,
model.Property  shared_sme_bool 
)

Definition at line 1447 of file test_client.py.

◆ test_034_get_submodel_by_id_value_only()

tests.test_client.test_034_get_submodel_by_id_value_only ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 1497 of file test_client.py.

◆ test_035_patch_submodel_by_id_value_only()

tests.test_client.test_035_patch_submodel_by_id_value_only ( AasHttpClient  client,
model.Submodel  shared_sm,
model.Property  shared_sme_string,
model.Property  shared_sme_int,
model.Property  shared_sme_float 
)

Definition at line 1529 of file test_client.py.

◆ test_036_get_submodel_by_id_metadata()

tests.test_client.test_036_get_submodel_by_id_metadata ( AasHttpClient  client,
model.Submodel  shared_sm 
)

Definition at line 1577 of file test_client.py.

◆ test_098_delete_asset_administration_shell_by_id()

tests.test_client.test_098_delete_asset_administration_shell_by_id ( AasHttpClient  client)

Definition at line 1599 of file test_client.py.

◆ test_099a_delete_submodel_by_id()

tests.test_client.test_099a_delete_submodel_by_id ( AasHttpClient  client)

Definition at line 1617 of file test_client.py.

◆ test_099b_delete_submodel_by_id()

tests.test_client.test_099b_delete_submodel_by_id ( AasHttpClient  client)

Definition at line 1635 of file test_client.py.

Variable Documentation

◆ AIMC_SM_ID

str tests.test_client.AIMC_SM_ID = "https://fluid40.de/ids/sm/7644_4034_2556_2369"

Definition at line 23 of file test_client.py.

◆ CONFIG_FILES

list tests.test_client.CONFIG_FILES
Initial value:
1= [
2 "./tests/server_configs/test_java_server_config.json",
3 "./tests/server_configs/test_java_server_alias_config.json",
4 "./tests/server_configs/test_dotnet_server_config.json",
5 "./tests/server_configs/test_python_server_config.json"
6]

Definition at line 29 of file test_client.py.

◆ DOTNET_SERVER_PORTS

list tests.test_client.DOTNET_SERVER_PORTS = [5043]

Definition at line 21 of file test_client.py.

◆ JAVA_SERVER_PORTS

list tests.test_client.JAVA_SERVER_PORTS = [8075]

Definition at line 19 of file test_client.py.

◆ logger

tests.test_client.logger = logging.getLogger(__name__)

Definition at line 17 of file test_client.py.

◆ PYTHON_SERVER_PORTS

list tests.test_client.PYTHON_SERVER_PORTS = [5080, 80]

Definition at line 20 of file test_client.py.

◆ SHELL_ID

str tests.test_client.SHELL_ID = "fluid40/aas_http_client_unit_tests"

Definition at line 25 of file test_client.py.

◆ SM_ID

str tests.test_client.SM_ID = "fluid40/sm_http_client_unit_tests"

Definition at line 24 of file test_client.py.