Skip to content

Commit

Permalink
Merge pull request #369 from Netflix/adrian.version-bump
Browse files Browse the repository at this point in the history
Updates to Feign 8.7 and MockWebServer 2.4
  • Loading branch information
adriancole committed Aug 2, 2015
2 parents 2c38b86 + 0bba6cb commit 818faee
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 48 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### Version 4.6
* Decode any x509 cert or private key in CLI credentials
* Updates to Feign 8.7 and MockWebServer 2.4

### Version 4.5
* Adds `ZoneApi.put()` and `ZoneApi.delete()`
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

plugins {
id 'nebula.netflixoss' version '2.2.9'
id 'nebula.netflixoss' version '2.2.10'
}

ext {
Expand Down
4 changes: 2 additions & 2 deletions cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ 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.2.0'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
}

// create a self-contained jar that is executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ public Iterator<String> doRun(DNSApiManager mgr) {
iterator =
mgr.api().geoRecordSetsInZone(id(mgr, zoneIdOrName))
.iterateByNameAndType(name, type);
}
if (name != null) {
} else if (name != null) {
iterator = mgr.api().geoRecordSetsInZone(id(mgr, zoneIdOrName)).iterateByName(name);
} else {
iterator = mgr.api().geoRecordSetsInZone(id(mgr, zoneIdOrName)).iterator();
Expand Down
8 changes: 4 additions & 4 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.1.0'
compile 'com.netflix.feign:feign-gson:8.1.0'
compile 'com.netflix.feign:feign-core:8.7.0'
compile 'com.netflix.feign:feign-gson:8.7.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'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static boolean isNull(JsonElement element) {

@Override
public TokenIdAndPublicURL read(JsonReader in) throws IOException {
JsonObject access = null;
JsonObject access;
try {
access = new JsonParser().parse(in).getAsJsonObject().get("access").getAsJsonObject();
} catch (JsonIOException e) {
Expand Down
6 changes: 3 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test {
dependencies {
compile project(':denominator-model')
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'com.netflix.feign:feign-core:8.1.0'
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.0'
testCompile project(':denominator-model').sourceSets.test.output
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public RecordedRequestAssert hasPath(String expected) {

public RecordedRequestAssert hasBody(String utf8Expected) {
isNotNull();
objects.assertEqual(info, actual.getUtf8Body(), utf8Expected);
objects.assertEqual(info, actual.getBody().readUtf8(), utf8Expected);
return this;
}

public RecordedRequestAssert hasXMLBody(String utf8Expected) {
isNotNull();
hasHeaderContaining("Content-Type", "application/xml");
strings.assertXmlEqualsTo(info, actual.getUtf8Body(), utf8Expected);
strings.assertXmlEqualsTo(info, actual.getBody().readUtf8(), utf8Expected);
return this;
}

Expand Down
8 changes: 4 additions & 4 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.1.0'
compile 'com.netflix.feign:feign-gson:8.1.0'
compile 'com.netflix.feign:feign-core:8.7.0'
compile 'com.netflix.feign:feign-gson:8.7.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'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static boolean isNull(JsonElement element) {

@Override
public TokenIdAndPublicURL read(JsonReader in) throws IOException {
JsonObject access = null;
JsonObject access;
try {
access = new JsonParser().parse(in).getAsJsonObject().get("access").getAsJsonObject();
} catch (JsonIOException e) {
Expand Down
8 changes: 4 additions & 4 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.1.0'
compile 'com.netflix.feign:feign-gson:8.1.0'
compile 'com.netflix.feign:feign-core:8.7.0'
compile 'com.netflix.feign:feign-gson:8.7.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'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
}
8 changes: 4 additions & 4 deletions example-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:1.1.3'
classpath 'com.android.tools.build:gradle:1.3.0'
}
}

Expand All @@ -30,11 +30,11 @@ repositories { mavenLocal()

dependencies {
compile 'com.android.support:support-v4:19.0.0'
compile 'com.netflix.denominator:denominator-core:4.5.0'
compile 'com.netflix.denominator:denominator-core:4.5.1'
// swap this out to use a different provider
compile 'com.netflix.denominator:denominator-ultradns:4.5.0'
compile 'com.netflix.denominator:denominator-ultradns:4.5.1'
// TODO: find a way to have this in compile classpath, but not in apk
compile 'com.squareup.dagger:dagger-compiler:1.2.2'
compile 'com.squareup:tape:1.2.3'
compile 'com.squareup:otto:1.3.6'
compile 'com.squareup:otto:1.3.8'
}
18 changes: 9 additions & 9 deletions example-daemon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ repositories { mavenLocal()
mavenCentral() }

dependencies {
compile 'com.netflix.denominator:denominator-core:4.5.0'
compile 'com.netflix.denominator:denominator-dynect:4.5.0'
compile 'com.netflix.denominator:denominator-ultradns:4.5.0'
compile 'com.netflix.denominator:denominator-route53:4.5.0'
compile 'com.netflix.denominator:denominator-clouddns:4.5.0'
compile 'com.netflix.feign:feign-core:8.1.0'
compile ('com.squareup.okhttp:mockwebserver:2.3.0') {
compile 'com.netflix.denominator:denominator-core:4.5.1'
compile 'com.netflix.denominator:denominator-dynect:4.5.1'
compile 'com.netflix.denominator:denominator-ultradns:4.5.1'
compile 'com.netflix.denominator:denominator-route53:4.5.1'
compile 'com.netflix.denominator:denominator-clouddns:4.5.1'
compile 'com.netflix.feign:feign-core:8.7.0'
compile ('com.squareup.okhttp:mockwebserver:2.4.0') {
exclude group: 'org.bouncycastle'
}
compile 'com.google.code.gson:gson:2.2.4'
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'com.netflix.feign:feign-gson:8.1.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.netflix.feign:feign-gson:8.7.0'
}

// create a self-contained jar that is executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ public static void start() throws IOException {
.encoder(new GsonEncoder())
.decoder(new GsonDecoder())
.target(DenominatorDApi.class, "http://localhost:" + port);

mock.api().basicRecordSetsInZone("denominator.io.").put(ResourceRecordSet.<AData>builder()
.name("www.denominator.io.")
.type("A")
.add(AData.create("192.0.2.1")).build());

mock.api().weightedRecordSetsInZone("denominator.io.").put(ResourceRecordSet.<CNAMEData>builder()
.name("www.weighted.denominator.io.")
.type("CNAME")
.qualifier("EU-West")
.weighted(Weighted.create(1))
.add(CNAMEData.create("www1.denominator.io.")).build());

mock.api().weightedRecordSetsInZone("denominator.io.").put(ResourceRecordSet.<CNAMEData>builder()
.name("www.weighted.denominator.io.")
.type("CNAME")
.qualifier("US-West")
.weighted(Weighted.create(1))
.add(CNAMEData.create("www2.denominator.io.")).build());
}

@AfterClass
Expand Down
2 changes: 1 addition & 1 deletion model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ sourceCompatibility = 1.6

dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.assertj:assertj-core:1.7.1'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
}
2 changes: 1 addition & 1 deletion model/src/test/java/denominator/common/UtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import static denominator.common.Util.peekingIterator;
import static denominator.common.Util.slurp;
import static denominator.common.Util.split;
import static junit.framework.Assert.assertFalse;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class UtilTest {
Expand Down
8 changes: 4 additions & 4 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.1.0'
compile 'com.netflix.feign:feign-sax:8.1.0'
compile 'com.netflix.feign:feign-core:8.7.0'
compile 'com.netflix.feign:feign-sax:8.7.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'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
}
8 changes: 4 additions & 4 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.1.0'
compile 'com.netflix.feign:feign-sax:8.1.0'
compile 'com.netflix.feign:feign-core:8.7.0'
compile 'com.netflix.feign:feign-sax:8.7.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'
testCompile 'com.squareup.okhttp:mockwebserver:2.2.0'
testCompile 'org.assertj:assertj-core:1.7.1' // last version supporting JDK 7
testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void put(ResourceRecordSet<?> rrset) {

if (!recordsLeftToCreate.isEmpty()) {
// shotgun create
String poolId = null;
String poolId;
try {
String type = rrset.type();
if ("CNAME".equals(type)) {
Expand Down

0 comments on commit 818faee

Please sign in to comment.