Beispiel #1
0
    def set_virt_cpus(self, num: Union[int, str]):
        """
        Setter for the number of virtual CPU cores to assign to the virtual machine.

        :param num: The number of cpu cores.
        """
        utils.set_virt_cpus(self, num)
Beispiel #2
0
def test_set_virt_cpus():
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    test_system = System(test_manager)

    # Act -> These are develishly bad tests. Please spare me the lecture and let my joke in here.
    utils.set_virt_cpus(test_system, 666)

    # Assert
    assert test_system.virt_cpus == 666
Beispiel #3
0
    def set_virt_cpus(self, num):
        """
        Setter for the number of virtual cpus.

        :param num: The number of virtual cpu cores.
        """
        return utils.set_virt_cpus(self, num)
Beispiel #4
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
Beispiel #5
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
Beispiel #6
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)
Beispiel #7
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)