Do not assume an endpoint in tests.

jclouds should not assume a particular endpoint when running glacier
tests, as it's possible that a glacier emulator is used (e.g.
glacier-proxy).
This commit is contained in:
Timur Alperovich 2016-01-03 16:39:02 -08:00 committed by Ignasi Barrera
parent 0a75446ae7
commit af7f4eeb51
1 changed files with 3 additions and 5 deletions

View File

@ -56,11 +56,9 @@ public class GlacierClientLiveTest extends BaseApiLiveTest<GlacierClient> {
@Test
public void testCreateVault() throws Exception {
assertThat(api.createVault(VAULT_NAME1).toString())
.contains("https://glacier.us-east-1.amazonaws.com/")
.contains("/vaults/" + VAULT_NAME1);
api.createVault(VAULT_NAME2);
api.createVault(VAULT_NAME3);
assertThat(api.createVault(VAULT_NAME1).toString()).contains("/vaults/" + VAULT_NAME1);
assertThat(api.createVault(VAULT_NAME2).toString()).contains("/vaults/" + VAULT_NAME2);
assertThat(api.createVault(VAULT_NAME3).toString()).contains("/vaults/" + VAULT_NAME3);
}
@Test(dependsOnMethods = {"testCreateVault"})