mirror of https://github.com/apache/jclouds.git
Fixed broken test
This commit is contained in:
parent
676e153080
commit
bf58be7a6d
|
@ -81,7 +81,7 @@ public class KeyStoneAuthenticationModule extends AbstractModule {
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
protected IdentityServiceAsyncClient provideServiceClient(AsyncClientFactory factory) {
|
protected IdentityServiceAsyncClient provideIdentityServiceClient(AsyncClientFactory factory) {
|
||||||
return factory.create(IdentityServiceAsyncClient.class);
|
return factory.create(IdentityServiceAsyncClient.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class BaseKeyStoneRestClientExpectTest<S> extends BaseRestClientExpectTes
|
||||||
|
|
||||||
public BaseKeyStoneRestClientExpectTest() {
|
public BaseKeyStoneRestClientExpectTest() {
|
||||||
// username:tenantId
|
// username:tenantId
|
||||||
identity = "user@jclouds.org:12346637803162";
|
identity = "user@jclouds.org:40806637803162";
|
||||||
credential = "Password1234";
|
credential = "Password1234";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public class BaseKeyStoneRestClientExpectTest<S> extends BaseRestClientExpectTes
|
||||||
.headers(ImmutableMultimap.of(HttpHeaders.ACCEPT, "application/json"))
|
.headers(ImmutableMultimap.of(HttpHeaders.ACCEPT, "application/json"))
|
||||||
.payload(
|
.payload(
|
||||||
payloadFromStringWithContentType(
|
payloadFromStringWithContentType(
|
||||||
"{\"tenantId\":\"12346637803162\",\"auth\":{\"passwordCredentials\":{\"username\":\"user@jclouds.org\",\"password\":\"Password1234\"}}}",
|
"{\"auth\":{\"passwordCredentials\":{\"username\":\"user@jclouds.org\",\"password\":\"Password1234\"},\"tenantId\":\"40806637803162\"}}",
|
||||||
"application/json")).build();
|
"application/json")).build();
|
||||||
|
|
||||||
protected String authToken = "Auth_4f173437e4b013bee56d1007";
|
protected String authToken = "Auth_4f173437e4b013bee56d1007";
|
||||||
|
|
Loading…
Reference in New Issue