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
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
..
fixtures
hardware Fix AIX processor facts and add unit test (#78223) 2 years ago
network Prefer unittest.mock over mock. (#77886) 2 years ago
other Prefer unittest.mock over mock. (#77886) 2 years ago
system Added Kylin Linux Advanced Server Support (#78232) 2 years ago
virtual
__init__.py
base.py Prefer unittest.mock over mock. (#77886) 2 years ago
test_ansible_collector.py Prefer unittest.mock over mock. (#77886) 2 years ago
test_collector.py
test_collectors.py Prefer unittest.mock over mock. (#77886) 2 years ago
test_date_time.py
test_facts.py Prefer unittest.mock over mock. (#77886) 2 years ago
test_sysctl.py Prefer unittest.mock over mock. (#77886) 2 years ago
test_timeout.py
test_utils.py Prefer unittest.mock over mock. (#77886) 2 years ago