Allow SSL cert for the database to be configured
This change adds a field for the SSL cert for the database in the setup tool. Fixes #89
This commit is contained in:
parent
4ec2143d47
commit
bb07d0965f
8 changed files with 45 additions and 12 deletions
|
@ -47,7 +47,13 @@ class TestSuperUserConfigFile(ApiTestCase):
|
|||
|
||||
def test_post_non_superuser(self):
|
||||
with ConfigForTesting():
|
||||
# No user.
|
||||
# No user, before config.yaml exists.
|
||||
self.postResponse(SuperUserConfigFile, params=dict(filename='ssl.cert'), expected_code=400)
|
||||
|
||||
# Write some config.
|
||||
self.putJsonResponse(SuperUserConfig, data=dict(config={}, hostname='foobar'))
|
||||
|
||||
# No user, with config.yaml.
|
||||
self.postResponse(SuperUserConfigFile, params=dict(filename='ssl.cert'), expected_code=403)
|
||||
|
||||
# Non-superuser.
|
||||
|
|
Reference in a new issue