Create script for automated testing of bots
Closed this issue · 3 comments
chinmoy12c commented
Required features:
- trigger a bot
- track the logs of all services and parallely dump the logs in separate files based on config
- count the occurrence of matching statements in logs on the fly ( for example errors or the statements that we grep on axiom) and show it in real-time as well as store in file. This can be configured per service using a config object.
- Query Cassandra and find out the stats about notifications.
- Tracking of kafka topic
geeky-abhishek commented
Need to wire this by @chinmoy12c
geeky-abhishek commented
Current report format
Started test at: 2023-06-27 16:26:52
Ended test at: 2023-06-27 16:27:50
Kafka Topics
+-----------------------+-------+
| Item | Count |
+-----------------------+-------+
| broadcast-transformer | 1 |
| com.odk.transformer | 0 |
| generic-transformer | 0 |
| inbound-processed | 1 |
| notification-outbound | 5 |
| outbound | 0 |
| outbound-processed | 0 |
| process-outbound | 5 |
| telemetry | 0 |
+-----------------------+-------+
UCI API
+-------------+-------+
| Item | Count |
+-------------+-------+
| ResolveUser | 1 |
+-------------+-------+
Inbound
+----------------------------+-------+
| Item | Count |
+----------------------------+-------+
| Data inserted in Cassandra | 1 |
| Kafka topic push | 1 |
+----------------------------+-------+
Orchestrator
+------------------------------+-------+
| Item | Count |
+------------------------------+-------+
| Topic consumed from Kafka | 5 |
| Notification pushed to Kafka | 5 |
+------------------------------+-------+
Broadcast Transformer
+------------------------+-------+
| Item | Count |
+------------------------+-------+
| Broadcast Processed | 5 |
| Kafka Push to outbound | 5 |
+------------------------+-------+
Outbound
+------------------------------------+-------+
| Item | Count |
+------------------------------------+-------+
| Saved data in cache | 5 |
| Notification inserted in Cassandra | 5 |
+------------------------------------+-------+
Users inserted in Cassandra: 5
Unique Users inserted in Cassandra: 5
chinmoy12c commented
Further development will be taken along with samagra-comms/inbound#42