@Test public void listSplitsOnNewline() throws Exception { server.enqueue(new MockResponse().setBody("route53-readonly\nbooberry")); Assertions.assertThat(InstanceMetadataHook .list( server.getUrl(InstanceMetadataHook.DEFAULT_URI.getPath()).toURI(), "iam/security-credentials/")) .containsExactly("route53-readonly", "booberry"); assertThat(server.takeRequest()) .hasMethod("GET") .hasPath("/latest/meta-data/iam/security-credentials/"); }
public static List<String> list(String path) { return list(DEFAULT_URI, path); }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); } }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  static List<String> list(String path); static List<String> list(URI metadataService, String path); static String get(String path); static String get(URI metadataService, String path); }
InstanceMetadataHook { public static List<String> list(String path) { return list(DEFAULT_URI, path); }  static List<String> list(String path); static List<String> list(URI metadataService, String path); static String get(String path); static String get(URI metadataService, String path); static final URI DEFAULT_URI; }