sushy-tools/sushy_tools/tests/unit/emulator
François Rigault 6f7238135e Return an integer value for Cores and Threads
Clients like Ironic Redfish inspector expect an integer value for
Cores and Threads. We do our best to return an integer value, we also
provide a default of "1" in case none is found.

Current logic expects the number of threads and cores to be present
in the domain, but this is not necessarily the case (test case
provided). We also can return a lot of information even when the
domain is not active, so we do just that.

Story: 2008743
Task: 42100

Change-Id: Id702ca2d7c5965217f348fc0931df0b0b1e57da8
2021-03-24 13:21:23 +01:00
..
resources Return an integer value for Cores and Threads 2021-03-24 13:21:23 +01:00
__init__.py Add unit tests for emulator 2018-03-26 15:59:15 +03:00
domain-q35.xml Fix virtual media with q35 machines 2020-10-30 16:11:51 +01:00
domain-sata.xml Support non-ide virtual media buses 2020-07-02 09:18:52 -07:00
domain-scsi.xml Support non-ide virtual media buses 2020-07-02 09:18:52 -07:00
domain.xml Add configurable libvirt firmware 2019-02-12 15:16:47 +01:00
domain_bios.xml Add BIOS resource support 2018-07-25 19:51:13 +03:00
domain_boot_disk.xml Fix reading/setting libvirt domain boot device 2019-11-25 18:42:25 +01:00
domain_boot_network.xml Fix reading/setting libvirt domain boot device 2019-11-25 18:42:25 +01:00
domain_boot_os.xml Fix reading/setting libvirt domain boot device 2019-11-25 18:42:25 +01:00
domain_metadata.xml Add BIOS resource support 2018-07-25 19:51:13 +03:00
domain_nics.xml Support EthernetInterface resource in the emulator 2018-08-16 23:01:28 +03:00
domain_processors.xml Adding basic support for processors schema 2020-12-16 10:01:49 +01:00
domain_processors_notopology.xml Return an integer value for Cores and Threads 2021-03-24 13:21:23 +01:00
domain_simple_storage.xml Add Simple Storage resource support 2019-08-06 15:14:37 +05:30
pool.xml Add `get/set_boot_image` to libvirt driver 2019-07-02 16:13:05 +02:00
test_main.py Get rid of Resources cache, store resources on the Application 2020-08-06 12:51:00 +02:00
test_memoize.py Make memoize behave better in concurrent environments 2020-12-03 15:24:35 +01:00