Done test France Connect

This commit is contained in:
Xavier J 2015-10-06 17:41:49 +02:00
parent f4e3ec1a72
commit d655b2319a
4 changed files with 194 additions and 7 deletions

View file

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 249.2 307.4" enable-background="new 0 0 249.2 307.4" xml:space="preserve">
<g id="paillasse">
</g>
<g id="Calque_1">
</g>
<g id="Calque_3">
<g>
<g>
<path fill="#EB212E" d="M40.8,272.9c0,3.2,2,5.3,5.5,5.3c2,0,3.6-0.7,4.8-1.5h0.1v2.5c-1.5,0.9-3.1,1.5-5.2,1.5
c-4.3,0-8-2.9-8-7.9s3.7-7.9,8-7.9c2.1,0,3.7,0.6,5.2,1.5v2.5h-0.1c-1.2-0.8-2.8-1.5-4.8-1.5C42.8,267.5,40.8,269.7,40.8,272.9z"
/>
<path fill="#EB212E" d="M78,272.9c0,4.7-3.1,7.9-7.7,7.9c-4.6,0-7.7-3.2-7.7-7.9c0-4.7,3-7.9,7.7-7.9C74.9,265,78,268.2,78,272.9
z M75.3,272.8c0-3.9-2.7-5.4-4.9-5.4c-2.3,0-4.9,1.5-4.9,5.4c0,3.9,2.6,5.4,4.9,5.4C72.6,278.3,75.3,276.8,75.3,272.8z"/>
<path fill="#EB212E" d="M104.1,270.8v9.6h-2.7v-9.3c0-2.3-1-3.6-3.3-3.6c-2.2,0-3.7,1.4-4.9,2.8v10.1h-2.7v-15.1h2.4l0.3,1.9v0.4
h0.1c1.3-1.4,2.8-2.6,5.5-2.6C102.1,265,104.1,267.7,104.1,270.8z"/>
<path fill="#EB212E" d="M130.9,270.8v9.6h-2.7v-9.3c0-2.3-1-3.6-3.3-3.6c-2.2,0-3.7,1.4-4.9,2.8v10.1h-2.7v-15.1h2.4l0.3,1.9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8,2.2,6.9,7.5,6.9,11.8l0.5,81.5c0,4.3-3,9.7-6.8,11.9
L132,205.7c-1.9,1.1-4.4,1.7-7,1.7c-2.5,0-4.9-0.5-6.8-1.6l-71.2-40.3c-3.8-2.2-6.9-7.5-6.9-11.8l-0.5-81.5
c0-4.3,3-9.7,6.8-11.9l70.7-41.2C119,18,121.6,17.4,124.1,17.4 M124.1,17.2c-2.7,0-5.2,0.6-7.1,1.7L46.4,60.1
c-3.8,2.2-6.9,7.6-6.9,12.1l0.5,81.5c0,4.4,3.2,9.8,7,12l71.2,40.3c1.8,1,4.3,1.6,6.9,1.6c2.7,0,5.2-0.6,7.1-1.7l70.7-41.2
c3.8-2.2,6.9-7.6,6.9-12.1l-0.5-81.5c0-4.4-3.2-9.8-7-12L131,18.8C129.1,17.8,126.7,17.2,124.1,17.2L124.1,17.2z"/>
</g>
<g>
<polygon fill="#0F91CE" points="185.5,141 65.7,140.7 65.7,140.7 125.9,41 125.9,41 185.5,141 "/>
</g>
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="50.1207" y1="112.9564" x2="221.7812" y2="112.9564" gradientTransform="matrix(1 8.080583e-03 -8.080583e-03 1 -10.4252 -1.8144)">
<stop offset="0" style="stop-color:#279DD5"/>
<stop offset="1" style="stop-color:#E1222E"/>
</linearGradient>
<path fill="none" stroke="url(#SVGID_1_)" stroke-width="1.477" stroke-linejoin="round" stroke-miterlimit="10" d="M117.6,206
c3.8,2.2,10,2.2,13.8,0l71.1-40.8c3.8-2.2,6.9-7.5,6.9-11.9l0-4.1l0,4.1c0,4.4-3.1,9.7-6.9,11.9l-71.1,40.8
C127.5,208.2,121.3,208.2,117.6,206l-71-41.1c-3.8-2.2-6.9-7.6-6.9-11.9l0-5.2l0.1-72.7l0-4.1c0-4.4,3.1-9.7,6.9-11.9l71.1-40.8
c3.8-2.2,10-2.2,13.8,0l71,41.1c3.8,2.2,6.9,7.6,6.9,11.9l0,5.1l-0.1,72.7l0.1-72.7l0-5.1c0-4.4-3.1-9.7-6.9-11.9l-71-41.1
c-3.8-2.2-10-2.2-13.8,0L46.8,59.2c-3.8,2.2-6.9,7.5-6.9,11.9l0,4.1l-0.1,72.7"/>
</g>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="113.7021" y1="155.0882" x2="158.1721" y2="155.0882" gradientTransform="matrix(1 8.080583e-03 -8.080583e-03 1 -10.4252 -1.8144)">
<stop offset="0" style="stop-color:#E1222E"/>
<stop offset="1" style="stop-color:#279DD5"/>
</linearGradient>
<path fill="none" stroke="url(#SVGID_2_)" stroke-width="7.385014e-02" stroke-linejoin="round" stroke-miterlimit="10" d="
M146.5,148.7L128,159.4c-1.9,1.1-5,1.1-6.9,0l-19-11"/>
<g>
<polygon fill="#279DD5" points="160.2,98.5 125.5,180.9 105.6,167.5 84.3,110.1 "/>
</g>
<g>
<polygon fill="#E1222E" points="105.6,167.5 65.7,140.8 94,135.6 "/>
</g>
<g>
<polygon fill="#2372B6" points="185.5,141.1 125.5,180.9 160.2,98.5 "/>
</g>
<g>
<polygon fill="#1398D2" points="65.7,80.9 84.3,110.1 102.1,80.6 85.9,67.6 "/>
</g>
<g>
<polygon fill="#2372B6" points="65.7,140.8 84.3,110.1 65.7,80.9 "/>
</g>
<g>
<polygon fill="#3A7ABB" points="125.9,41.1 85.9,67.6 102.1,80.6 "/>
</g>
<g>
<polygon fill="#279DD5" points="125.9,41.1 126.4,85.3 95.2,91.9 "/>
</g>
<g>
<g>
<polygon fill="#E6372F" points="185.9,80.9 167.3,110.3 149.6,80.7 165.9,67.6 "/>
</g>
<g>
<polygon fill="#BE232C" points="185.5,141.1 167.3,110.3 185.9,80.9 "/>
</g>
<g>
<polygon fill="#E1222E" points="125.9,41.1 165.9,67.6 149.6,80.7 "/>
</g>
</g>
<g>
<path fill="#FFFFFF" d="M137.6,155.9c0.7-0.3,1.5-0.5,2.4-0.7c2.9,0,5.7,0.8,8.6,1.2c0.3,0,0.7,0.2,1,0.3c1,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3-2.5-1c0.5-0.2,1-0.3,1.5-0.2
c0.5,0,0.3-0.8,0.8-1.2c0.2,0,0.3,0,0.5,0c1-1.3,3-1.7,3.4-3c0-0.3-1-0.3-1.7-0.5c-1-0.2-1.9,0-2.9,0c-1.3,0.3-2.5,0.5-3.7,1
C143.8,121.2,144.8,120.5,146,120.2z"/>
<path fill="#E1222E" d="M104.8,156.3c-0.1,0-0.1,0.1-0.2,0.1C104.7,156.4,104.8,156.4,104.8,156.3z"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -27,7 +27,7 @@ class FranceConnectController < ApplicationController
end
rescue Rack::OAuth2::Client::Error => e
Rails.logger.error e.message
flash.alert = 'Erreur lors de la connexion à France Connect.'
flash.alert = t('errors.messages.france_connect.connexion')
redirect_to(new_user_session_path)
end
end

View file

@ -80,5 +80,7 @@ fr:
other: "%{count} erreurs ont empêché ce(tte) %{resource} d'être sauvegardé(e) :"
dossier_not_found: "Le dossier n'existe pas"
invalid_siret: "Le siret est incorrect"
france_connect:
connexion: "Erreur lors de la connexion à France Connect."

View file

@ -14,13 +14,33 @@ feature 'France Connect Connexion' do
context 'and click on france connect link' do
let(:code) { 'plop' }
before do
allow_any_instance_of(FranceConnectClient).to receive(:authorization_uri).and_return(france_connect_callback_path(code: code))
allow(FranceConnectService).to receive(:retrieve_user_informations).and_return(Hashie::Mash.new(email: 'patator@cake.com'))
page.find_by_id('france_connect').click
context 'when authentification is ok' do
before do
allow_any_instance_of(FranceConnectClient).to receive(:authorization_uri).and_return(france_connect_callback_path(code: code))
allow(FranceConnectService).to receive(:retrieve_user_informations).and_return(Hashie::Mash.new(email: 'patator@cake.com'))
page.find_by_id('france_connect').click
end
scenario 'he is redirected to france connect' do
expect(page).to have_content('Vos dossiers')
end
end
scenario 'he is redirected to france connect' do
expect(page).to have_content('Vos dossiers')
context 'when authentification is not ok' do
before do
allow_any_instance_of(FranceConnectClient).to receive(:authorization_uri).and_return(france_connect_callback_path(code: code))
allow(FranceConnectService).to receive(:retrieve_user_informations) { raise Rack::OAuth2::Client::Error.new(500, error: 'Unknown') }
page.find_by_id('france_connect').click
end
scenario 'he is redirected to login page' do
expect(page).to have_css('a#france_connect')
end
scenario 'error message is displayed' do
expect(page).to have_content(I18n.t('errors.messages.france_connect.connexion'))
end
end
end
end