Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script for automated testing of bots #127

Closed
4 of 5 tasks
chinmoy12c opened this issue Jun 19, 2023 · 3 comments
Closed
4 of 5 tasks

Create script for automated testing of bots #127

chinmoy12c opened this issue Jun 19, 2023 · 3 comments
Assignees

Comments

@chinmoy12c
Copy link
Member

chinmoy12c commented Jun 19, 2023

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
@chinmoy12c chinmoy12c self-assigned this Jun 19, 2023
@geeky-abhishek
Copy link
Contributor

Need to wire this by @chinmoy12c

@geeky-abhishek
Copy link
Contributor

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
Copy link
Member Author

Further development will be taken along with samagra-comms/inbound#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants