Skip to content

Commit

Permalink
[JENKINS-27268] Fix tests after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
amuniz committed Jan 28, 2016
1 parent 262cd1f commit 317d788
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/cli/CreateNodeCommandTest.java
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/cli/DeleteNodeCommandTest.java
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/cli/GetNodeCommandTest.java
Expand Up @@ -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());
}
Expand Down
4 changes: 2 additions & 2 deletions test/src/test/java/hudson/cli/OnlineNodeCommandTest.java
Expand Up @@ -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 {
Expand All @@ -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."));

}

Expand Down
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/cli/UpdateNodeCommandTest.java
Expand Up @@ -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());
}
Expand Down
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/model/ComputerTest.java
Expand Up @@ -84,7 +84,7 @@ public void testProhibitRenameOverExistingNode() throws Exception {
} 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"));
}
}
}

0 comments on commit 317d788

Please sign in to comment.