amazons3.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * @author Joas Schilling <nickvergessen@owncloud.com>
  4. * @author Michael Gapczynski <GapczynskiM@gmail.com>
  5. * @author Morris Jobke <hey@morrisjobke.de>
  6. * @author Robin Appelman <icewind@owncloud.com>
  7. * @author Robin McCorkell <robin@mccorkell.me.uk>
  8. * @author Thomas Müller <thomas.mueller@tmit.eu>
  9. *
  10. * @copyright Copyright (c) 2016, ownCloud, Inc.
  11. * @license AGPL-3.0
  12. *
  13. * This code is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Affero General Public License, version 3,
  15. * as published by the Free Software Foundation.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License, version 3,
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>
  24. *
  25. */
  26. namespace Test\Files\Storage;
  27. /**
  28. * Class AmazonS3
  29. *
  30. * @group DB
  31. *
  32. * @package Test\Files\Storage
  33. */
  34. class AmazonS3 extends Storage {
  35. private $config;
  36. protected function setUp() {
  37. parent::setUp();
  38. $this->config = include('files_external/tests/config.amazons3.php');
  39. if ( ! is_array($this->config) or ! $this->config['run']) {
  40. $this->markTestSkipped('AmazonS3 backend not configured');
  41. }
  42. $this->instance = new \OC\Files\Storage\AmazonS3($this->config);
  43. }
  44. protected function tearDown() {
  45. if ($this->instance) {
  46. $this->instance->rmdir('');
  47. }
  48. parent::tearDown();
  49. }
  50. public function testStat() {
  51. $this->markTestSkipped('S3 doesn\'t update the parents folder mtime');
  52. }
  53. }