Compare commits

...

3 Commits

Author SHA1 Message Date
Frédéric Péters 7c22b27091 tests: remove erroneous check "up" string in availability test (#76116)
gitea/passerelle/pipeline/head This commit looks good Details
It would catch the old "We recommend you to update your web browser"
from gadjo.
2023-04-06 18:07:11 +02:00
Frédéric Péters 2c5c98c602 tox: limit Pillow version to avoid failure in test_fill_form_ok (#76117)
gitea/passerelle/pipeline/head There was a failure building this commit Details
2023-04-06 18:05:02 +02:00
Thomas NOËL 8f780c38fc phonecalls: remove X-Frame-Options on newtab (#76162)
gitea/passerelle/pipeline/head There was a failure building this commit Details
2023-04-06 16:37:14 +02:00
4 changed files with 4 additions and 2 deletions

View File

@ -72,7 +72,8 @@ class PhoneCalls(BaseResource):
# open agent's portal in a new tab
if newtab and redirect_url:
return render(request, 'phonecalls/start_call_newtab.html', {'redirect_url': redirect_url})
response = render(request, 'phonecalls/start_call_newtab.html', {'redirect_url': redirect_url})
response.xframe_options_exempt = True
return response
@endpoint(

View File

@ -477,7 +477,6 @@ def test_availability_parameters(app, admin_user, monkeypatch):
assert 'Availability check' in resp.text
resp = resp.click('Availability check')
assert 'up' in resp.text
resp.form['run_check'] = False
resp = resp.form.submit()
# Connector status not changed, availability parameters changed

View File

@ -193,6 +193,7 @@ def test_phonecalls_start_newtab(app, phonecalls):
params={'apikey': '123', 'callee': '42', 'caller': '0612345678', 'newtab': '1'},
)
assert resp.content_type == 'text/html'
assert 'X-Frame-Options' not in resp.headers
assert 'window.open("https://portail\\u002Dagent.publik/?callee\\u003D42")' in resp.text
assert Call.objects.filter(callee='42', caller='0612345678').count() == 1

View File

@ -49,6 +49,7 @@ deps =
zeep<3.3
codestyle: pre-commit
ldaptools
Pillow<9.5.0
python-ldap<=3.2 # align with Debian <= 11 (buster, bullseye)
git+https://git.entrouvert.org/publik-django-templatetags.git
commands =