Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-302 validate unknown fields for backupStorages (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
gen1us2k authored Sep 21, 2023
1 parent 375d6b1 commit f84f530
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 254 deletions.
8 changes: 7 additions & 1 deletion api-tests/tests/backup-storages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ test('update backup storage failures', async ({ request }) => {
},
errorText: '\'url\' is an invalid URL',
},
{
payload: {
bucket: '-asldf;asdfk;sadf',
},
errorText: 'request body has an error: doesn\'t match schema #/components/schemas/UpdateBackupStorageParams: property \"bucket\" is unsupported',
},
];

for (const testCase of testCases) {
Expand All @@ -187,7 +193,7 @@ test('update: backup storage not found', async ({ request }) => {

const response = await request.patch(`/v1/backup-storages/${name}`, {
data: {
type: 's3',
bucketName: 's3',
},
});

Expand Down
Loading

0 comments on commit f84f530

Please sign in to comment.