Class OpenShiftConfig


  • public final class OpenShiftConfig
    extends Object
    • Constructor Detail

      • OpenShiftConfig

        public OpenShiftConfig()
    • Method Detail

      • url

        public static String url()
      • adminToken

        public static String adminToken()
      • version

        public static String version()
      • namespace

        public static String namespace()
        Note that most likely you want to use {@see NamespaceManager#getNamespace()} which returns actual namespace used by current tests. For example OpenShifts.master() is using {@see NamespaceManager#getNamespace()} to get default namespace for currently running test.
        Returns:
        Returns namespace as defined in xtf.openshift.namespace property
      • useNamespacePerTestCase

        public static boolean useNamespacePerTestCase()
        Returns:
        if property xtf.openshift.namespace.per.testcase is empty or true then returns true otherwise false
      • getNamespaceLengthLimitForUniqueNamespacePerTest

        public static int getNamespaceLengthLimitForUniqueNamespacePerTest()
        Used only if xtf.openshift.namespace.per.testcase=true
        Returns:
        limit on namespace if it's set by -Dxtf.openshift.namespace.per.testcase.length.limit property
      • binaryPath

        public static String binaryPath()
      • binaryUrlChannelPath

        public static String binaryUrlChannelPath()
        Channel configuration for download of OpenShift client from https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/ Channels are: stable, latest, fast, candidate
        Returns:
        channel as configured in xtf.openshift.binary.url.channel property, or default 'stable'
      • isBinaryCacheEnabled

        public static boolean isBinaryCacheEnabled()
      • binaryCachePath

        public static String binaryCachePath()
      • adminUsername

        public static String adminUsername()
      • adminPassword

        public static String adminPassword()
      • adminKubeconfig

        public static String adminKubeconfig()
      • masterUsername

        public static String masterUsername()
      • masterPassword

        public static String masterPassword()
      • masterKubeconfig

        public static String masterKubeconfig()
      • pullSecret

        public static String pullSecret()
      • masterToken

        public static String masterToken()
        Returns:
        For backwards-compatibility reasons, also returns the value of xtf.openshift.token if xtf.openshift.master.token not specified
      • routeDomain

        public static String routeDomain()