From cf34359a14c2003dbc4170d2d1be5c53d2ac35a8 Mon Sep 17 00:00:00 2001 From: Michal Kralik Date: Thu, 21 Sep 2023 12:25:24 +0200 Subject: [PATCH] Add tests --- api-tests/tests/backup-storages.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api-tests/tests/backup-storages.spec.ts b/api-tests/tests/backup-storages.spec.ts index 5dea338f..6436a975 100644 --- a/api-tests/tests/backup-storages.spec.ts +++ b/api-tests/tests/backup-storages.spec.ts @@ -132,6 +132,17 @@ test('create backup storage failures', async ({ request }) => { }, errorText: '\'url\' is an invalid URL', }, + { + payload: { + type: 'azure', + name: 'invalid', + region: 'us-east-2', + bucketName: 'invalid', + accessKey: 'ssdssd', + secretKey: 'ssdssdssdssd', + }, + errorText: 'Could not connect to the backup storage, please check the new credentials are correct', + }, ]; for (const testCase of testCases) {