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 Handle Slackware OS version strings containing a plus (“+”) (#68142) 4 years ago
hardware Fix AIX processor facts and add unit test (#78223) 2 years ago
network Prefer unittest.mock over mock. (#77886) 3 years ago
other Prefer unittest.mock over mock. (#77886) 3 years ago
system Added Kylin Linux Advanced Server Support (#78232) 2 years ago
virtual check /.dockerenv and /.dockerinit to guess a dockercontainer (#74349) 3 years ago
__init__.py Facts Timeout was not settable via ansible.cfg 8 years ago
base.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_ansible_collector.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_collector.py Avoid deprecated TestCase functions in unit tests. (#76678) 3 years ago
test_collectors.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_date_time.py Add epoch_int in date_time facts (#73822) 4 years ago
test_facts.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_sysctl.py Prefer unittest.mock over mock. (#77886) 3 years ago
test_timeout.py Clean up unit test boilerplate. 4 years ago
test_utils.py Prefer unittest.mock over mock. (#77886) 3 years ago