Further fixes to the Kubernetes config provider, and a new set of proper unit tests
This commit is contained in:
parent
babb7bb803
commit
2ae69dc651
8 changed files with 181 additions and 107 deletions
|
@ -291,7 +291,7 @@ class SuperUserConfigFile(ApiResource):
|
|||
if not uploaded_file:
|
||||
abort(400)
|
||||
|
||||
config_provider.save_volume_file(filename, uploaded_file)
|
||||
config_provider.save_volume_file(uploaded_file, filename)
|
||||
return {
|
||||
'status': True
|
||||
}
|
||||
|
|
|
@ -927,7 +927,7 @@ class SuperUserCustomCertificate(ApiResource):
|
|||
|
||||
logger.debug('Saving custom certificate %s', certpath)
|
||||
cert_full_path = config_provider.get_volume_path(EXTRA_CA_DIRECTORY, certpath)
|
||||
config_provider.save_volume_file(cert_full_path, uploaded_file)
|
||||
config_provider.save_volume_file(uploaded_file, cert_full_path)
|
||||
logger.debug('Saved custom certificate %s', certpath)
|
||||
|
||||
# Validate the certificate.
|
||||
|
|
Reference in a new issue