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 39 of file test_client.py.

◆ shared_aas()

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

Definition at line 106 of file test_client.py.

◆ shared_sm()

model.Submodel tests.test_client.shared_sm ( )

Definition at line 101 of file test_client.py.

◆ shared_sme_bool()

model.Property tests.test_client.shared_sme_bool ( )

Definition at line 76 of file test_client.py.

◆ shared_sme_collection()

model.SubmodelElementCollection tests.test_client.shared_sme_collection ( )

Definition at line 91 of file test_client.py.

◆ shared_sme_float()

model.Property tests.test_client.shared_sme_float ( )

Definition at line 86 of file test_client.py.

◆ shared_sme_int()

model.Property tests.test_client.shared_sme_int ( )

Definition at line 81 of file test_client.py.

◆ shared_sme_string()

model.Property tests.test_client.shared_sme_string ( )

Definition at line 71 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 115 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 120 of file test_client.py.

◆ test_001a_connect()

tests.test_client.test_001a_connect ( AasHttpClient  client)

Definition at line 130 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 133 of file test_client.py.

◆ test_001c_delete_all_submodels()

tests.test_client.test_001c_delete_all_submodels ( AasHttpClient  client)

Definition at line 159 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 185 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 194 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 218 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 233 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 241 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 286 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 325 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 346 of file test_client.py.

◆ test_008_get_all_submodels()

tests.test_client.test_008_get_all_submodels ( AasHttpClient  client)

Definition at line 361 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 370 of file test_client.py.

◆ test_009b_post_submodel()

tests.test_client.test_009b_post_submodel ( AasHttpClient  client)

Definition at line 389 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 409 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 431 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 446 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 454 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 469 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 485 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 524 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 568 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 605 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 619 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 646 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 673 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 700 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 727 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 746 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 765 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 784 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 803 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 839 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 875 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 911 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 947 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 986 of file test_client.py.

◆ test_020b_encoded_ids()

tests.test_client.test_020b_encoded_ids ( AasHttpClient  client)

Definition at line 1036 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 1050 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 1085 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 1105 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 1138 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 1166 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 1185 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 1205 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 1224 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 1244 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 1278 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 1292 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 1318 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 1338 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 1376 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 1399 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 1422 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 1445 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 1495 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 1527 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 1575 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 1597 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 1615 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 1633 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 27 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.