mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* Add unit tests for parted module
Test the current expected behavior of the module:
- mock parted() and get_device_info()
- Use some of the examples and test the 'script' passed to parted.
- mock check_parted_label() to return false, as if parted version is > 3.1
- assert get_device_info output is correct
Current implementation of the module runs parted several time while going
through all parameters (flags, name, ...). Between calls it uses get_device_info
to update the dictionary. Use check_mode for some of the tests to force module
to go through all the parameters even is dictionary is not updated.
* test_parted.py: add "name" param into expected results
since
|
9 years ago | |
|---|---|---|
| .. | ||
| cli | 9 years ago | |
| contrib | 9 years ago | |
| errors | 9 years ago | |
| executor | 9 years ago | |
| inventory | 9 years ago | |
| inventory_test_data/group_vars | 11 years ago | |
| mock | 9 years ago | |
| module_utils | 9 years ago | |
| modules | 9 years ago | |
| parsing | 9 years ago | |
| playbook | 9 years ago | |
| plugins | 9 years ago | |
| template | 9 years ago | |
| utils | 9 years ago | |
| vars | 9 years ago | |
| __init__.py | 9 years ago | |
| conftest.py | 9 years ago | |
| test_constants.py | 9 years ago | |