summaryrefslogtreecommitdiff
path: root/test/nagios/webapp_signup.py
blob: 3e7283e5a3bc60751310659fb098127615cbf193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)