From 36e99d8b23263cffcd58988c40ca3217349a94f2 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 16 Apr 2014 12:37:03 +0200 Subject: nagios test: also test registering new users --- test/nagios/webapp_signup.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test/nagios/webapp_signup.py (limited to 'test/nagios/webapp_signup.py') 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) -- cgit v1.2.3