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

Functions

AasHttpClient client ()
 
AasHttpClient client_aas_reg (AasHttpClient client)
 
AasHttpClient client_sm_reg (AasHttpClient client)
 
model.Submodel shared_sm ()
 
model.AssetAdministrationShell shared_aas (model.Submodel shared_sm)
 
dict global_shell_descriptor ()
 
dict global_sm_descriptor ()
 
 test_000a_clean_server (AasHttpClient client, AasHttpClient client_aas_reg, AasHttpClient client_sm_reg)
 
 test_000b_post_assets (AasHttpClient client, model.AssetAdministrationShell shared_aas, model.Submodel shared_sm)
 
 test_001a_get_self_description_shell (AasHttpClient client_aas_reg)
 
 test_001b_get_self_description_sm (AasHttpClient client_sm_reg)
 
 test_002_search (AasHttpClient client_aas_reg)
 
 test_003_get_all_asset_administration_shell_descriptors (AasHttpClient client_aas_reg)
 
 test_004_get_all_submodel_descriptors (AasHttpClient client_sm_reg)
 
 test_005a_get_endpoint (AasHttpClient client, AasHttpClient client_sm_reg)
 
 test_005b_delete_assets (AasHttpClient client, AasHttpClient client_aas_reg, AasHttpClient client_sm_reg)
 
 test_006_post_asset_administration_shell_descriptor (AasHttpClient client_aas_reg, dict global_shell_descriptor)
 
 test_007_get_asset_administration_shell_descriptor_by_id (AasHttpClient client_aas_reg)
 
 test_008_put_asset_administration_shell_descriptor_by_id (AasHttpClient client_aas_reg, dict global_shell_descriptor)
 
 test_009_delete_asset_administration_shell_descriptor_by_id (AasHttpClient client_aas_reg, dict global_shell_descriptor)
 
 test_010_post_submodel_descriptor (AasHttpClient client_sm_reg, dict global_sm_descriptor)
 
 test_011a_delete_all_asset_administration_shell_descriptors (AasHttpClient client_aas_reg)
 
 test_011b_delete_all_submodel_descriptors (AasHttpClient client_sm_reg)
 
 test_011c_post_aas_descriptor (AasHttpClient client_aas_reg, dict global_shell_descriptor, dict global_sm_descriptor)
 
 test_012_get_submodel_descriptor_by_id_through_superpath (AasHttpClient client_aas_reg)
 
 test_013_put_submodel_descriptor_by_id_through_superpath (AasHttpClient client_aas_reg, dict global_sm_descriptor)
 
 test_014_delete_submodel_descriptor_by_id_through_superpath (AasHttpClient client_aas_reg)
 
 test_015_post_submodel_descriptor_through_superpath (AasHttpClient client_aas_reg, dict global_sm_descriptor)
 
 test_016_get_all_submodel_descriptors_through_superpath (AasHttpClient client_aas_reg)
 
 test_017_post_submodel_descriptor (AasHttpClient client_sm_reg, dict global_sm_descriptor)
 
 test_018_get_submodel_descriptor_by_id (AasHttpClient client_sm_reg)
 
 test_019_put_submodel_descriptor_by_id (AasHttpClient client_sm_reg, dict global_sm_descriptor)
 
 test_020_delete_submodel_descriptor_by_id (AasHttpClient client_sm_reg)
 
 test_099_cleanup (AasHttpClient client, AasHttpClient client_aas_reg, AasHttpClient client_sm_reg)
 

Variables

 logger = logging.getLogger(__name__)
 
list JAVA_SERVER_PORTS = [8075]
 
list PYTHON_SERVER_PORTS = [5080, 80]
 
str SM_ID = "fluid40/sm_http_client_unit_tests"
 
str SHELL_ID = "fluid40/aas_http_client_unit_tests"
 
str CONFIG_FILE_ENV = "./tests/server_configs/test_java_server_config.yml"
 
str CONFIG_FILE_AAS_REG_ENV = "./tests/server_configs/test_aas_reg_server_config.yml"
 
str CONFIG_FILE_SM_REG_ENV = "./tests/server_configs/test_sm_reg_server_config.yml"
 
dict shared_shell_descriptor = {}
 
dict shared_sm_descriptor = {}
 

Function Documentation

◆ client()

AasHttpClient tests.test_client_reg.client ( )

Definition at line 26 of file test_client_reg.py.

◆ client_aas_reg()

AasHttpClient tests.test_client_reg.client_aas_reg ( AasHttpClient  client)

Definition at line 45 of file test_client_reg.py.

◆ client_sm_reg()

AasHttpClient tests.test_client_reg.client_sm_reg ( AasHttpClient  client)

Definition at line 60 of file test_client_reg.py.

◆ global_shell_descriptor()

dict tests.test_client_reg.global_shell_descriptor ( )

Definition at line 90 of file test_client_reg.py.

◆ global_sm_descriptor()

dict tests.test_client_reg.global_sm_descriptor ( )

Definition at line 94 of file test_client_reg.py.

◆ shared_aas()

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

Definition at line 80 of file test_client_reg.py.

◆ shared_sm()

model.Submodel tests.test_client_reg.shared_sm ( )

Definition at line 75 of file test_client_reg.py.

◆ test_000a_clean_server()

tests.test_client_reg.test_000a_clean_server ( AasHttpClient  client,
AasHttpClient  client_aas_reg,
AasHttpClient  client_sm_reg 
)

Definition at line 97 of file test_client_reg.py.

◆ test_000b_post_assets()

tests.test_client_reg.test_000b_post_assets ( AasHttpClient  client,
model.AssetAdministrationShell  shared_aas,
model.Submodel  shared_sm 
)

Definition at line 131 of file test_client_reg.py.

◆ test_001a_get_self_description_shell()

tests.test_client_reg.test_001a_get_self_description_shell ( AasHttpClient  client_aas_reg)

Definition at line 141 of file test_client_reg.py.

◆ test_001b_get_self_description_sm()

tests.test_client_reg.test_001b_get_self_description_sm ( AasHttpClient  client_sm_reg)

Definition at line 148 of file test_client_reg.py.

◆ test_002_search()

tests.test_client_reg.test_002_search ( AasHttpClient  client_aas_reg)

Definition at line 155 of file test_client_reg.py.

◆ test_003_get_all_asset_administration_shell_descriptors()

tests.test_client_reg.test_003_get_all_asset_administration_shell_descriptors ( AasHttpClient  client_aas_reg)

Definition at line 181 of file test_client_reg.py.

◆ test_004_get_all_submodel_descriptors()

tests.test_client_reg.test_004_get_all_submodel_descriptors ( AasHttpClient  client_sm_reg)

Definition at line 195 of file test_client_reg.py.

◆ test_005a_get_endpoint()

tests.test_client_reg.test_005a_get_endpoint ( AasHttpClient  client,
AasHttpClient  client_sm_reg 
)

Definition at line 209 of file test_client_reg.py.

◆ test_005b_delete_assets()

tests.test_client_reg.test_005b_delete_assets ( AasHttpClient  client,
AasHttpClient  client_aas_reg,
AasHttpClient  client_sm_reg 
)

Definition at line 232 of file test_client_reg.py.

◆ test_006_post_asset_administration_shell_descriptor()

tests.test_client_reg.test_006_post_asset_administration_shell_descriptor ( AasHttpClient  client_aas_reg,
dict  global_shell_descriptor 
)

Definition at line 255 of file test_client_reg.py.

◆ test_007_get_asset_administration_shell_descriptor_by_id()

tests.test_client_reg.test_007_get_asset_administration_shell_descriptor_by_id ( AasHttpClient  client_aas_reg)

Definition at line 270 of file test_client_reg.py.

◆ test_008_put_asset_administration_shell_descriptor_by_id()

tests.test_client_reg.test_008_put_asset_administration_shell_descriptor_by_id ( AasHttpClient  client_aas_reg,
dict  global_shell_descriptor 
)

Definition at line 281 of file test_client_reg.py.

◆ test_009_delete_asset_administration_shell_descriptor_by_id()

tests.test_client_reg.test_009_delete_asset_administration_shell_descriptor_by_id ( AasHttpClient  client_aas_reg,
dict  global_shell_descriptor 
)

Definition at line 298 of file test_client_reg.py.

◆ test_010_post_submodel_descriptor()

tests.test_client_reg.test_010_post_submodel_descriptor ( AasHttpClient  client_sm_reg,
dict  global_sm_descriptor 
)

Definition at line 326 of file test_client_reg.py.

◆ test_011a_delete_all_asset_administration_shell_descriptors()

tests.test_client_reg.test_011a_delete_all_asset_administration_shell_descriptors ( AasHttpClient  client_aas_reg)

Definition at line 341 of file test_client_reg.py.

◆ test_011b_delete_all_submodel_descriptors()

tests.test_client_reg.test_011b_delete_all_submodel_descriptors ( AasHttpClient  client_sm_reg)

Definition at line 352 of file test_client_reg.py.

◆ test_011c_post_aas_descriptor()

tests.test_client_reg.test_011c_post_aas_descriptor ( AasHttpClient  client_aas_reg,
dict  global_shell_descriptor,
dict  global_sm_descriptor 
)

Definition at line 363 of file test_client_reg.py.

◆ test_012_get_submodel_descriptor_by_id_through_superpath()

tests.test_client_reg.test_012_get_submodel_descriptor_by_id_through_superpath ( AasHttpClient  client_aas_reg)

Definition at line 387 of file test_client_reg.py.

◆ test_013_put_submodel_descriptor_by_id_through_superpath()

tests.test_client_reg.test_013_put_submodel_descriptor_by_id_through_superpath ( AasHttpClient  client_aas_reg,
dict  global_sm_descriptor 
)

Definition at line 399 of file test_client_reg.py.

◆ test_014_delete_submodel_descriptor_by_id_through_superpath()

tests.test_client_reg.test_014_delete_submodel_descriptor_by_id_through_superpath ( AasHttpClient  client_aas_reg)

Definition at line 417 of file test_client_reg.py.

◆ test_015_post_submodel_descriptor_through_superpath()

tests.test_client_reg.test_015_post_submodel_descriptor_through_superpath ( AasHttpClient  client_aas_reg,
dict  global_sm_descriptor 
)

Definition at line 436 of file test_client_reg.py.

◆ test_016_get_all_submodel_descriptors_through_superpath()

tests.test_client_reg.test_016_get_all_submodel_descriptors_through_superpath ( AasHttpClient  client_aas_reg)

Definition at line 447 of file test_client_reg.py.

◆ test_017_post_submodel_descriptor()

tests.test_client_reg.test_017_post_submodel_descriptor ( AasHttpClient  client_sm_reg,
dict  global_sm_descriptor 
)

Definition at line 461 of file test_client_reg.py.

◆ test_018_get_submodel_descriptor_by_id()

tests.test_client_reg.test_018_get_submodel_descriptor_by_id ( AasHttpClient  client_sm_reg)

Definition at line 467 of file test_client_reg.py.

◆ test_019_put_submodel_descriptor_by_id()

tests.test_client_reg.test_019_put_submodel_descriptor_by_id ( AasHttpClient  client_sm_reg,
dict  global_sm_descriptor 
)

Definition at line 477 of file test_client_reg.py.

◆ test_020_delete_submodel_descriptor_by_id()

tests.test_client_reg.test_020_delete_submodel_descriptor_by_id ( AasHttpClient  client_sm_reg)

Definition at line 493 of file test_client_reg.py.

◆ test_099_cleanup()

tests.test_client_reg.test_099_cleanup ( AasHttpClient  client,
AasHttpClient  client_aas_reg,
AasHttpClient  client_sm_reg 
)

Definition at line 505 of file test_client_reg.py.

Variable Documentation

◆ CONFIG_FILE_AAS_REG_ENV

str tests.test_client_reg.CONFIG_FILE_AAS_REG_ENV = "./tests/server_configs/test_aas_reg_server_config.yml"

Definition at line 19 of file test_client_reg.py.

◆ CONFIG_FILE_ENV

str tests.test_client_reg.CONFIG_FILE_ENV = "./tests/server_configs/test_java_server_config.yml"

Definition at line 18 of file test_client_reg.py.

◆ CONFIG_FILE_SM_REG_ENV

str tests.test_client_reg.CONFIG_FILE_SM_REG_ENV = "./tests/server_configs/test_sm_reg_server_config.yml"

Definition at line 20 of file test_client_reg.py.

◆ JAVA_SERVER_PORTS

list tests.test_client_reg.JAVA_SERVER_PORTS = [8075]

Definition at line 12 of file test_client_reg.py.

◆ logger

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

Definition at line 10 of file test_client_reg.py.

◆ PYTHON_SERVER_PORTS

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

Definition at line 13 of file test_client_reg.py.

◆ shared_shell_descriptor

dict tests.test_client_reg.shared_shell_descriptor = {}

Definition at line 22 of file test_client_reg.py.

◆ shared_sm_descriptor

dict tests.test_client_reg.shared_sm_descriptor = {}

Definition at line 23 of file test_client_reg.py.

◆ SHELL_ID

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

Definition at line 16 of file test_client_reg.py.

◆ SM_ID

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

Definition at line 15 of file test_client_reg.py.