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

Failiures #8

Closed
pedromorgan opened this issue Nov 16, 2014 · 3 comments
Closed

Failiures #8

pedromorgan opened this issue Nov 16, 2014 · 3 comments

Comments

@pedromorgan
Copy link

This is a feature request as I am using to test a local email system, which is a webapp, with both qt/c++, mobile/phonegap and web interfaces...

Useful would be an option to make random or predictable failures happen, eg

  • wrong pass
  • wrong user
  • long lag
  • connection fail

This would be particularily useful to handle these errors on the client side..

-fails="all" (or credentials, lag, connect, et all)
@ian-kent ian-kent added this to the Go-MailHog v0.07 milestone Nov 17, 2014
@ian-kent ian-kent mentioned this issue Nov 17, 2014
@pedromorgan
Copy link
Author

OK, here's what I want as I am hacking away..

I am a little stuck with pylons framework (cos it still works here).. but the turbomail
is difficult to debug... recover/ reply to sended the eror et all

At the same time I am working on a go project, go-mail2ajax
that does this smtp and reads imap.. etc..

So ideally if I had in mailhog a:

Manually:

  • ON/OFF = throw user name invalid error
  • ON/OFF =throw password wrong error
  • ON/OFF =lag letween 1 and 30 seco)
  • ON/OFF = throw timeout
  • ON/OFF = throw a silly error
    and
  • so all the above stuff randomly around 1 in N eg 5

So as a dev, I dont need to change user name, and pass as part of test suite etc..
as MailHog is gonna throw these errors for me.. dont matter which app am developing..

Anyway.. thats the idea in my head..

@pedromorgan
Copy link
Author

Eg c+p from a project..
am creating spelling mistakes and calling a crash tantrum in py

##=============================================================
@jsonify
def sms_q(self):

    payload = dict(success = True)

    from random import randrange
    rany = randrange(0, 3)
    if rany == 2:
        throwatantruem


    json_str = h.v(request, "sssjson_payload")  
    if False: #json_str or request.method == "POST":

@ian-kent ian-kent mentioned this issue Dec 10, 2014
@ian-kent ian-kent modified the milestones: Go-MailHog v0.08, Go-MailHog v0.09 Dec 21, 2014
@ian-kent
Copy link
Member

Added some initial support for this - have a look at JIM.md

I'll close this for now - feel free to open a new feature request if you need Jim to do more 😄

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

No branches or pull requests

2 participants