Search in sources :

Example 1 with ScriptResult

use of org.jenkinsci.test.acceptance.plugins.scriptler.ScriptResult in project acceptance-test-harness by jenkinsci.

the class ScriptlerPluginTest method run_on_all_slaves.

@Test
public void run_on_all_slaves() throws Exception {
    Slave slaveA = slaves.install(jenkins).get();
    Slave slaveB = slaves.install(jenkins).get();
    Script script = scriptler.upload(SIMPLE_SCRIPT);
    ScriptResult output = script.runOnAllSlaves();
    assertThat(output.output(jenkins), nullValue());
    assertThat(output.output(slaveA), equalTo("Hello world!"));
    assertThat(output.output(slaveB), equalTo("Hello world!"));
}
Also used : ScriptResult(org.jenkinsci.test.acceptance.plugins.scriptler.ScriptResult) Script(org.jenkinsci.test.acceptance.plugins.scriptler.Script) Slave(org.jenkinsci.test.acceptance.po.Slave) AbstractJUnitTest(org.jenkinsci.test.acceptance.junit.AbstractJUnitTest) Test(org.junit.Test)

Aggregations

AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)1 Script (org.jenkinsci.test.acceptance.plugins.scriptler.Script)1 ScriptResult (org.jenkinsci.test.acceptance.plugins.scriptler.ScriptResult)1 Slave (org.jenkinsci.test.acceptance.po.Slave)1 Test (org.junit.Test)1