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/module_utils/facts/hardware
zorun a6e671db25
Fix AIX processor facts and add unit test (#78223)
- `processor_count` was erroneously set to the number of cores
- `processor_cores` was erroneously set to the number of threads per core
- `processor_vcpus` and `processor_threads_per_core` were not set
- `processor` was a string, while it's supposed to be a list

Before:

```
"ansible_processor": "PowerPC_POWER7",
"ansible_processor_cores": 4,
"ansible_processor_count": 12,
```

After:

```
"ansible_processor": [
    "PowerPC_POWER7"
],
"ansible_processor_cores": 12,
"ansible_processor_count": 1,
"ansible_processor_threads_per_core": 4,
"ansible_processor_vcpus": 48,
```

Also add a unit test.

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2 years ago
..
__init__.py More statvfs info for mount facts rebase 12073 (#25454) 8 years ago
aix_data.py Fix AIX processor facts and add unit test (#78223) 2 years ago
linux_data.py Fix parsing of device serial number for RHEL8 (#75876) 3 years ago
test_aix_processor.py Fix AIX processor facts and add unit test (#78223) 2 years ago
test_linux.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_linux_get_cpu_info.py introduce fact "ansible_processor_nproc": number of usable vcpus (#66569) 5 years ago
test_sunos_get_uptime_facts.py Clean up unit test boilerplate. 4 years ago