Commit 994dab22 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-850: Remove staging restriction

parent 8780ddb3
......@@ -366,9 +366,6 @@ class JobBuilder(object):
shared_hashed_id = _generate_hashed_id()
for source, destination in pairs:
if source.scheme not in ('srm', 'mock') and self.is_bringonline:
raise HTTPBadRequest('Staging operations can only be used with the SRM protocol')
f = dict(
job_id=self.job_id,
file_index=f_index,
......
......@@ -198,41 +198,3 @@ class TestSubmitToStaging(TestController):
return job_id
def test_staging_no_srm(self):
"""
Anything that is not SRM should not be allowed to be submitted to STAGING
Regression for FTS-153
"""
self.setup_gridsite_environment()
self.push_delegation()
job = {
'files': [{
'sources': ['root://source.es/file'],
'destinations': ['root://dest.ch/file'],
'filesize': 1024,
}],
'params': {
'copy_pin_lifetime': 3600
}
}
error = self.app.post(
url="/jobs",
content_type='application/json',
params=json.dumps(job),
status=400
).json
# SRM has to be mentioned in the error message
self.assertIn('SRM', error['message'])
# Mock must be let through (FTS-289)
job['files'][0]['sources'][0] = 'mock://test/path'
self.app.post(
url="/jobs",
content_type='application/json',
params=json.dumps(job),
status=200
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment