use of com.thoughtworks.go.config.BasicEnvironmentConfig in project gocd by gocd.
the class EnvironmentsConfigTest method setUp.
@Before
public void setUp() throws Exception {
configs = new EnvironmentsConfig();
env = new BasicEnvironmentConfig(new CaseInsensitiveString("uat"));
env.addPipeline(new CaseInsensitiveString("deployment"));
env.addAgent("agent-one");
configs.add(env);
}
use of com.thoughtworks.go.config.BasicEnvironmentConfig in project gocd by gocd.
the class UpdateEnvironmentCommandTest method setup.
@Before
public void setup() throws Exception {
initMocks(this);
currentUser = new Username(new CaseInsensitiveString("user"));
cruiseConfig = new GoConfigMother().defaultCruiseConfig();
oldEnvironmentName = new CaseInsensitiveString("Dev");
newEnvironmentName = new CaseInsensitiveString("Test");
oldEnvironmentConfig = new BasicEnvironmentConfig(oldEnvironmentName);
newEnvironmentConfig = new BasicEnvironmentConfig(newEnvironmentName);
result = new HttpLocalizedOperationResult();
md5 = "md5";
cruiseConfig.addEnvironment(oldEnvironmentConfig);
actionFailed = LocalizedMessage.string("ENV_UPDATE_FAILED", oldEnvironmentConfig.name());
}
Aggregations