Beispiel #1
0
    def set_virt_path(self, path: str):
        """
        Setter of the path to the place where the image will be stored.

        :param path: The path to where the image will be stored.
        """
        utils.set_virt_path(self, path)
Beispiel #2
0
def test_set_virt_path():
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    test_system = System(test_manager)
    test_location = "/somerandomfakelocation"

    # Act
    utils.set_virt_path(test_system, test_location)

    # Assert
    assert test_system.virt_path == test_location
Beispiel #3
0
    def set_virt_path(self, path):
        """
        Setter for the virtual path which is used.

        :param path: The path to where the virtual image is stored.
        """
        return utils.set_virt_path(self, path)
Beispiel #4
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)
Beispiel #5
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path, for_system=True)
Beispiel #6
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
Beispiel #7
0
 def set_virt_path(self, path):
     utils.set_virt_path(self, path)
Beispiel #8
0
 def set_virt_path(self, path):
     return utils.set_virt_path(self, path)