All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.galasa.linux.internal.properties.UsernamePool Maven / Gradle / Ivy

The newest version!
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.linux.internal.properties;

import java.util.List;

import org.apache.commons.logging.LogConfigurationException;

import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.linux.LinuxManagerException;

/**
 * Linux User name pool
 * 

* This property indicates what username patterns can be used on the linux image *

*

* The property is:-
*
* linux.image.GALLNX01.username.pool=galasa{0-9}{0-9} * linux.image.username.pool=galasa{0-9}{0-9} *

*

* Can be a comma separated list of static or generated names, eg BOB1,BOB9,BOB5 *

*

* default value is galasa{0-9}{0-9} *

* * * */ public class UsernamePool extends CpsProperties { public static List get(String hostId) throws LinuxManagerException, LogConfigurationException { return getStringListWithDefault(LinuxPropertiesSingleton.cps(), "galasa" + "{0-9}{0-9}", "image", "username.pool", hostId); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy