applications: let requests wrapper apply signature (#68783)
This commit is contained in:
parent
bc959e928e
commit
aec67138b0
|
@ -100,7 +100,7 @@ class Version(models.Model):
|
|||
if service_objects[service['url']].secondary:
|
||||
continue
|
||||
url = urllib.parse.urljoin(service['url'], 'api/export-import/bundle-import/')
|
||||
response = requests.put(sign_url(url, service['secret']), data=bundle_content)
|
||||
response = requests.put(url, data=bundle_content)
|
||||
if not response.ok:
|
||||
# TODO: report failures
|
||||
continue
|
||||
|
|
|
@ -103,7 +103,7 @@ WCS_FORM_DEPENDENCIES = {
|
|||
|
||||
|
||||
def mocked_http(url, request):
|
||||
assert '&signature=' in url.query
|
||||
assert url.query.count('&signature=') == 1
|
||||
|
||||
if url.netloc == 'idp.example.invalid':
|
||||
if url.path == '/api/roles/':
|
||||
|
|
Loading…
Reference in New Issue