Merge pull request #192 from coreos-inc/sqlssl
Allow SSL cert for the database to be configured
This commit is contained in:
commit
756d6784ca
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