]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge writable temporary space check with the s3 one, and improve 42839/head
authorCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 18 Jan 2024 14:32:24 +0000 (15:32 +0100)
committerCôme Chilliet <come.chilliet@nextcloud.com>
Thu, 25 Jan 2024 10:47:30 +0000 (11:47 +0100)
It will now show available space and path of both PHP and Nextcloud
 temporary directories if they differ.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/settings/composer/composer/autoload_classmap.php
apps/settings/composer/composer/autoload_static.php
apps/settings/lib/AppInfo/Application.php
apps/settings/lib/Controller/CheckSetupController.php
apps/settings/lib/SetupChecks/TempSpaceAvailable.php [new file with mode: 0644]
apps/settings/lib/SetupChecks/TempSpaceAvailableIfS3PrimaryStorage.php [deleted file]
apps/settings/tests/Controller/CheckSetupControllerTest.php
core/js/setupchecks.js
core/js/tests/specs/setupchecksSpec.js

index 7166ba2aab09218fdf04301ce55beba1e98b3136..6e641fab4c64f5cbe0ce75b3ab1d90fe6ad7ba95 100644 (file)
@@ -110,7 +110,7 @@ return array(
     'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => $baseDir . '/../lib/SetupChecks/ReadOnlyConfig.php',
     'OCA\\Settings\\SetupChecks\\SupportedDatabase' => $baseDir . '/../lib/SetupChecks/SupportedDatabase.php',
     'OCA\\Settings\\SetupChecks\\SystemIs64bit' => $baseDir . '/../lib/SetupChecks/SystemIs64bit.php',
-    'OCA\\Settings\\SetupChecks\\TempSpaceAvailableIfS3PrimaryStorage' => $baseDir . '/../lib/SetupChecks/TempSpaceAvailableIfS3PrimaryStorage.php',
+    'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => $baseDir . '/../lib/SetupChecks/TempSpaceAvailable.php',
     'OCA\\Settings\\SetupChecks\\TransactionIsolation' => $baseDir . '/../lib/SetupChecks/TransactionIsolation.php',
     'OCA\\Settings\\UserMigration\\AccountMigrator' => $baseDir . '/../lib/UserMigration/AccountMigrator.php',
     'OCA\\Settings\\UserMigration\\AccountMigratorException' => $baseDir . '/../lib/UserMigration/AccountMigratorException.php',
index 89517edf9f3e46869a1146bde656641e67de2f9d..9b775f4358b702a2899ee9bcc83f1cc015716d99 100644 (file)
@@ -125,7 +125,7 @@ class ComposerStaticInitSettings
         'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/ReadOnlyConfig.php',
         'OCA\\Settings\\SetupChecks\\SupportedDatabase' => __DIR__ . '/..' . '/../lib/SetupChecks/SupportedDatabase.php',
         'OCA\\Settings\\SetupChecks\\SystemIs64bit' => __DIR__ . '/..' . '/../lib/SetupChecks/SystemIs64bit.php',
-        'OCA\\Settings\\SetupChecks\\TempSpaceAvailableIfS3PrimaryStorage' => __DIR__ . '/..' . '/../lib/SetupChecks/TempSpaceAvailableIfS3PrimaryStorage.php',
+        'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => __DIR__ . '/..' . '/../lib/SetupChecks/TempSpaceAvailable.php',
         'OCA\\Settings\\SetupChecks\\TransactionIsolation' => __DIR__ . '/..' . '/../lib/SetupChecks/TransactionIsolation.php',
         'OCA\\Settings\\UserMigration\\AccountMigrator' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigrator.php',
         'OCA\\Settings\\UserMigration\\AccountMigratorException' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigratorException.php',
index 472d3c961dec3200943ca21a6848dc378268576e..0cb8d6771e84434ea0d56e987c8e965943a452e4 100644 (file)
@@ -82,7 +82,7 @@ use OCA\Settings\SetupChecks\RandomnessSecure;
 use OCA\Settings\SetupChecks\ReadOnlyConfig;
 use OCA\Settings\SetupChecks\SupportedDatabase;
 use OCA\Settings\SetupChecks\SystemIs64bit;
-use OCA\Settings\SetupChecks\TempSpaceAvailableIfS3PrimaryStorage;
+use OCA\Settings\SetupChecks\TempSpaceAvailable;
 use OCA\Settings\SetupChecks\TransactionIsolation;
 use OCA\Settings\UserMigration\AccountMigrator;
 use OCA\Settings\WellKnown\ChangePasswordHandler;
@@ -207,7 +207,7 @@ class Application extends App implements IBootstrap {
                $context->registerSetupCheck(ReadOnlyConfig::class);
                $context->registerSetupCheck(SupportedDatabase::class);
                $context->registerSetupCheck(SystemIs64bit::class);
-               $context->registerSetupCheck(TempSpaceAvailableIfS3PrimaryStorage::class);
+               $context->registerSetupCheck(TempSpaceAvailable::class);
                $context->registerSetupCheck(TransactionIsolation::class);
 
                $context->registerUserMigrator(AccountMigrator::class);
index ba39579e44597fa81f753acdd09f610c1b78f59f..323c673b0d094e8b4dda26975b570d6ae82f65ac 100644 (file)
@@ -55,7 +55,6 @@ use OCP\AppFramework\Http\RedirectResponse;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IRequest;
-use OCP\ITempManager;
 use OCP\IURLGenerator;
 use OCP\Notification\IManager;
 use OCP\SetupCheck\ISetupCheckManager;
@@ -73,8 +72,6 @@ class CheckSetupController extends Controller {
        private $checker;
        /** @var LoggerInterface */
        private $logger;
-       /** @var ITempManager */
-       private $tempManager;
        /** @var IManager */
        private $manager;
        private ISetupCheckManager $setupCheckManager;
@@ -86,7 +83,6 @@ class CheckSetupController extends Controller {
                IL10N $l10n,
                Checker $checker,
                LoggerInterface $logger,
-               ITempManager $tempManager,
                IManager $manager,
                ISetupCheckManager $setupCheckManager,
        ) {
@@ -96,7 +92,6 @@ class CheckSetupController extends Controller {
                $this->l10n = $l10n;
                $this->checker = $checker;
                $this->logger = $logger;
-               $this->tempManager = $tempManager;
                $this->manager = $manager;
                $this->setupCheckManager = $setupCheckManager;
        }
@@ -192,16 +187,6 @@ Raw output
                );
        }
 
-       private function isTemporaryDirectoryWritable(): bool {
-               try {
-                       if (!empty($this->tempManager->getTempBaseDir())) {
-                               return true;
-                       }
-               } catch (\Exception $e) {
-               }
-               return false;
-       }
-
        /**
         * @return DataResponse
         * @AuthorizedAdminSetting(settings=OCA\Settings\Settings\Admin\Overview)
@@ -212,7 +197,6 @@ Raw output
                                'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(),
                                'reverseProxyDocs' => $this->urlGenerator->linkToDocs('admin-reverse-proxy'),
                                'reverseProxyGeneratedURL' => $this->urlGenerator->getAbsoluteURL('index.php'),
-                               'temporaryDirectoryWritable' => $this->isTemporaryDirectoryWritable(),
                                'generic' => $this->setupCheckManager->runAll(),
                        ]
                );
diff --git a/apps/settings/lib/SetupChecks/TempSpaceAvailable.php b/apps/settings/lib/SetupChecks/TempSpaceAvailable.php
new file mode 100644 (file)
index 0000000..6a8aa1e
--- /dev/null
@@ -0,0 +1,126 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright Copyright (c) 2023 Côme Chilliet <come.chilliet@nextcloud.com>
+ *
+ * @author Côme Chilliet <come.chilliet@nextcloud.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+namespace OCA\Settings\SetupChecks;
+
+use OCP\IConfig;
+use OCP\IL10N;
+use OCP\ITempManager;
+use OCP\IURLGenerator;
+use OCP\SetupCheck\ISetupCheck;
+use OCP\SetupCheck\SetupResult;
+
+class TempSpaceAvailable implements ISetupCheck {
+       public function __construct(
+               private IL10N $l10n,
+               private IConfig $config,
+               private IURLGenerator $urlGenerator,
+               private ITempManager $tempManager,
+       ) {
+       }
+
+       public function getName(): string {
+               return $this->l10n->t('Temporary space available');
+       }
+
+       public function getCategory(): string {
+               return 'system';
+       }
+
+       private function isPrimaryStorageS3(): bool {
+               $objectStore = $this->config->getSystemValue('objectstore', null);
+               $objectStoreMultibucket = $this->config->getSystemValue('objectstore_multibucket', null);
+
+               if (!isset($objectStoreMultibucket) && !isset($objectStore)) {
+                       return false;
+               }
+
+               if (isset($objectStoreMultibucket['class']) && $objectStoreMultibucket['class'] !== 'OC\\Files\\ObjectStore\\S3') {
+                       return false;
+               }
+
+               if (isset($objectStore['class']) && $objectStore['class'] !== 'OC\\Files\\ObjectStore\\S3') {
+                       return false;
+               }
+
+               return true;
+       }
+
+       public function run(): SetupResult {
+               $phpTempPath = sys_get_temp_dir();
+               $nextcloudTempPath = '';
+               try {
+                       $nextcloudTempPath = $this->tempManager->getTempBaseDir();
+               } catch (\Exception $e) {
+               }
+
+               if (empty($nextcloudTempPath)) {
+                       return SetupResult::error('The temporary directory of this instance points to an either non-existing or non-writable directory.');
+               }
+
+               if (!is_dir($phpTempPath)) {
+                       return SetupResult::error($this->l10n->t('Error while checking the temporary PHP path - it was not properly set to a directory. Returned value: %s', [$phpTempPath]));
+               }
+
+               $freeSpaceInTemp = function_exists('disk_free_space') ? disk_free_space($phpTempPath) : false;
+               if ($freeSpaceInTemp === false) {
+                       return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$phpTempPath]));
+               }
+
+               /** Build details data about temporary directory, either one or two of them */
+               $freeSpaceInTempInGB = $freeSpaceInTemp / 1024 / 1024 / 1024;
+               $spaceDetail = $this->l10n->t('- %.1f GiB available in %s (PHP temporary directory)', [round($freeSpaceInTempInGB, 1),$phpTempPath]);
+               if ($nextcloudTempPath !== $phpTempPath) {
+                       $freeSpaceInNextcloudTemp = function_exists('disk_free_space') ? disk_free_space($nextcloudTempPath) : false;
+                       if ($freeSpaceInNextcloudTemp === false) {
+                               return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$nextcloudTempPath]));
+                       }
+                       $freeSpaceInNextcloudTempInGB = $freeSpaceInNextcloudTemp / 1024 / 1024 / 1024;
+                       $spaceDetail .= "\n".$this->l10n->t('- %.1f GiB available in %s (Nextcloud temporary directory)', [round($freeSpaceInNextcloudTempInGB, 1),$nextcloudTempPath]);
+               }
+
+               if (!$this->isPrimaryStorageS3()) {
+                       return SetupResult::success(
+                               $this->l10n->t("Temporary directory is correctly configured:\n%s", [$spaceDetail])
+                       );
+               }
+
+               if ($freeSpaceInTempInGB > 50) {
+                       return SetupResult::success(
+                               $this->l10n->t(
+                                       "This instance uses an S3 based object store as primary storage, and has enough space in the temporary directory.\n%s",
+                                       [$spaceDetail]
+                               )
+                       );
+               }
+
+               return SetupResult::warning(
+                       $this->l10n->t(
+                               "This instance uses an S3 based object store as primary storage. The uploaded files are stored temporarily on the server and thus it is recommended to have 50 GiB of free space available in the temp directory of PHP. To improve this please change the temporary directory in the php.ini or make more space available in that path. \nChecking the available space in the temporary path resulted in %.1f GiB instead of the recommended 50 GiB. Path: %s",
+                               [round($freeSpaceInTempInGB, 1),$phpTempPath]
+                       )
+               );
+       }
+}
diff --git a/apps/settings/lib/SetupChecks/TempSpaceAvailableIfS3PrimaryStorage.php b/apps/settings/lib/SetupChecks/TempSpaceAvailableIfS3PrimaryStorage.php
deleted file mode 100644 (file)
index b8d7cf7..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-/**
- * @copyright Copyright (c) 2023 Côme Chilliet <come.chilliet@nextcloud.com>
- *
- * @author Côme Chilliet <come.chilliet@nextcloud.com>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-namespace OCA\Settings\SetupChecks;
-
-use OCP\IConfig;
-use OCP\IL10N;
-use OCP\IURLGenerator;
-use OCP\SetupCheck\ISetupCheck;
-use OCP\SetupCheck\SetupResult;
-
-class TempSpaceAvailableIfS3PrimaryStorage implements ISetupCheck {
-       public function __construct(
-               private IL10N $l10n,
-               private IConfig $config,
-               private IURLGenerator $urlGenerator,
-       ) {
-       }
-
-       public function getName(): string {
-               return $this->l10n->t('Temporary space available');
-       }
-
-       public function getCategory(): string {
-               return 'system';
-       }
-
-       public function run(): SetupResult {
-               $objectStore = $this->config->getSystemValue('objectstore', null);
-               $objectStoreMultibucket = $this->config->getSystemValue('objectstore_multibucket', null);
-
-               // TODO we should check and display temp space available even if not s3
-               if (!isset($objectStoreMultibucket) && !isset($objectStore)) {
-                       return SetupResult::success($this->l10n->t('This instance does not use an S3 based object store as primary storage'));
-               }
-
-               if (isset($objectStoreMultibucket['class']) && $objectStoreMultibucket['class'] !== 'OC\\Files\\ObjectStore\\S3') {
-                       return SetupResult::success($this->l10n->t('This instance does not use an S3 based object store as primary storage'));
-               }
-
-               if (isset($objectStore['class']) && $objectStore['class'] !== 'OC\\Files\\ObjectStore\\S3') {
-                       return SetupResult::success($this->l10n->t('This instance does not use an S3 based object store as primary storage'));
-               }
-
-               $tempPath = sys_get_temp_dir();
-               if (!is_dir($tempPath)) {
-                       return SetupResult::error($this->l10n->t('Error while checking the temporary PHP path - it was not properly set to a directory. Returned value: %s', [$tempPath]));
-               }
-               $freeSpaceInTemp = function_exists('disk_free_space') ? disk_free_space($tempPath) : false;
-               if ($freeSpaceInTemp === false) {
-                       return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$tempPath]));
-               }
-
-               $freeSpaceInTempInGB = $freeSpaceInTemp / 1024 / 1024 / 1024;
-               if ($freeSpaceInTempInGB > 50) {
-                       return SetupResult::success(
-                               $this->l10n->t(
-                                       "This instance uses an S3 based object store as primary storage, and has enough space in the temporary directory.\nAvailable: %.1f GiB\nPath: %s",
-                                       [round($freeSpaceInTempInGB, 1),$tempPath]
-                               )
-                       );
-               }
-
-               return SetupResult::warning(
-                       $this->l10n->t(
-                               "This instance uses an S3 based object store as primary storage. The uploaded files are stored temporarily on the server and thus it is recommended to have 50 GiB of free space available in the temp directory of PHP. To improve this please change the temporary directory in the php.ini or make more space available in that path. \nChecking the available space in the temporary path resulted in %.1f GiB instead of the recommended 50 GiB. Path: %s",
-                               [round($freeSpaceInTempInGB, 1),$tempPath]
-                       )
-               );
-       }
-}
index f8c9b346e7d1812bbea0d87a7158358de211d061..c83273b467d8dea81ef69bf93afc6b1370eae19c 100644 (file)
@@ -43,7 +43,6 @@ use OCP\AppFramework\Http\RedirectResponse;
 use OCP\IConfig;
 use OCP\IL10N;
 use OCP\IRequest;
-use OCP\ITempManager;
 use OCP\IURLGenerator;
 use OCP\Notification\IManager;
 use OCP\SetupCheck\ISetupCheckManager;
@@ -72,8 +71,6 @@ class CheckSetupControllerTest extends TestCase {
        private $logger;
        /** @var Checker|\PHPUnit\Framework\MockObject\MockObject */
        private $checker;
-       /** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
-       private $tempManager;
        /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
        private $notificationManager;
        /** @var ISetupCheckManager|MockObject */
@@ -98,7 +95,6 @@ class CheckSetupControllerTest extends TestCase {
                $this->checker = $this->getMockBuilder('\OC\IntegrityCheck\Checker')
                                ->disableOriginalConstructor()->getMock();
                $this->logger = $this->getMockBuilder(LoggerInterface::class)->getMock();
-               $this->tempManager = $this->getMockBuilder(ITempManager::class)->getMock();
                $this->notificationManager = $this->getMockBuilder(IManager::class)->getMock();
                $this->setupCheckManager = $this->createMock(ISetupCheckManager::class);
                $this->checkSetupController = $this->getMockBuilder(CheckSetupController::class)
@@ -110,7 +106,6 @@ class CheckSetupControllerTest extends TestCase {
                                $this->l10n,
                                $this->checker,
                                $this->logger,
-                               $this->tempManager,
                                $this->notificationManager,
                                $this->setupCheckManager,
                        ])
@@ -176,7 +171,6 @@ class CheckSetupControllerTest extends TestCase {
                                'reverseProxyDocs' => 'reverse-proxy-doc-link',
                                'reverseProxyGeneratedURL' => 'https://server/index.php',
                                'isFairUseOfFreePushService' => false,
-                               'temporaryDirectoryWritable' => false,
                                'generic' => [],
                        ]
                );
index 7e068ffd1d032e6d4a921fde0c2a8a6cc11720c2..7864169dd2b0a9393476db64a975fda3ecf3d238 100644 (file)
                                                });
                                        }
 
-                                       if (!data.temporaryDirectoryWritable) {
-                                               messages.push({
-                                                       msg: t('core', 'The temporary directory of this instance points to an either non-existing or non-writable directory.'),
-                                                       type: OC.SetupChecks.MESSAGE_TYPE_WARNING
-                                               })
-                                       }
                                        if (window.location.protocol === 'https:' && data.reverseProxyGeneratedURL.split('/')[0] !== 'https:') {
                                                messages.push({
                                                        msg: t('core', 'You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly. Please read {linkstart}the documentation page about this ↗{linkend}.')
index 6a4f68b977d62e0d739738615d6733deda2c4ef7..b2e1baa618b7ab9c2c698916bb89df61e2ea3e98 100644 (file)
@@ -225,7 +225,6 @@ describe('OC.SetupChecks tests', function() {
                                JSON.stringify({
                                        isFairUseOfFreePushService: true,
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -260,7 +259,6 @@ describe('OC.SetupChecks tests', function() {
                                JSON.stringify({
                                        isFairUseOfFreePushService: true,
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -295,7 +293,6 @@ describe('OC.SetupChecks tests', function() {
                                JSON.stringify({
                                        isFairUseOfFreePushService: true,
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -331,7 +328,6 @@ describe('OC.SetupChecks tests', function() {
                                        isFairUseOfFreePushService: true,
                                        reverseProxyDocs: 'https://docs.nextcloud.com/foo/bar.html',
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -396,7 +392,6 @@ describe('OC.SetupChecks tests', function() {
                                JSON.stringify({
                                        isFairUseOfFreePushService: true,
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -441,7 +436,6 @@ describe('OC.SetupChecks tests', function() {
                                        isFairUseOfFreePushService: true,
                                        reverseProxyDocs: 'https://docs.nextcloud.com/foo/bar.html',
                                        reverseProxyGeneratedURL: 'http://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -475,7 +469,6 @@ describe('OC.SetupChecks tests', function() {
                                        isFairUseOfFreePushService: true,
                                        reverseProxyDocs: 'https://docs.nextcloud.com/foo/bar.html',
                                        reverseProxyGeneratedURL: 'http://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -505,7 +498,6 @@ describe('OC.SetupChecks tests', function() {
                                JSON.stringify({
                                        isFairUseOfFreePushService: true,
                                        reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: true,
                                        generic: {
                                                network: {
                                                        "Internet connectivity": {
@@ -533,39 +525,6 @@ describe('OC.SetupChecks tests', function() {
                                done();
                        });
                });
-
-               it('should return an info if the temporary directory is either non-existent or non-writable', function(done) {
-                       var async = OC.SetupChecks.checkSetup();
-
-                       suite.server.requests[0].respond(
-                               200,
-                               {
-                                       'Content-Type': 'application/json',
-                               },
-                               JSON.stringify({
-                                       isFairUseOfFreePushService: true,
-                                       reverseProxyGeneratedURL: 'https://server',
-                                       temporaryDirectoryWritable: false,
-                                       generic: {
-                                               network: {
-                                                       "Internet connectivity": {
-                                                               severity: "success",
-                                                               description: null,
-                                                               linkToDoc: null
-                                                       }
-                                               },
-                                       },
-                               })
-                       );
-
-                       async.done(function( data, s, x ){
-                               expect(data).toEqual([{
-                                       msg: 'The temporary directory of this instance points to an either non-existing or non-writable directory.',
-                                       type: OC.SetupChecks.MESSAGE_TYPE_WARNING
-                               }]);
-                               done();
-                       });
-               });
        });
 
        describe('checkGeneric', function() {