Merge pull request #192 from coreos-inc/sqlssl

Allow SSL cert for the database to be configured
This commit is contained in:
Jimmy Zelinskie 2015-06-29 13:33:31 -04:00
commit 756d6784ca
8 changed files with 45 additions and 12 deletions

View file

@ -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.