-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KOGITO-9415 Added disabled test for AsyncAPI
Signed-off-by: Helber Belmiro <[email protected]>
- Loading branch information
Showing
4 changed files
with
111 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
40 changes: 40 additions & 0 deletions
40
...kus-serverless-workflow-extension-live-reload-test/src/main/resources/specs/asyncAPI.yaml
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,40 @@ | ||
asyncapi: '2.0.0' | ||
id: 'oneConsumer' | ||
info: | ||
title: Kafka Application | ||
version: '1.0.0' | ||
description: Kafka Application | ||
license: | ||
name: Apache 2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0 | ||
servers: | ||
production: | ||
url: localhost:9092 | ||
description: Development server | ||
protocol: kafka | ||
protocolVersion: '1.0.0' | ||
channels: | ||
wait: | ||
description: A message channel | ||
subscribe: | ||
operationId: wait | ||
summary: Get messages | ||
message: | ||
$ref: '#/components/messages/message' | ||
publish: | ||
operationId: sendWait | ||
summary: Send messages | ||
message: | ||
$ref: '#/components/messages/message' | ||
components: | ||
messages: | ||
message: | ||
name: message | ||
title: A message | ||
summary: A message | ||
contentType: application/json | ||
payload: | ||
$ref: "#/components/schemas/message" | ||
schemas: | ||
message: | ||
type: object |
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
27 changes: 27 additions & 0 deletions
27
...-serverless-workflow-extension-live-reload-test/src/test/resources/asyncPublisher.sw.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,27 @@ | ||
{ | ||
"id": "asyncEventPublisher", | ||
"version": "1.0", | ||
"name": "Workflow async consumer test", | ||
"description": "An test that verifies an async api spec file with a publish channel is really publishing", | ||
"start": "publishEvent", | ||
"functions": [ | ||
{ | ||
"name": "publishEvent", | ||
"type": "asyncapi", | ||
"operation": "specs/asyncAPI.yaml#sendWait" | ||
} | ||
], | ||
"states": [ | ||
{ | ||
"name": "publishEvent", | ||
"type": "operation", | ||
"actions": [ | ||
{ | ||
"name": "publishEvent", | ||
"functionRef": "publishEvent" | ||
} | ||
], | ||
"end": true | ||
} | ||
] | ||
} |