api: let /api/jobs/ base directory return a 404 (#57970)
This commit is contained in:
parent
16fa5cf0e3
commit
dcfadd61d7
|
@ -249,3 +249,10 @@ def test_afterjobs_status(pub):
|
|||
'completion_status': '',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def test_afterjobs_base_directory(pub):
|
||||
# missing signature
|
||||
get_app(pub).get('/api/jobs/', status=403)
|
||||
# base directory is 404
|
||||
get_app(pub).get(sign_url('/api/jobs/?orig=coucou', '1234'), status=404)
|
||||
|
|
|
@ -1217,7 +1217,7 @@ class AfterJobDirectory(Directory):
|
|||
|
||||
|
||||
class AfterJobsDirectory(Directory):
|
||||
_q_exports = ['']
|
||||
_q_exports = []
|
||||
|
||||
def _q_lookup(self, component):
|
||||
api_user = get_user_from_api_query_string()
|
||||
|
|
Loading…
Reference in New Issue