Skip to content

Commit

Permalink
[JENKINS-46564] Updated test result
Browse files Browse the repository at this point in the history
  • Loading branch information
fcojfernandez committed Aug 31, 2017
1 parent 3981bb2 commit 9e43932
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/java/plugins/ConfigFileProviderTest.java
Expand Up @@ -27,6 +27,8 @@ public class ConfigFileProviderTest extends AbstractJUnitTest {
private static final String CRED_USR = "fakeUser";
private static final String CRED_PWD = "fakePass";
private static final String SERVER_ID = "fakeServer";
private static final String CUSTOM_CONF_CONTENT = "test_custom";


@Before
public void setup() {
Expand Down Expand Up @@ -97,13 +99,13 @@ public void testCustomConfigFile() {
final CustomConfig customConfig = this.createCustomConfig();
final String jobLog = this.createPipelineAndGetConsole(customConfig);

assertThat(jobLog, containsString("anonymous"));
assertThat(jobLog, containsString(CUSTOM_CONF_CONTENT));
}

private CustomConfig createCustomConfig() {
final CustomConfig customConfig = new ConfigFileProvider(jenkins).addFile(CustomConfig.class);

customConfig.content("echo test_custom");
customConfig.content(CUSTOM_CONF_CONTENT);

customConfig.save();
return customConfig;
Expand Down

0 comments on commit 9e43932

Please sign in to comment.