From c8d57c0f6fc081e23aab1dac5384c3de5d639c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 21 Sep 2023 11:07:07 +0200 Subject: [PATCH 1/7] Fix: Publish CI/CD script --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a87f1e574f..4ee204d9d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: with: fetch-depth: 2 submodules: recursive - ref: master + ref: 1.4.x - name: Login to Docker Hub uses: docker/login-action@v2 From 66f06cb7798e5f6810a7cb5da35c59b09a65705f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Thu, 21 Sep 2023 11:10:03 +0200 Subject: [PATCH 2/7] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4ee204d9d4..385016db91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: with: fetch-depth: 2 submodules: recursive - ref: 1.4.x + ref: cl-1.4.x - name: Login to Docker Hub uses: docker/login-action@v2 From c7e6efc050e1bc7a9f422cfc46cb22e4998fca52 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 21 Sep 2023 10:23:55 +0000 Subject: [PATCH 3/7] chore: update backups schedule --- app/controllers/api/projects.php | 15 ++++++++------- composer.lock | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 11a9f8c558..73051a7953 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -92,16 +92,17 @@ App::post('/v1/projects') $projectId = ($projectId == 'unique()') ? ID::unique() : $projectId; - $backups['database_db_fra1_02'] = ['from' => '7:30', 'to' => '8:15']; - $backups['database_db_fra1_03'] = ['from' => '10:30', 'to' => '11:15']; - $backups['database_db_fra1_04'] = ['from' => '13:30', 'to' => '14:15']; - $backups['database_db_fra1_05'] = ['from' => '4:30', 'to' => '5:15']; - $backups['database_db_fra1_06'] = ['from' => '16:30', 'to' => '17:15']; + $backups['database_db_fra1_v14x_02'] = ['from' => '7:30', 'to' => '8:15']; + $backups['database_db_fra1_v14x_03'] = ['from' => '10:30', 'to' => '11:15']; + $backups['database_db_fra1_v14x_04'] = ['from' => '13:30', 'to' => '14:15']; + $backups['database_db_fra1_v14x_05'] = ['from' => '4:30', 'to' => '5:15']; + $backups['database_db_fra1_v14x_06'] = ['from' => '16:30', 'to' => '17:15']; + $backups['database_db_fra1_v14x_07'] = ['from' => '19:30', 'to' => '20:15']; $databases = Config::getParam('pools-database', []); /** - * Extract db from list while backing + * Remove databases from the list that are currently undergoing an backup */ if (count($databases) > 1) { $now = new \DateTime(); @@ -120,7 +121,7 @@ App::post('/v1/projects') } } - if ($index = array_search('database_db_fra1_06', $databases)) { + if ($index = array_search('database_db_fra1_v14x_07', $databases)) { $database = $databases[$index]; } else { $database = $databases[array_rand($databases)]; diff --git a/composer.lock b/composer.lock index a345b65c45..b154b4b3f0 100644 --- a/composer.lock +++ b/composer.lock @@ -6029,5 +6029,5 @@ "platform-overrides": { "php": "8.0" }, - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } From 24204bce547544aeb69ba4629da95a205cae8c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 24 Sep 2023 14:07:37 +0200 Subject: [PATCH 4/7] Add all worker health endpoints --- app/controllers/api/health.php | 111 ++++++++++++- ...{get-queue-logs.md => get-queue-audits.md} | 0 docs/references/health/get-queue-builds.md | 1 + docs/references/health/get-queue-databases.md | 1 + docs/references/health/get-queue-deletes.md | 1 + docs/references/health/get-queue-mails.md | 1 + docs/references/health/get-queue-messaging.md | 1 + .../references/health/get-queue-migrations.md | 1 + .../Health/HealthCustomServerTest.php | 157 ++++++++++++++++++ 9 files changed, 270 insertions(+), 4 deletions(-) rename docs/references/health/{get-queue-logs.md => get-queue-audits.md} (100%) create mode 100644 docs/references/health/get-queue-builds.md create mode 100644 docs/references/health/get-queue-databases.md create mode 100644 docs/references/health/get-queue-deletes.md create mode 100644 docs/references/health/get-queue-mails.md create mode 100644 docs/references/health/get-queue-messaging.md create mode 100644 docs/references/health/get-queue-migrations.md diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index d6a2612f32..ee6a7fc2a0 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -353,14 +353,15 @@ App::get('/v1/health/queue/webhooks') $response->dynamic(new Document([ 'size' => Resque::size(Event::WEBHOOK_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); }, ['response']); -App::get('/v1/health/queue/logs') - ->desc('Get Logs Queue') +App::get('/v1/health/queue/audits') + ->alias('/v1/health/queue/logs') + ->desc('Get Audits Queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueLogs') - ->label('sdk.description', '/docs/references/health/get-queue-logs.md') + ->label('sdk.method', 'getQueueAudits') + ->label('sdk.description', '/docs/references/health/get-queue-audits.md') ->label('sdk.response.code', Response::STATUS_CODE_OK) ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) @@ -387,6 +388,108 @@ App::get('/v1/health/queue/certificates') $response->dynamic(new Document([ 'size' => Resque::size(Event::CERTIFICATES_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); }, ['response']); +App::get('/v1/health/queue/builds') + ->desc('Get Builds Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueBuilds') + ->label('sdk.description', '/docs/references/health/get-queue-builds.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::BUILDS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + +App::get('/v1/health/queue/databases') + ->desc('Get Databases Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueDatabases') + ->label('sdk.description', '/docs/references/health/get-queue-databases.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::DATABASE_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + +App::get('/v1/health/queue/deletes') + ->desc('Get Deletes Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueDeletes') + ->label('sdk.description', '/docs/references/health/get-queue-deletes.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::DELETE_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + +App::get('/v1/health/queue/mails') + ->desc('Get Mails Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueMails') + ->label('sdk.description', '/docs/references/health/get-queue-mails.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::MAILS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + +App::get('/v1/health/queue/messaging') + ->desc('Get Messaging Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueMessaging') + ->label('sdk.description', '/docs/references/health/get-queue-messaging.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::MESSAGING_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + +App::get('/v1/health/queue/migrations') + ->desc('Get Migrations Queue') + ->groups(['api', 'health']) + ->label('scope', 'health.read') + ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) + ->label('sdk.namespace', 'health') + ->label('sdk.method', 'getQueueMigrations') + ->label('sdk.description', '/docs/references/health/get-queue-migrations.md') + ->label('sdk.response.code', Response::STATUS_CODE_OK) + ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) + ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) + ->inject('response') + ->action(function (Response $response) { + + $response->dynamic(new Document([ 'size' => Resque::size(Event::MIGRATIONS_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); + }, ['response']); + App::get('/v1/health/queue/functions') ->desc('Get Functions Queue') ->groups(['api', 'health']) diff --git a/docs/references/health/get-queue-logs.md b/docs/references/health/get-queue-audits.md similarity index 100% rename from docs/references/health/get-queue-logs.md rename to docs/references/health/get-queue-audits.md diff --git a/docs/references/health/get-queue-builds.md b/docs/references/health/get-queue-builds.md new file mode 100644 index 0000000000..fcd5fcf478 --- /dev/null +++ b/docs/references/health/get-queue-builds.md @@ -0,0 +1 @@ +Get the number of builds that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/docs/references/health/get-queue-databases.md b/docs/references/health/get-queue-databases.md new file mode 100644 index 0000000000..064e6095ce --- /dev/null +++ b/docs/references/health/get-queue-databases.md @@ -0,0 +1 @@ +Get the number of database changes that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/docs/references/health/get-queue-deletes.md b/docs/references/health/get-queue-deletes.md new file mode 100644 index 0000000000..884b83dd07 --- /dev/null +++ b/docs/references/health/get-queue-deletes.md @@ -0,0 +1 @@ +Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/docs/references/health/get-queue-mails.md b/docs/references/health/get-queue-mails.md new file mode 100644 index 0000000000..6270f64f7a --- /dev/null +++ b/docs/references/health/get-queue-mails.md @@ -0,0 +1 @@ +Get the number of mails that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/docs/references/health/get-queue-messaging.md b/docs/references/health/get-queue-messaging.md new file mode 100644 index 0000000000..8bc994923f --- /dev/null +++ b/docs/references/health/get-queue-messaging.md @@ -0,0 +1 @@ +Get the number of messages that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/docs/references/health/get-queue-migrations.md b/docs/references/health/get-queue-migrations.md new file mode 100644 index 0000000000..8645c80379 --- /dev/null +++ b/docs/references/health/get-queue-migrations.md @@ -0,0 +1 @@ +Get the number of migrations that are waiting to be processed in the Appwrite internal queue server. \ No newline at end of file diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 96c9bde5c7..22c869fdef 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -183,6 +183,16 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); + + $response = $this->client->call(Client::METHOD_GET, '/health/queue/audits', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + /** * Test for FAILURE */ @@ -211,6 +221,153 @@ class HealthCustomServerTest extends Scope return []; } + public function testFunctionsSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/functions', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testBuildsSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/builds', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testDatabasesSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/databases', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testDeletesSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/deletes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testMailsSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/mails', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testMessagingSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/messaging', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + + public function testMigrationsSuccess(): array + { + /** + * Test for SUCCESS + */ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/migrations', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertIsInt($response['body']['size']); + $this->assertLessThan(100, $response['body']['size']); + + /** + * Test for FAILURE + */ + + return []; + } + public function testStorageLocalSuccess(): array { /** From 725897c89678968b55869bc1f7d04b4465af6f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 24 Sep 2023 14:36:20 +0200 Subject: [PATCH 5/7] Rename audits back to logs --- app/controllers/api/health.php | 9 ++++----- .../health/{get-queue-audits.md => get-queue-logs.md} | 0 tests/e2e/Services/Health/HealthCustomServerTest.php | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) rename docs/references/health/{get-queue-audits.md => get-queue-logs.md} (100%) diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index ee6a7fc2a0..6aabb17940 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -353,15 +353,14 @@ App::get('/v1/health/queue/webhooks') $response->dynamic(new Document([ 'size' => Resque::size(Event::WEBHOOK_QUEUE_NAME) ]), Response::MODEL_HEALTH_QUEUE); }, ['response']); -App::get('/v1/health/queue/audits') - ->alias('/v1/health/queue/logs') - ->desc('Get Audits Queue') +App::get('/v1/health/queue/logs') + ->desc('Get Logs Queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk.auth', [APP_AUTH_TYPE_KEY]) ->label('sdk.namespace', 'health') - ->label('sdk.method', 'getQueueAudits') - ->label('sdk.description', '/docs/references/health/get-queue-audits.md') + ->label('sdk.method', 'getQueueLogs') + ->label('sdk.description', '/docs/references/health/get-queue-logs.md') ->label('sdk.response.code', Response::STATUS_CODE_OK) ->label('sdk.response.type', Response::CONTENT_TYPE_JSON) ->label('sdk.response.model', Response::MODEL_HEALTH_QUEUE) diff --git a/docs/references/health/get-queue-audits.md b/docs/references/health/get-queue-logs.md similarity index 100% rename from docs/references/health/get-queue-audits.md rename to docs/references/health/get-queue-logs.md diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 22c869fdef..0ea9811617 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -184,7 +184,7 @@ class HealthCustomServerTest extends Scope $this->assertLessThan(100, $response['body']['size']); - $response = $this->client->call(Client::METHOD_GET, '/health/queue/audits', array_merge([ + $response = $this->client->call(Client::METHOD_GET, '/health/queue/logs', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); From b4c5ef2d173e3b87e78dcd45f357cb3da38b9a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 24 Sep 2023 14:36:47 +0200 Subject: [PATCH 6/7] Remove double test --- tests/e2e/Services/Health/HealthCustomServerTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index 0ea9811617..a2efd30ce0 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -183,16 +183,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - - $response = $this->client->call(Client::METHOD_GET, '/health/queue/logs', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), []); - - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertIsInt($response['body']['size']); - $this->assertLessThan(100, $response['body']['size']); - /** * Test for FAILURE */ From 9f244f976e194c43141941396a1ac89851ef7ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 25 Sep 2023 15:32:51 +0200 Subject: [PATCH 7/7] Remvoe unnessessary comments --- .../Health/HealthCustomServerTest.php | 72 ------------------- 1 file changed, 72 deletions(-) diff --git a/tests/e2e/Services/Health/HealthCustomServerTest.php b/tests/e2e/Services/Health/HealthCustomServerTest.php index a2efd30ce0..4ac15bd95c 100644 --- a/tests/e2e/Services/Health/HealthCustomServerTest.php +++ b/tests/e2e/Services/Health/HealthCustomServerTest.php @@ -29,10 +29,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['ping']); $this->assertLessThan(100, $response['body']['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -51,10 +47,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['statuses'][0]['ping']); $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -73,10 +65,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['statuses'][0]['ping']); $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -95,10 +83,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['statuses'][0]['ping']); $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -117,10 +101,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['statuses'][0]['ping']); $this->assertLessThan(100, $response['body']['statuses'][0]['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -141,10 +121,6 @@ class HealthCustomServerTest extends Scope $this->assertNotEmpty($response['body']['localTime']); $this->assertLessThan(10, $response['body']['diff']); - /** - * Test for FAILURE - */ - return []; } @@ -162,10 +138,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -183,10 +155,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -204,10 +172,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -225,10 +189,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -246,10 +206,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -267,10 +223,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -288,10 +240,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -309,10 +257,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -330,10 +274,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -351,10 +291,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['size']); $this->assertLessThan(100, $response['body']['size']); - /** - * Test for FAILURE - */ - return []; } @@ -373,10 +309,6 @@ class HealthCustomServerTest extends Scope $this->assertIsInt($response['body']['ping']); $this->assertLessThan(100, $response['body']['ping']); - /** - * Test for FAILURE - */ - return []; } @@ -395,10 +327,6 @@ class HealthCustomServerTest extends Scope $this->assertIsString($response['body']['status']); $this->assertIsString($response['body']['version']); - /** - * Test for FAILURE - */ - return []; } }