fix: get ssl certificate
- Do not restrict on project_id Change-Id: I68ba1702528b07ff1ffd984986ae380163ed29ee
This commit is contained in:
parent
c51d8f3d0c
commit
acd4c0b676
|
@ -100,9 +100,10 @@ class SSLCertificateController(base.Controller, hooks.HookController):
|
|||
total_cert_info = []
|
||||
|
||||
try:
|
||||
# NOTE(TheSriram): we can also enforce project_id constraints
|
||||
certs_info = certificate_controller.get_certs_info_by_domain(
|
||||
domain_name=domain_name,
|
||||
project_id=self.project_id)
|
||||
project_id=None)
|
||||
except ValueError:
|
||||
pecan.abort(404, detail='certificate '
|
||||
'could not be found '
|
||||
|
|
|
@ -126,13 +126,11 @@ class SSLCertificateControllerTest(base.FunctionalTest):
|
|||
self.assertEqual(202, response.status_code)
|
||||
|
||||
# get existing domain with different project_id
|
||||
|
||||
response = self.app.get('/v1.0/ssl_certificate/{0}'.format(domain),
|
||||
headers={
|
||||
'Content-Type': 'application/json',
|
||||
'X-Project-ID': str(uuid.uuid4())},
|
||||
expect_errors=True)
|
||||
self.assertEqual(404, response.status_code)
|
||||
'X-Project-ID': str(uuid.uuid4())})
|
||||
self.assertEqual(200, response.status_code)
|
||||
|
||||
def test_create_with_invalid_json(self):
|
||||
# create with errorenous data: invalid json data
|
||||
|
|
Loading…
Reference in New Issue