[GH-ISSUE #1201] Add url endpoint for runign test cases #980

Closed
opened 2026-02-27 11:14:34 +03:00 by kerem · 3 comments
Owner

Originally created by @traverseda on GitHub (Jul 28, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1201

I'm working on getting modoboa integrated with third-party monitoring, using grafana and ansible. Being able to run test cases from the web, and at regular intervals, would be useful.

Originally created by @traverseda on GitHub (Jul 28, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1201 I'm working on getting modoboa integrated with third-party monitoring, using grafana and ansible. Being able to run test cases from the web, and at regular intervals, would be useful.
kerem 2026-02-27 11:14:34 +03:00
Author
Owner

@tonioo commented on GitHub (Jul 28, 2017):

@traverseda A url endpoint to run tests sounds weird to me... Can't you just a shell script through ssh?

<!-- gh-comment-id:318665458 --> @tonioo commented on GitHub (Jul 28, 2017): @traverseda A url endpoint to run tests sounds weird to me... Can't you just a shell script through ssh?
Author
Owner

@traverseda commented on GitHub (Jul 28, 2017):

I can do pretty much whatever I want, I am a decent programmer ;p

What that would allow for is one-line integration with a bunch of different monitoring frameworks. Type in the url for your monitoring page, if it changes get an email. A crontab running the testcases at regular intervals and outputting the results to some log-monitoring software would of course be better. But making that information available over the web is a decent best-effort for less complex monitoring systems.

It's also an entry point for DoS attacks, since running test cases would take up a bunch of resources. It would have to be handled carefully.

<!-- gh-comment-id:318670079 --> @traverseda commented on GitHub (Jul 28, 2017): I can do pretty much whatever I want, I am a decent programmer ;p What that would allow for is one-line integration with a bunch of different monitoring frameworks. Type in the url for your monitoring page, if it changes get an email. A crontab running the testcases at regular intervals and outputting the results to some log-monitoring software would of course be *better*. But making that information available over the web is a decent best-effort for less complex monitoring systems. It's also an entry point for DoS attacks, since running test cases would take up a bunch of resources. It would have to be handled carefully.
Author
Owner

@kryskool commented on GitHub (Mar 25, 2018):

Hi

It's a worst solution, because modoboa use a lot of component can be test separately, like postfix, amavis, postgresql/mariadb etc, you can stop mdooboa and Postfix dans the database continue to work perfectly.

On modoboa you can only test the first page return status code 200, other status page available in Nginx or Apache2

<!-- gh-comment-id:375972236 --> @kryskool commented on GitHub (Mar 25, 2018): Hi It's a worst solution, because modoboa use a lot of component can be test separately, like postfix, amavis, postgresql/mariadb etc, you can stop mdooboa and Postfix dans the database continue to work perfectly. On modoboa you can only test the first page return status code 200, other status page available in Nginx or Apache2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#980
No description provided.