-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add integration test using Kafka endpoint and secret
(cherry picked from commit bb5711c)
- Loading branch information
1 parent
5a29f26
commit 9d5d67e
Showing
2 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...c/test/resources/apis/v4/messages/http-get/http-get-entrypoint-kafka-endpoint-secret.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"id": "http-get-entrypoint-kafka-endpoint-secret", | ||
"name": "my-api-secret-conf", | ||
"apiVersion": "1.0", | ||
"definitionVersion": "4.0.0", | ||
"type": "message", | ||
"description": "api v4 using HTTP-GET entrypoint", | ||
"listeners": [ | ||
{ | ||
"type": "http", | ||
"paths": [ | ||
{ | ||
"path": "/test" | ||
} | ||
], | ||
"entrypoints": [ | ||
{ | ||
"type": "http-get", | ||
"configuration": { | ||
"messagesLimitCount": 3, | ||
"messagesLimitDurationMs": 10000, | ||
"headersInPayload": true, | ||
"metadataInPayload": true | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"endpointGroups": [ | ||
{ | ||
"name": "default-group", | ||
"type": "kafka", | ||
"endpoints": [ | ||
{ | ||
"name": "default", | ||
"type": "kafka", | ||
"weight": 1, | ||
"inheritConfiguration": false, | ||
"configuration": { | ||
"bootstrapServers": "{#secrets.get('/vault/secret/kafka:bootstrap')}" | ||
}, | ||
"sharedConfigurationOverride": { | ||
"consumer": { | ||
"enabled": true, | ||
"topics": ["test-topic"], | ||
"autoOffsetReset": "earliest" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"flows": [], | ||
"analytics": { | ||
"enabled": false | ||
} | ||
} |