-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtest.yaml
57 lines (50 loc) · 1.13 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pipeline:
startUp:
action: docker/ssh:composeUp
comments: setup kafka cluster
sleepTimeMs: 10000
runInBackground: true
source:
URL: docker-compose.yml
create:
sleepTimeMs: 10000
action: msg:setupResource
comments: create topic and wait for a leadership election
resources:
- URL: myTopic
type: topic
replicationFactor: 1
partitions: 1
brokers:
- localhost:9092
setup:
action: msg:push
dest:
url: tcp://localhost:9092/myTopic
vendor: kafka
messages:
- data: "this is my 1st message"
attributes:
key: abc
- data: "this is my 2nd message"
attributes:
key: xyz
validate:
action: msg:pull
count: 2
nack: true
source:
url: tcp://localhost:9092/myTopic
vendor: kafka
expect:
- '@indexBy@': 'Attributes.key'
- Data: "this is my 1st message"
Attributes:
key: abc
- Data: "this is my 2nd message"
Attributes:
key: xyz
cleanUp:
action: docker/ssh:composeDown
source:
URL: docker-compose.yml