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

◆ shared_aas()

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

Definition at line 105 of file test_client.py.

◆ shared_sm()

model.Submodel tests.test_client.shared_sm ( )

Definition at line 100 of file test_client.py.

◆ shared_sme_bool()

model.Property tests.test_client.shared_sme_bool ( )

Definition at line 75 of file test_client.py.

◆ shared_sme_collection()

model.SubmodelElementCollection tests.test_client.shared_sme_collection ( )

Definition at line 90 of file test_client.py.

◆ shared_sme_float()

model.Property tests.test_client.shared_sme_float ( )

Definition at line 85 of file test_client.py.

◆ shared_sme_int()

model.Property tests.test_client.shared_sme_int ( )

Definition at line 80 of file test_client.py.

◆ shared_sme_string()

model.Property tests.test_client.shared_sme_string ( )

Definition at line 70 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 114 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 119 of file test_client.py.

◆ test_001a_connect()

tests.test_client.test_001a_connect ( AasHttpClient  client)

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

◆ test_001c_delete_all_submodels()

tests.test_client.test_001c_delete_all_submodels ( AasHttpClient  client)

Definition at line 158 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 184 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 193 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 217 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 232 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 240 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 285 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 324 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 345 of file test_client.py.

◆ test_008_get_all_submodels()

tests.test_client.test_008_get_all_submodels ( AasHttpClient  client)

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

◆ test_009b_post_submodel()

tests.test_client.test_009b_post_submodel ( AasHttpClient  client)

Definition at line 388 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 408 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 430 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 445 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 453 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 468 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 484 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 523 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 567 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 604 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 618 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 645 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 672 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 699 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 726 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 745 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 764 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 783 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 802 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 838 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 874 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 910 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 946 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 985 of file test_client.py.

◆ test_020b_encoded_ids()

tests.test_client.test_020b_encoded_ids ( AasHttpClient  client)

Definition at line 1035 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 1049 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 1084 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 1104 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 1137 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 1165 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 1182 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 1202 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 1221 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 1241 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 1255 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 1281 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 1301 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 1339 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 1362 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 1385 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 1408 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 1458 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 1490 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 1538 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 1560 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 1578 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 1596 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.yml",
3 "./tests/server_configs/test_dotnet_server_config.yml",
4 "./tests/server_configs/test_python_server_config.yml"
5]

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.