Class LxcLoginMock

java.lang.Object
net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator
net.ssehub.easy.producer.scenario_tests.mocks.LxcLoginMock
All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType

public class LxcLoginMock extends net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator
Mocks the instantiator to log into a LXC registry.
Author:
Luca Schulz
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    lxcLogin(String baseDirectory)
    Logging into a registry/remote is not possible with the LXD-API Remotes have to be added manually on the client-system Once trusted remotes can be used and images can be copied or removed Has to be called before any operation can be made, otherwise it will fail.

    Methods inherited from class net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator

    determineTargetPath, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LxcLoginMock

      public LxcLoginMock()
  • Method Details

    • lxcLogin

      public static void lxcLogin(String baseDirectory) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Logging into a registry/remote is not possible with the LXD-API Remotes have to be added manually on the client-system Once trusted remotes can be used and images can be copied or removed Has to be called before any operation can be made, otherwise it will fail. For now this Method sets the system properties to the needed certificates.
      Parameters:
      baseDirectory - the base directory
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException - in case of artifact / parameter problems