Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new unit-test for snap and route modules #607

Open
wants to merge 1 commit into
base: dev-collection
Choose a base branch
from

Conversation

vivekpandeyibm
Copy link
Contributor

1: Add new test file for snap module unit test
2: Add new test file for route module unit test

Output:

tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_with_destination 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_with_net 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_calculate_network_address_with_prefix 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_calculate_network_address_with_netmask 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_flush 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_check_destination_in_routing_table_found 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_valid_cidr 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_no_slash 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_check_destination_in_routing_table_not_found 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_invalid_cidr 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_failure 
[gw1] [ 75%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_with_net 
[gw0] [ 76%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_flush 
[gw9] [ 76%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_build_route_command_with_destination 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_single_entry 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_run_route_command_failure 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_success 
tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_run_route_command_success 
[gw3] [ 77%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_calculate_network_address_with_netmask 
[gw11] [ 78%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_calculate_network_address_with_prefix 
[gw6] [ 78%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_check_destination_in_routing_table_found 
[gw2] [ 79%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_failure 
[gw5] [ 80%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_invalid_cidr 
[gw8] [ 80%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_no_slash 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_command_failed 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_build_snap_command_hacmp 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_failed 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_file_system_info 
[gw7] [ 81%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_check_destination_in_routing_table_not_found 
[gw4] [ 82%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_normalize_route_entry_valid_cidr 
[gw10] [ 82%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_single_entry 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_nothing_to_clean 
[gw1] [ 83%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_run_route_command_failure 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_all_info 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_collects_dump 
[gw0] [ 84%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_run_route_command_success 
[gw9] [ 84%] PASSED tests/unit/plugins/modules/test_route.py::TestRouteCommandFunctions::test_parse_routing_table_success 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_successfull 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_hacmp 
[gw11] [ 85%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_build_snap_command_hacmp 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_hardware_info 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_live_kernel 
tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_multiple_params  
[gw3] [ 86%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_command_failed 
[gw2] [ 86%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_file_system_info 
[gw6] [ 87%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_failed 
[gw5] [ 89%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_collects_dump 
[gw4] [ 89%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_run_snap_command_with_expect_successfull 
[gw10] [ 90%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_hacmp 
[gw7] [ 91%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_all_info 
[gw0] [ 91%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_live_kernel 
[gw1] [ 92%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_hardware_info 
tests/unit/plugins/modules/test_user.py::TestCreateUser::test_success_create_user_with_password 
[gw9] [ 93%] PASSED tests/unit/plugins/modules/test_snap.py::TestSnapCommand::test_snap_general_option_multiple_params  ``` 

@vivekpandeyibm vivekpandeyibm self-assigned this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant