-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #595 from etalab/feature/dat-728-api-hermes
Creation api hermes
- Loading branch information
Showing
14 changed files
with
253 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class AuthorizationRequest::APIHermes < AuthorizationRequest | ||
include AuthorizationExtensions::BasicInfos | ||
include AuthorizationExtensions::PersonalData | ||
include AuthorizationExtensions::CadreJuridique | ||
include AuthorizationExtensions::GDPRContacts | ||
include AuthorizationExtensions::OperationalAcceptance | ||
include AuthorizationExtensions::SafetyCertification | ||
include AuthorizationExtensions::Volumetrie | ||
|
||
VOLUMETRIES = { | ||
'200 appels / minute': 200, | ||
'1000 appels / minute': 1000, | ||
}.freeze | ||
|
||
add_document :maquette_projet, content_type: ['application/pdf'], size: { less_than: 10.megabytes } | ||
|
||
add_attributes :date_prevue_mise_en_production | ||
|
||
contact :contact_technique, validation_condition: ->(record) { record.need_complete_validation?(:contacts) } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class AuthorizationRequest::APIHermesSandbox < AuthorizationRequest | ||
include AuthorizationExtensions::BasicInfos | ||
include AuthorizationExtensions::PersonalData | ||
include AuthorizationExtensions::CadreJuridique | ||
include AuthorizationExtensions::GDPRContacts | ||
|
||
add_document :maquette_projet, content_type: ['application/pdf'], size: { less_than: 10.megabytes } | ||
|
||
add_attributes :date_prevue_mise_en_production, | ||
:volumetrie_approximative | ||
|
||
contact :contact_technique, validation_condition: ->(record) { record.need_complete_validation?(:contacts) } | ||
|
||
add_checkbox :dpd_homologation_checkbox | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
api-hermes-sandbox: | ||
description: FEEDME | ||
introduction: | | ||
<span class="fr-text--bold">Les données restituées par l’API sont décrites dans les CGU attachées à cette habilitation.</span> | ||
<br/> | ||
<br/> | ||
Notre équipe d’instruction étudiera votre demande en bac à sable, lorsqu’elle sera validée vous pourrez compléter la suite de votre demande. | ||
<div class="intro-stepper"> | ||
<div class="step current"> | ||
<div class="step-number">1.</div> | ||
<div class="step-content"> | ||
<h3>Le bac à sable</h3> | ||
<p class="fr-text--xs">Dans un premier temps, une demande d’habilitation au <strong>bac à sable</strong> de l'API Hermes</p> | ||
</div> | ||
</div> | ||
<div class="step pending"> | ||
<div class="step-number">2.</div> | ||
<div class="step-content"> | ||
<h3>La production</h3> | ||
<p class="fr-text--xs">Dans un second temps, une demande d’habilitation à la <strong>production</strong> de l'API Hermes</p> | ||
</div> | ||
</div> | ||
<div class="step pending"> | ||
<div class="step-number">3.</div> | ||
<div class="step-content"> | ||
<h3>Votre service est ouvert !</h3> | ||
<p class="fr-text--xs">Une fois vos habilitations validées, vous pouvez ouvrir votre service !</p> | ||
</div> | ||
</div> | ||
</div> | ||
authorization_request: APIHermesSandbox | ||
steps: &api_hermes_steps | ||
- name: basic_infos | ||
- name: personal_data | ||
- name: legal | ||
- name: contacts | ||
|
||
api-hermes-production: | ||
description: FEEDME | ||
introduction: | | ||
| | ||
Votre demande d'accès au bac à sable a été validée, vous pouvez à présent poursuivre votre demande en demandant les accès à la production. | ||
<div class="intro-stepper"> | ||
<div class="step completed"> | ||
<div class="step-number">1.</div> | ||
<div class="step-content"> | ||
<h3>Le bac à sable</h3> | ||
<p class="fr-text--xs">Dans un premier temps, une demande d’habilitation au <strong>bac à sable</strong> de l'API Hermes</p> | ||
</div> | ||
</div> | ||
<div class="step current"> | ||
<div class="step-number">2.</div> | ||
<div class="step-content"> | ||
<h3>La production</h3> | ||
<p class="fr-text--xs">Dans un second temps, une demande d’habilitation à la <strong>production</strong> de l'API Hermes</p> | ||
</div> | ||
</div> | ||
<div class="step pending"> | ||
<div class="step-number">3.</div> | ||
<div class="step-content"> | ||
<h3>Votre service est ouvert !</h3> | ||
<p class="fr-text--xs">Une fois vos habilitations validées, vous pouvez ouvrir votre service !</p> | ||
</div> | ||
</div> | ||
</div> | ||
authorization_request: APIHermes | ||
static_blocks: *api_hermes_steps | ||
steps: | ||
- name: operational_acceptance | ||
- name: legal | ||
- name: safety_certification | ||
- name: volumetrie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# language: fr | ||
|
||
Fonctionnalité: Soumission d'une demande d'habilitation API Hermes | ||
Contexte: | ||
Sachant que je suis un demandeur | ||
Et que je me connecte | ||
|
||
Scénario: Je soumets une demande d'habilitation valide à l'étape Bac à sable | ||
* je démarre une nouvelle demande d'habilitation "API Hermes" à l'étape "Bac à sable" | ||
* je renseigne les infos de bases du projet | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne les infos concernant les données personnelles | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne le cadre légal | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne les informations des contacts RGPD | ||
* je renseigne les informations du contact technique | ||
* je clique sur "Suivant" | ||
|
||
* j'adhère aux conditions générales | ||
* je coche "J’atteste que mon organisation devra déclarer à la DGFiP l’accomplissement des formalités en matière de protection des données à caractère personnel et qu’elle veillera à procéder à l’homologation de sécurité de son projet." | ||
* je clique sur "Soumettre la demande d'habilitation" | ||
|
||
Alors il y a un message de succès contenant "soumise avec succès" | ||
Et je suis sur la page "Demandes et habilitations" | ||
|
||
Scénario: Je soumets une demande d'habilitation valide à l'étape Production | ||
Quand j'ai 1 demande d'habilitation "API Hermes" à l'étape "Bac à sable" validée | ||
Et que je me rends sur mon tableau de bord | ||
Et je clique sur "Démarrer ma demande d’habilitation en production" | ||
Et que je clique sur "Débuter ma demande" | ||
|
||
* je renseigne la recette fonctionnelle | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne le cadre légal | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne l'homologation de sécurité | ||
* je clique sur "Suivant" | ||
|
||
* je renseigne la volumétrie pour "API Hermes" | ||
* je clique sur "Suivant" | ||
|
||
* j'adhère aux conditions générales | ||
* je clique sur "Soumettre la demande d'habilitation" | ||
|
||
Alors il y a un message de succès contenant "soumise avec succès" | ||
Et je suis sur la page "Demandes et habilitations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters