waft.framework_unit_tests.test_configuration.test_config_writer module¶
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterErrorConditions¶
Bases:
objectTest various error conditions and edge cases.
- test_remove_system_nonexistent_raises_error(temp_config_file)¶
Test that removing non-existent system raises RuntimeError.
- test_validate_system_existence_system_name_exists(temp_config_file)¶
Test _validate_system_existence with existing system name.
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterGroups¶
Bases:
objectTest group operations.
- test_add_group_duplicate_name_raises_error(temp_config_file)¶
Test that adding group with duplicate name raises RuntimeError.
- test_add_group_empty_systems_raises_error(temp_config_file)¶
Test that adding group with empty systems list raises ValueError.
- test_add_group_multiple_systems(temp_config_file)¶
Test adding group with multiple systems.
- test_add_group_nonexistent_system_raises_error(temp_config_file)¶
Test that adding group with non-existent system raises RuntimeError.
- test_add_group_success(temp_config_file)¶
Test adding a new group successfully.
- test_remove_group_nonexistent_raises_error(temp_config_file)¶
Test that removing non-existent group raises RuntimeError.
- test_remove_group_success(temp_config_file)¶
Test removing an existing group.
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterProxies¶
Bases:
objectTest proxy-related operations.
- test_add_proxy_duplicate_hostname_raises_error(temp_config_file)¶
Test that adding proxy with duplicate hostname raises RuntimeError.
- test_add_proxy_duplicate_name_raises_error(temp_config_file)¶
Test that adding proxy with duplicate name raises RuntimeError.
- test_add_proxy_success(temp_config_file)¶
Test adding a new proxy successfully.
- test_remove_proxy_nonexistent_raises_error(temp_config_file)¶
Test that removing non-existent proxy raises RuntimeError.
- test_remove_proxy_success(temp_config_file)¶
Test removing an existing proxy.
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterSystemEditing¶
Bases:
objectTest system editing operations.
- test_edit_system_all_allowed_fields(temp_config_file)¶
Test editing all allowed fields.
- test_edit_system_nonexistent_raises_error(temp_config_file)¶
Test that editing non-existent system raises RuntimeError.
- test_edit_system_persistence(temp_config_file)¶
Test that edited config data persists across ConfigWriter instances.
- test_edit_system_single_field(temp_config_file)¶
Test editing a single system field.
- test_edit_system_success(temp_config_file)¶
Test editing system fields successfully.
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterSystems¶
Bases:
objectTest system-related operations.
- test_delete_system_from_config(temp_config_file)¶
Test that the method to delete a system from the config file works
- test_write_system_to_config(temp_config_file)¶
Test that we can properly write a new system to the config file
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterVMSystems¶
Bases:
objectTest VM system operations.
- test_add_vm_system_duplicate_name_raises_error(temp_config_file)¶
Test that adding VM with duplicate name raises RuntimeError.
- test_add_vm_system_success(temp_config_file)¶
Test adding a VM system successfully.
- test_add_vm_system_with_auto_delete_false(temp_config_file)¶
Test adding VM system with auto_delete=False.
- waft.framework_unit_tests.test_configuration.test_config_writer.temp_config_file(tmp_path: Path)¶
Create a temporary config file for testing.