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

EVEREST-302 validate unknown fields for backupStorages #170

Merged
merged 5 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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