blob: 77413257b68a8f3b92a281012ed2a93e658c882b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env python
# Test Authentication with the webapp API works.
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)
|