You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2014/11/30 00:11:34 UTC

jclouds-labs-google git commit: Upgrade to OkHttp 2.1.0

Repository: jclouds-labs-google
Updated Branches:
  refs/heads/master e50999ec5 -> 069eb6429


Upgrade to OkHttp 2.1.0

Mockwebserver 2.1.0 does not bind the localhost address but
the public address. That makes the test to fail if we hardcode
the server URL to 'localhost'. The server.getUrl() method
should be used instead.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/commit/069eb642
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/tree/069eb642
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/diff/069eb642

Branch: refs/heads/master
Commit: 069eb64292e36805316b736b2f0912de63f0daf0
Parents: e50999e
Author: Ignasi Barrera <na...@apache.org>
Authored: Thu Nov 27 11:43:59 2014 +0100
Committer: Ignasi Barrera <na...@apache.org>
Committed: Thu Nov 27 11:43:59 2014 +0100

----------------------------------------------------------------------
 .../internal/BaseGoogleComputeEngineApiMockTest.java               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/blob/069eb642/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java
----------------------------------------------------------------------
diff --git a/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java b/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java
index 1b06ad2..a9f4483 100644
--- a/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java
+++ b/google-compute-engine/src/test/java/org/jclouds/googlecomputeengine/internal/BaseGoogleComputeEngineApiMockTest.java
@@ -92,7 +92,7 @@ public class BaseGoogleComputeEngineApiMockTest {
    }
 
    protected String url(String path) {
-      return "http://localhost:" + server.getPort() + path;
+      return server.getUrl(path).toString();
    }
 
    @AfterMethod(alwaysRun = true)