git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/Common/storagehub-client@171651 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ac3a29c646
commit
179dc15b3c
|
@ -219,7 +219,7 @@ public class DefaultWorkspaceManager implements WorkspaceManagerClient {
|
|||
public Void call(GXWebTargetAdapterRequest manager) throws Exception {
|
||||
GXWebTargetAdapterRequest myManager = manager.path("trash").path("empty");
|
||||
|
||||
GXInboundResponse response = myManager.delete();
|
||||
GXInboundResponse response = myManager.setAcceptedResponseType(MediaType.TEXT_PLAIN_TYPE).delete();
|
||||
if (response.hasGXError())
|
||||
throw response.getException();
|
||||
|
||||
|
|
|
@ -66,6 +66,15 @@ public class Items {
|
|||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void emptyTrash() throws Exception {
|
||||
StorageHubClient shc = new StorageHubClient();
|
||||
|
||||
shc.emptyTrash();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void uploadArchive() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue