mirror of https://github.com/apache/jclouds.git
Fix testTemplateBuilderWithLoginUserSpecified to clean up credentials added to CredentialStoreModule.BACKING
This commit is contained in:
parent
d32bbc18c4
commit
9a725ba93c
|
@ -283,6 +283,10 @@ public abstract class BaseTemplateBuilderLiveTest extends BaseVersionedServiceLi
|
||||||
} finally {
|
} finally {
|
||||||
if (context != null)
|
if (context != null)
|
||||||
context.close();
|
context.close();
|
||||||
|
|
||||||
|
// Need to clear persisted credentials; otherwise next time a ComputeServiceContext is created
|
||||||
|
// then it will have these "foo" credentials!
|
||||||
|
context.credentialStore().clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue