diff options
| author | Azul <azul@leap.se> | 2014-04-16 12:37:03 +0200 | 
|---|---|---|
| committer | Azul <azul@leap.se> | 2014-04-17 10:39:59 +0200 | 
| commit | 36e99d8b23263cffcd58988c40ca3217349a94f2 (patch) | |
| tree | 08766f68bd91a397bd86cd7468957d48d10c73b8 /test/nagios/webapp_signup.py | |
| parent | 8907100f3ffe99a2a9110c90418c9e5844b4ab03 (diff) | |
nagios test: also test registering new users
Diffstat (limited to 'test/nagios/webapp_signup.py')
| -rwxr-xr-x | test/nagios/webapp_signup.py | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/test/nagios/webapp_signup.py b/test/nagios/webapp_signup.py new file mode 100755 index 0000000..3e7283e --- /dev/null +++ b/test/nagios/webapp_signup.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python + +# Test Signup and Login with the webapp API works. + +from support.api import Api +from support.config import Config +from support.user import User + +def signup_successfully(): +    config = Config() +    user = User() +    api = Api(config, verify=False) +    user.signup(api) +    user.login(api) + +if __name__ == '__main__': +    from support import nagios_test +    exit_code = nagios_test.run(signup_successfully) +    exit(exit_code)  | 
