Skip to content

Commit 507d0ed

Browse files
committed
fix go
1 parent 6235176 commit 507d0ed

File tree

7 files changed

+28
-356
lines changed

7 files changed

+28
-356
lines changed

scripts/cts/testServer/waitForApiKey.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ function addRoutes(app: Express): void {
7373
value: req.params.key,
7474
description: 'my updated api key',
7575
acl: ['search', 'addObject', 'deleteObject'],
76+
indexes: ['Movies', 'Books'],
77+
referers: ['*google.com', '*algolia.com'],
7678
validity: 305,
7779
maxQueriesPerIPPerHour: 95,
7880
maxHitsPerQuery: 20,

specs/search/helpers/waitForApiKey.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ method:
77
summary: Wait for an API key operation
88
description: Waits for an API key to be added, updated, or deleted.
99
parameters:
10-
- in: query
11-
name: operation
12-
description: Whether the API key was created, updated, or deleted.
13-
required: true
14-
schema:
15-
$ref: '#/apiKeyOperation'
1610
- in: query
1711
name: key
1812
description: API key to wait for.
1913
required: true
2014
schema:
2115
type: string
16+
- in: query
17+
name: operation
18+
description: Whether the API key was created, updated, or deleted.
19+
required: true
20+
schema:
21+
$ref: '#/apiKeyOperation'
2222
- in: query
2323
name: apiKey
2424
description: Used to compare fields of the `getApiKey` response on an `update` operation, to check if the `key` has been updated.

tests/CTS/client/search/helpers.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@
390390
"path": "waitForApiKey",
391391
"parameters": {
392392
"key": "api-key-add-operation-test-${{languageCased}}",
393-
"operation": "add"
393+
"operation": "add",
394+
"apiKey": null
394395
},
395396
"expected": {
396397
"type": "response",
@@ -441,6 +442,14 @@
441442
"addObject",
442443
"deleteObject"
443444
],
445+
"indexes": [
446+
"Movies",
447+
"Books"
448+
],
449+
"referers": [
450+
"*google.com",
451+
"*algolia.com"
452+
],
444453
"validity": 305,
445454
"maxQueriesPerIPPerHour": 95,
446455
"maxHitsPerQuery": 20
@@ -456,6 +465,14 @@
456465
"addObject",
457466
"deleteObject"
458467
],
468+
"indexes": [
469+
"Movies",
470+
"Books"
471+
],
472+
"referers": [
473+
"*google.com",
474+
"*algolia.com"
475+
],
459476
"validity": 305,
460477
"maxQueriesPerIPPerHour": 95,
461478
"maxHitsPerQuery": 20,
@@ -488,7 +505,8 @@
488505
"path": "waitForApiKey",
489506
"parameters": {
490507
"key": "api-key-delete-operation-test-${{languageCased}}",
491-
"operation": "delete"
508+
"operation": "delete",
509+
"apiKey": null
492510
},
493511
"expected": {
494512
"type": "response",
Binary file not shown.

tests/output/kotlin/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/output/kotlin/gradlew

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)