> @@ -101,7 +102,8 @@ public MockResponse dispatch(RecordedRequest request)
> throws InterruptedExceptio
> * access.json or accessRackspace) for the declared service
> * endpoints.
> */
> - String newBody = new
> String(response.getBody()).replace(":\"URL", ":\"" + url.toString());
> + String newBody = new
> String(response.getBody()).replaceAll("\\s*\"\\s*URL", " \"" +
> url.toString());
@demobox I can add the `:` back since it *is* more specific. I initially took
the `matcher` approach, but just found that the simple regex worked great for
the issue at hand. This is only going to be utilized by test classes that
extend `BaseOpenStackMockTest`. Let me rework this a bit based on your
feedback, thx!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/404/files#r13770665