Skip to content

Commit 0790a23

Browse files
committed
🔧 Update tests config files
1 parent 04f2574 commit 0790a23

File tree

2 files changed

+66
-57
lines changed

2 files changed

+66
-57
lines changed
Lines changed: 65 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,71 @@
11
{
2-
"listeners": [{
3-
"proto": "http",
4-
"port": 2057,
5-
"mode": "epoll",
6-
"num_threads": 20,
7-
"redborder_uri": true
8-
}],
9-
"brokers": "kafka",
10-
"topic": "rb_flow",
11-
"n2kafka_id": "n2kafka_test",
12-
"rdkafka.socket.max.fails": "3",
13-
"rdkafka.socket.keepalive.enable": "true",
14-
"blacklist": ["192.168.101.3"],
15-
"rb_http2k_config": {
16-
"sensors_uuids": {
17-
"abc": {
18-
"enrichment": {
19-
"a": 1,
20-
"b": "c",
21-
"d": true,
22-
"e": null
23-
},
24-
"organization_uuid": "abc_org"
25-
},
26-
"def": {
27-
"enrichment": {
28-
"f": 1,
29-
"g": "w",
30-
"h": false,
31-
"i": null
32-
},
33-
"organization_uuid": "def_org"
34-
}
2+
"listeners": [{
3+
"proto": "http",
4+
"port": 2057,
5+
"mode": "epoll",
6+
"num_threads": 20,
7+
"redborder_uri": true,
8+
"decode_as": "rb_http2k"
9+
}],
10+
"brokers": "172.26.0.3",
11+
"n2kafka_id": "n2kafka_test",
12+
"rdkafka.socket.max.fails": "3",
13+
"rdkafka.socket.keepalive.enable": "true",
14+
"blacklist": ["192.168.101.3"],
15+
"rb_http2k_config": {
16+
"sensors_uuids": {
17+
"abc": {
18+
"enrichment": {
19+
"a": 1,
20+
"b": "c",
21+
"d": true,
22+
"e": null
3523
},
36-
"organizations_uuids": {
37-
"abc_org": {
38-
"enrichment": {
39-
"a_org": 10
40-
},
41-
"limits": {
42-
"bytes": 10240
43-
}
44-
},
45-
"def_org": {
46-
"enrichment": {
47-
"b_org": 20
48-
},
49-
"limits": {
50-
"bytes": 20480
51-
}
52-
}
24+
"organization_uuid":"abc_org"
25+
},
26+
"def": {
27+
"enrichment": {
28+
"f": 1,
29+
"g": "w",
30+
"h": false,
31+
"i": null
5332
},
54-
"topics": {
55-
"rb_flow": {
56-
"partition_key": "client_mac",
57-
"partition_algo": "mac"
58-
},
59-
"rb_event": {}
33+
"organization_uuid":"def_org"
34+
}
35+
},
36+
"organizations_uuids": {
37+
"abc_org": {
38+
"enrichment": {
39+
"a_org":10
40+
},
41+
"limits": {
42+
"bytes": 10240
43+
}
44+
},
45+
"def_org": {
46+
"enrichment": {
47+
"b_org":20
48+
},
49+
"limits": {
50+
"bytes": 20480
6051
}
52+
}
53+
},
54+
"organizations_sync": {
55+
"put_url": "http://localhost:80/",
56+
"topics": ["rb_monitor","rb_event"],
57+
"interval_s": 5,
58+
"clean_on": {
59+
"timestamp_s_mod":5,
60+
"timestamp_s_offset":4
61+
}
62+
},
63+
"topics": {
64+
"rb_flow": {
65+
"partition_key": "client_mac",
66+
"partition_algo": "mac"
67+
},
68+
"rb_event": {}
6169
}
70+
}
6271
}

configs_example/n2kafka_tests_tcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"num_threads": 40,
77
"max_time_threshold": 3600
88
}],
9-
"brokers": "kafka",
9+
"brokers": "172.26.0.3",
1010
"topic": "rb_flow",
1111
"n2kafka_id": "n2kafka_test",
1212
"rdkafka.socket.max.fails": "3",

0 commit comments

Comments
 (0)