diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 16:53:03 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-27 16:53:03 +0200 |
commit | fd8b5680dd826cf98df3b11b3a079dc70147a2c0 (patch) | |
tree | 9e5df78df804b54e909b550089432647fc4d7346 /apps/files_external/tests | |
parent | 3b2fd5e4e6aad769f656c473f1a1fe53f5936c47 (diff) | |
parent | 25dbbbadd33ad1f859498ff8c6ba16091959bce4 (diff) | |
download | nextcloud-server-fd8b5680dd826cf98df3b11b3a079dc70147a2c0.tar.gz nextcloud-server-fd8b5680dd826cf98df3b11b3a079dc70147a2c0.zip |
Merge pull request #8383 from owncloud/object_storage
Object storage
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/swift.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files_external/tests/swift.php b/apps/files_external/tests/swift.php index bdfdbdeebe9..3918497ebfa 100644 --- a/apps/files_external/tests/swift.php +++ b/apps/files_external/tests/swift.php @@ -38,14 +38,15 @@ class Swift extends Storage { public function tearDown() { if ($this->instance) { $connection = $this->instance->getConnection(); - $container = $connection->Container($this->config['swift']['bucket']); + $container = $connection->getContainer($this->config['swift']['bucket']); - $objects = $container->ObjectList(); - while($object = $objects->Next()) { - $object->Delete(); + $objects = $container->objectList(); + while($object = $objects->next()) { + $object->setName(str_replace('#','%23',$object->getName())); + $object->delete(); } - $container->Delete(); + $container->delete(); } } } |