Skip to content

Commit

Permalink
[JENKINS-38481] 1.11.37 changed com.amazonaws.services.ec2.AmazonEC2#…
Browse files Browse the repository at this point in the history
…createTags return type, so incompatible binary change
  • Loading branch information
ndeloof committed Sep 29, 2016
1 parent 988fb7d commit c8983e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -114,7 +114,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.10.50</version>
<version>1.11.37</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
Expand Down
7 changes: 4 additions & 3 deletions src/test/java/hudson/plugins/ec2/SlaveTemplateUnitTest.java
Expand Up @@ -3,6 +3,7 @@
import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.ec2.AmazonEC2;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.ec2.model.CreateTagsResult;
import com.amazonaws.services.ec2.model.InstanceType;
import com.amazonaws.services.ec2.model.Tag;
import hudson.model.Node;
Expand Down Expand Up @@ -45,8 +46,8 @@ public void tearDown() throws Exception {
public void testUpdateRemoteTags() throws Exception {
AmazonEC2 ec2 = new AmazonEC2Client() {
@Override
public void createTags(com.amazonaws.services.ec2.model.CreateTagsRequest createTagsRequest) {

public CreateTagsResult createTags(com.amazonaws.services.ec2.model.CreateTagsRequest createTagsRequest) {
return null;
}
};

Expand Down Expand Up @@ -80,7 +81,7 @@ protected Object readResolve() {
public void testUpdateRemoteTagsInstanceNotFound() throws Exception {
AmazonEC2 ec2 = new AmazonEC2Client() {
@Override
public void createTags(com.amazonaws.services.ec2.model.CreateTagsRequest createTagsRequest) {
public CreateTagsResult createTags(com.amazonaws.services.ec2.model.CreateTagsRequest createTagsRequest) {
AmazonServiceException e = new AmazonServiceException("Instance not found - InvalidInstanceRequestID.NotFound");
e.setErrorCode("InvalidInstanceRequestID.NotFound");
throw e;
Expand Down

0 comments on commit c8983e4

Please sign in to comment.