Skip to content

Commit

Permalink
Updates to Feign 8.10.0 and MockWebServer 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Cole committed Sep 18, 2015
1 parent 38cac3e commit aa37eaf
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 48 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Version 4.7
* Updates to feign 8.10.0

### Version 4.7
* CLI supports `HTTP_PROXY` and `HTTPS_PROXY` environment variables

Expand Down
8 changes: 4 additions & 4 deletions cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ sourceCompatibility = 1.6
dependencies {
compile project(':denominator-core')
compile 'io.airlift:airline:0.7'
compile 'org.yaml:snakeyaml:1.15'
compile 'org.bouncycastle:bcpkix-jdk15on:1.50'
compile 'org.yaml:snakeyaml:1.16'
compile 'org.bouncycastle:bcpkix-jdk15on:1.51'
// TODO: the following should really only be in the fatJar
compile project(':denominator-dynect')
compile project(':denominator-ultradns')
Expand All @@ -20,9 +20,9 @@ dependencies {
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.github.stefanbirkner:system-rules:1.12.0'
testCompile 'com.github.stefanbirkner:system-rules:1.12.1'
}

// create a self-contained jar that is executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ public Iterator<String> doRun(final DNSApiManager mgr) {
builder.ttl(ttl);
}
final ResourceRecordSet<Map<String, Object>> toAdd = builder.build();
String
cmd =
String cmd =
format(";; in zone %s adding to rrset %s %s values: %s", zoneIdOrName, name, type,
join(',', toAdd.records()));
if (ttl != -1) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.cli;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -18,7 +18,7 @@
public class DataFromInstanceMetadataHookTest {

@Rule
public final MockWebServerRule server = new MockWebServerRule();
public final MockWebServer server = new MockWebServer();
@Rule
public final ExpectedException thrown = ExpectedException.none();

Expand Down
6 changes: 3 additions & 3 deletions clouddns/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ test {

dependencies {
compile project(':denominator-core')
compile 'com.netflix.feign:feign-core:8.7.1'
compile 'com.netflix.feign:feign-gson:8.7.1'
compile 'com.netflix.feign:feign-core:8.9.0-SNAPSHOT'
compile 'com.netflix.feign:feign-gson:8.9.0-SNAPSHOT'
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.google.gson.TypeAdapter;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -22,7 +22,7 @@
public class KeystoneAccessAdapterTest {

@Rule
public final MockWebServerRule server = new MockWebServerRule();
public final MockWebServer server = new MockWebServer();

CloudIdentity client = Feign.builder()
.decoder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.MockWebServer;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
Expand All @@ -28,7 +28,7 @@ static final class Module {

}

private final MockWebServerRule delegate = new MockWebServerRule();
private final MockWebServer delegate = new MockWebServer();
private final String tokenId = "b84f4a37-5126-4603-9521-ccd0665fbde1";
private String tenantId = "123123";
private String username = "jclouds-joe";
Expand Down Expand Up @@ -109,7 +109,7 @@ RecordedRequestAssert assertAuthRequest() throws InterruptedException {
}

void shutdown() throws IOException {
delegate.get().shutdown();
delegate.shutdown();
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies {
compile project(':denominator-model')
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.netflix.feign:feign-core:8.7.1'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
testCompile 'com.netflix.feign:feign-core:8.10.0'
testCompile project(':denominator-model').sourceSets.test.output
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.hook;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.assertj.core.api.Assertions;
import org.junit.Rule;
Expand All @@ -18,7 +18,7 @@
public class InstanceMetadataHookTest {

@Rule
public final MockWebServerRule server = new MockWebServerRule();
public final MockWebServer server = new MockWebServer();
@Rule
public final ExpectedException thrown = ExpectedException.none();

Expand Down
6 changes: 3 additions & 3 deletions designate/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ test {

dependencies {
compile project(':denominator-core')
compile 'com.netflix.feign:feign-core:8.7.1'
compile 'com.netflix.feign:feign-gson:8.7.1'
compile 'com.netflix.feign:feign-core:8.9.0-SNAPSHOT'
compile 'com.netflix.feign:feign-gson:8.9.0-SNAPSHOT'
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.google.gson.TypeAdapter;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -21,7 +21,7 @@
public class KeystoneV2AccessAdapterTest {

@Rule
public final MockWebServerRule server = new MockWebServerRule();
public final MockWebServer server = new MockWebServer();

KeystoneV2 client = Feign.builder()
.decoder(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.designate;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
Expand All @@ -21,7 +21,7 @@

final class MockDesignateServer extends DesignateProvider implements TestRule {

private final MockWebServerRule delegate = new MockWebServerRule();
private final MockWebServer delegate = new MockWebServer();
private final String tokenId = "b84f4a37-5126-4603-9521-ccd0665fbde1";
private String tenantId = "123123";
private String username = "joe";
Expand Down Expand Up @@ -108,7 +108,7 @@ static final class Module {
}

void shutdown() throws IOException {
delegate.get().shutdown();
delegate.shutdown();
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions dynect/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ test {

dependencies {
compile project(':denominator-core')
compile 'com.netflix.feign:feign-core:8.7.1'
compile 'com.netflix.feign:feign-gson:8.7.1'
compile 'com.netflix.feign:feign-core:8.10.0'
compile 'com.netflix.feign:feign-gson:8.10.0'
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
}
6 changes: 3 additions & 3 deletions dynect/src/test/java/denominator/dynect/MockDynECTServer.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.dynect;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
Expand All @@ -21,7 +21,7 @@

final class MockDynECTServer extends DynECTProvider implements TestRule {

private final MockWebServerRule delegate = new MockWebServerRule();
private final MockWebServer delegate = new MockWebServer();
private final String token = "FFFFFFFFFF";
private String customer = "jclouds";
private String username = "joe";
Expand Down Expand Up @@ -93,7 +93,7 @@ RecordedRequestAssert assertSessionRequest() throws InterruptedException {
}

void shutdown() throws IOException {
delegate.get().shutdown();
delegate.shutdown();
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions route53/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ test {

dependencies {
compile project(':denominator-core')
compile 'com.netflix.feign:feign-core:8.7.1'
compile 'com.netflix.feign:feign-sax:8.7.1'
compile 'com.netflix.feign:feign-core:8.9.0-SNAPSHOT'
compile 'com.netflix.feign:feign-sax:8.9.0-SNAPSHOT'
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.route53;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.Rule;
import org.junit.Test;
Expand All @@ -18,7 +18,7 @@
public class InstanceProfileCredentialsProviderTest {

@Rule
public MockWebServerRule server = new MockWebServerRule();
public MockWebServer server = new MockWebServer();

@Test
public void whenInstanceProfileCredentialsInMetadataServiceReturnMapCredentials()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.route53;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
Expand All @@ -20,7 +20,7 @@

final class MockRoute53Server extends Route53Provider implements TestRule {

private final MockWebServerRule delegate = new MockWebServerRule();
private final MockWebServer delegate = new MockWebServer();
private String accessKey = "accessKey";
private String secretKey = "secretKey";
private String token = null;
Expand Down Expand Up @@ -59,7 +59,7 @@ RecordedRequestAssert assertRequest() throws InterruptedException {
}

void shutdown() throws IOException {
delegate.get().shutdown();
delegate.shutdown();
}

@Override
Expand Down
6 changes: 3 additions & 3 deletions ultradns/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ test {

dependencies {
compile project(':denominator-core')
compile 'com.netflix.feign:feign-core:8.7.1'
compile 'com.netflix.feign:feign-sax:8.7.1'
compile 'com.netflix.feign:feign-core:8.9.0-SNAPSHOT'
compile 'com.netflix.feign:feign-sax:8.9.0-SNAPSHOT'
testCompile project(':denominator-model').sourceSets.test.output
testCompile project(':denominator-core').sourceSets.test.output
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package denominator.ultradns;

import com.squareup.okhttp.mockwebserver.MockResponse;
import com.squareup.okhttp.mockwebserver.rule.MockWebServerRule;
import com.squareup.okhttp.mockwebserver.MockWebServer;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
Expand Down Expand Up @@ -41,7 +41,7 @@ final class MockUltraDNSServer extends UltraDNSProvider implements TestRule {
+ " </soap:Body>\n"
+ "</soap:Envelope>";

private final MockWebServerRule delegate = new MockWebServerRule();
private final MockWebServer delegate = new MockWebServer();
private String username;
private String password;
private String soapTemplate;
Expand Down Expand Up @@ -87,7 +87,7 @@ RecordedRequestAssert assertSoapBody(String soapBody) throws InterruptedExceptio
}

void shutdown() throws IOException {
delegate.get().shutdown();
delegate.shutdown();
}

@Override
Expand Down

0 comments on commit aa37eaf

Please sign in to comment.