提交 317d788e 编写于 作者: A Antonio Muñiz

[JENKINS-27268] Fix tests after renaming

上级 262cd1fa
......@@ -60,7 +60,7 @@ public class CreateNodeCommandTest {
.invoke()
;
assertThat(result.stderr(), containsString("user is missing the Slave/Create permission"));
assertThat(result.stderr(), containsString("user is missing the Agent/Create permission"));
assertThat(result, hasNoStandardOutput());
assertThat(result, failedWith(-1));
}
......
......@@ -62,7 +62,7 @@ public class DeleteNodeCommandTest {
assertThat(result, failedWith(-1));
assertThat(result, hasNoStandardOutput());
assertThat(result.stderr(), containsString("user is missing the Slave/Delete permission"));
assertThat(result.stderr(), containsString("user is missing the Agent/Delete permission"));
}
@Test public void deleteNodeShouldSucceed() throws Exception {
......
......@@ -59,7 +59,7 @@ public class GetNodeCommandTest {
.invokeWithArgs("MySlave")
;
assertThat(result.stderr(), containsString("user is missing the Slave/ExtendedRead permission"));
assertThat(result.stderr(), containsString("user is missing the Agent/ExtendedRead permission"));
assertThat(result, failedWith(-1));
assertThat(result, hasNoStandardOutput());
}
......
......@@ -65,7 +65,7 @@ public class OnlineNodeCommandTest {
assertThat(result, failedWith(1));
assertThat(result, hasNoStandardOutput());
assertThat(result.stderr(), containsString("user is missing the Slave/Connect permission"));
assertThat(result.stderr(), containsString("user is missing the Agent/Connect permission"));
}
@Test public void onlineNodeShouldFailIfNodeDoesNotExist() throws Exception {
......@@ -74,7 +74,7 @@ public class OnlineNodeCommandTest {
.invokeWithArgs("never_created");
assertThat(result, failedWith(1));
assertThat(result, hasNoStandardOutput());
assertThat(result.stderr(), containsString("No such slave \"never_created\" exists."));
assertThat(result.stderr(), containsString("No such agent \"never_created\" exists."));
}
......
......@@ -60,7 +60,7 @@ public class UpdateNodeCommandTest {
.invokeWithArgs("MySlave")
;
assertThat(result.stderr(), containsString("user is missing the Slave/Configure permission"));
assertThat(result.stderr(), containsString("user is missing the Agent/Configure permission"));
assertThat(result, failedWith(-1));
assertThat(result, hasNoStandardOutput());
}
......
......@@ -84,7 +84,7 @@ public class ComputerTest {
} catch (FailingHttpStatusCodeException e) {
assertThat(NOTE, e.getStatusCode(), equalTo(400));
assertThat(NOTE, e.getResponse().getContentAsString(),
containsString("Slave called ‘nodeA’ already exists"));
containsString("Agent called ‘nodeA’ already exists"));
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册