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.
ansible/test/units
Guillaume Coré 42ca1ef040 Add unit tests for parted module (#24164)
* 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 78fff751ab, parse_partition_info
fetch the partition name. This commit adds 'name' key and value into
the expected results.
9 years ago
..
cli fixed issue with paths separator and others 9 years ago
contrib test/: PEP8 compliancy (#24803) 9 years ago
errors test/: PEP8 compliancy (#24803) 9 years ago
executor Return code is not very useful to assume a task failed 9 years ago
inventory INI inventory plugin: add documentation about variable types (#25798) 9 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock mock_unfrackpath_noop: handle follow parameter (#26662) 9 years ago
module_utils Consolidate boolean/mk_boolean conversion functions into a single location 9 years ago
modules Add unit tests for parted module (#24164) 9 years ago
parsing metadata and doc generator optimization and fixes 9 years ago
playbook Divided test methods of TestExtendValue class (#22574) 9 years ago
plugins Kc update ip filter (#26566) 9 years ago
template test/: PEP8 compliancy (#24803) 9 years ago
utils test/: PEP8 compliancy (#24803) 9 years ago
vars Fix spelling mistakes (comments only) (#25564) 9 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
conftest.py Fix bugs in ansible-test units command. (#24044) 9 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 9 years ago