summaryrefslogtreecommitdiff
path: root/test/nagios/webapp_login.py
blob: 4e78836ade8f605b07f2f9a2901a051fa5577c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

# Test Authentication with the webapp API works.

import string
import random
from support.api import Api
from support.config import Config
from support.user import User

def login_successfully():
    config = Config()
    user = User(config)
    api = Api(config, verify=False)
    user.login(api)

if __name__ == '__main__':
    from support import nagios_test
    exit_code = nagios_test.run(login_successfully)
    exit(exit_code)