waft.framework_unit_tests.test_configuration.test_config_writer module¶
- class waft.framework_unit_tests.test_configuration.test_config_writer.TestConfigWriterAgentConfiguration¶
Bases:
objectTest agent configuration operations.
- test_agent_config_persists_across_reads(temp_config_file)¶
Test that agent config persists when config is reloaded.
- test_remove_agent_config(temp_config_file)¶
Test removing agent configuration from a system.
- test_remove_agent_config_nonexistent_system(temp_config_file)¶
Test that removing agent config from nonexistent system raises error.
- test_remove_agent_config_reverts_to_ssh(temp_config_file)¶
Test that removing agent config reverts HTTP client to SSH.
- test_remove_agent_config_without_agent(temp_config_file)¶
Test removing agent config from system that doesn’t have one.
- test_set_agent_config_custom_port(temp_config_file)¶
Test setting agent config with custom port.
- test_set_agent_config_new_system(temp_config_file)¶
Test setting agent config on a system without existing agent config.
- test_set_agent_config_nonexistent_system(temp_config_file)¶
Test that setting agent config on nonexistent system raises error.
- test_set_agent_config_preserves_ssh_client(temp_config_file)¶
Test that setting agent config changes SSH client to HTTP.
- test_set_agent_config_updates_existing(temp_config_file)¶
Test that setting agent config updates existing config.
- test_set_agent_config_with_proxy_keeps_ssh(temp_config_file)¶
Test that setting agent config on system with proxy keeps SSH client.
- 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.TestConfigWriterForceOperations¶
Bases:
objectTest force flag operations.
- test_add_proxy_force_replaces_existing(temp_config_file)¶
Test that add_proxy with force=True replaces existing proxy.
- test_remove_proxy_force_when_in_use(temp_config_file)¶
Test that remove_proxy with force=True removes proxy even when systems use it.
- test_remove_system_force_with_vm_hostname(temp_config_file)¶
Test that remove_system with force=True removes VM system with hostname.
- 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.TestConfigWriterSaveSystem¶
Bases:
objectTest save_system operations.
- test_save_system_new_system(temp_config_file)¶
Test saving a new system.
- test_save_system_updates_existing(temp_config_file)¶
Test that save_system updates an existing system.
- test_save_system_with_proxy_details(temp_config_file)¶
Test saving a system with proxy details creates the 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.TestConfigWriterSystemWithProxy¶
Bases:
objectTest system operations involving proxies.
- test_add_system_with_invalid_proxy_raises_error(temp_config_file)¶
Test that adding system with non-existent proxy raises error.
- test_add_system_with_valid_proxy(temp_config_file)¶
Test adding a system with a valid proxy reference.
- test_add_vm_system_with_invalid_proxy_raises_error(temp_config_file)¶
Test that adding VM system with non-existent proxy raises error.
- 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.