jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-642: InternalUrl fallback (#462)
Date Fri, 01 Aug 2014 19:51:13 GMT
> +      assertEquals(
> +            fn.apply(Endpoint.builder().region("regionOne").versionId("2.0")
> +               .publicURL(URI.create("https://ericsson.com/v2/1900e98b-7272-4cbd-8e95-0b8c2a9266c0"))
> +                  .build()).get(),
> +            URI.create("https://ericsson.com/v2/1900e98b-7272-4cbd-8e95-0b8c2a9266c0"));
> +   }
> +
> +   /**
> +    * If the {@code internalURL} is absent, then {@link InternalURL} will fallback to
> +    * use the {@code publicURL}
> +    */
> +   public void testInternalURLAbsentAndFallbackToPublicURL() {
> +      assertEquals(
> +            fn.apply(Endpoint.builder().region("regionOne").versionId("2.0")
> +               .publicURL(URI.create("https://ericsson.com/v2/1900e98b-7272-4cbd-8e95-0b8c2a9266c0"))
> +               .adminURL(URI.create("https://admin.ericsson.com/v2/1900e98b-7272-4cbd-8e95-0b8c2a9266c0"))

How is this different from `InternalURLAbsent`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/462/files#r15715354
Mime
View raw message