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

Commit

Permalink
targetNamespaces array
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Feb 9, 2024
1 parent 72bc7c6 commit 27fea05
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions api-tests/tests/backup-storages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test('add/list/get/delete s3 backup storage success', async ({request}) => {
region: 'us-east-2',
accessKey: 'sdfs',
secretKey: 'sdfsdfsd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
}

const response = await request.post(`/v1/backup-storages`, {
Expand Down Expand Up @@ -65,7 +65,7 @@ test('add/list/get/delete s3 backup storage success', async ({request}) => {
bucketName: 'percona-test-backup-storage1',
accessKey: 'otherAccessKey',
secretKey: 'otherSecret',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
}
const updated = await request.patch(`/v1/backup-storages/${name}`, {
data: updatePayload,
Expand Down Expand Up @@ -100,7 +100,7 @@ test('add/list/get/delete azure backup storage success', async ({request}) => {
bucketName: 'percona-test-backup-storage',
accessKey: 'sdfs',
secretKey: 'sdfsdfsd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
}

const response = await request.post(`/v1/backup-storages`, {
Expand Down Expand Up @@ -186,7 +186,7 @@ test('create backup storage failures', async ({request}) => {
region: 'us-east-2',
accessKey: 'ssdssd',
secretKey: 'ssdssdssdssd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
},
errorText: '\'name\' is not RFC 1035 compatible',
},
Expand All @@ -199,7 +199,7 @@ test('create backup storage failures', async ({request}) => {
region: 'us-east-2',
accessKey: 'ssdssd',
secretKey: 'ssdssdssdssd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
},
errorText: '\'url\' is an invalid URL',
},
Expand All @@ -210,7 +210,7 @@ test('create backup storage failures', async ({request}) => {
bucketName: 'invalid',
accessKey: 'ssdssd',
secretKey: 'ssdssdssdssd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
},
errorText: 'Region is required',
},
Expand All @@ -222,7 +222,7 @@ test('create backup storage failures', async ({request}) => {
bucketName: 'invalid',
accessKey: 'ssdssd',
secretKey: 'ssdssdssdssd',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
},
errorText: '"/type": value is not one of the allowed values',
},
Expand All @@ -246,7 +246,7 @@ test('update backup storage failures', async ({request}) => {
region: 'us-east-2',
accessKey: 'sdfsdfs',
secretKey: 'lkdfslsldfka',
targetNamespaces: testsNs
targetNamespaces: [testsNs]
}
const response = await request.post(`/v1/backup-storages`, {
data: createPayload,
Expand Down
12 changes: 6 additions & 6 deletions api-tests/tests/monitoring-instances.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('create monitoring instance with api key', async ({ request }) => {
type: 'pmm',
name: `${testPrefix}-key`,
url: 'http://monitoring',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
pmm: {
apiKey: '123',
},
Expand All @@ -60,7 +60,7 @@ test('create monitoring instance with user/password', async ({ request }) => {
type: 'pmm',
name: `${testPrefix}-pass`,
url: 'http://127.0.0.1:8888',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
pmm: {
user: 'admin',
password: 'admin',
Expand All @@ -82,7 +82,7 @@ test('create monitoring instance missing pmm', async ({ request }) => {
type: 'pmm',
name: 'monitoring-fail',
url: 'http://monitoring-instance',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
}

const response = await request.post('/v1/monitoring-instances', { data })
Expand All @@ -95,7 +95,7 @@ test('create monitoring instance missing pmm credentials', async ({ request }) =
type: 'pmm',
name: 'monitoring-fail',
url: 'http://monitoring-instance',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
pmm: {},
}

Expand Down Expand Up @@ -244,7 +244,7 @@ test('update monitoring instances failures', async ({ request }) => {
type: 'pmm',
name: `${testPrefix}-fail`,
url: 'http://monitoring',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
pmm: {
apiKey: '123',
},
Expand Down Expand Up @@ -301,7 +301,7 @@ async function createInstances(request: APIRequestContext, namePrefix: string, c
type: 'pmm',
name: '',
url: 'http://monitoring-instance',
targetNamespaces: testsNs,
targetNamespaces: [testsNs],
pmm: {
apiKey: '123',
},
Expand Down

0 comments on commit 27fea05

Please sign in to comment.