Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move key retrieval to Firebase #184

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions tests/fixtures/firebase/fetch.fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
{
"entries": {
"ac_notif": "2501A646-7A46-4B03-8F3B-3E41A87DD572",
"add_vehicle_error_message_other_garage": "com.renault.myrenault.one.fr",
"add_vehicle_per_license_plate": "true",
"advice_content": "{\"maxSectionNb\":3,\"maxQuestionNb\":3,\"picture\":\"\",\"response\":[{\"idSection\":\"1\",\"idQuestion\":\"1\",\"urlType\":\"video\",\"url\":\"Eni138mjSpw\"},{\"idSection\":\"1\",\"idQuestion\":\"2\",\"urlType\":\"video\",\"url\":\"KRkqPA0_5rk\"},{\"idSection\":\"1\",\"idQuestion\":\"3\",\"urlType\":\"video\",\"url\":\"ReUP5ErzceA\"},{\"idSection\":\"2\",\"idQuestion\":\"1\",\"urlType\":\"video\",\"url\":\"Ur-JvJd8M90\"},{\"idSection\":\"2\",\"idQuestion\":\"2\",\"urlType\":\"video\",\"url\":\"aK9j5urvogw\"},{\"idSection\":\"2\",\"idQuestion\":\"3\",\"urlType\":\"video\",\"url\":\"-YSbVnkdaEI\"}]}",
"advices_tab": "true",
"annual_mileage": "false",
"assistance_phone_number": "0800051515",
"base_url_aem": "https://static-wrd-prod-1.wrd-aws.com",
"base_url_benomad": "https://bemap-myr2.benomad.com",
"battery_inhibitor": "true",
"battery_status": "true",
"bff_prod": "{\"target\":\"https://apis.renault.com/\",\"apikey\":\"wRhd1ZSqXfOuF8oTNCkS029YU9qPGWa4\"}",
"bff_valid": "{\"target\":\"https://apis-qa.renault.com/\",\"apikey\":\"EtPrXNADwc0d2GoTOYL91ZzMmZpvaHK0\"}",
"bja_pairing_ivi": "true",
"bja_set_pin_code": "false",
"block_message_update": "0",
"book_a_service_config": "{\"operations\":[{\"energyType\":[\"ELEC\",\"PHEV\",\"HEV\"],\"operationsChoice\":[{\"displayValueKey\":\"service_purpose_overhaul\"},{\"displayValueKey\":\"service_purpose_air_conditioning\"},{\"displayValueKey\":\"service_purpose_brakes\"},{\"displayValueKey\":\"service_purpose_tyres\"},{\"displayValueKey\":\"service_purpose_technical_inspection\"},{\"displayValueKey\":\"service_purpose_wiper\"},{\"displayValueKey\":\"service_purpose_battery\"},{\"displayValueKey\":\"service_purpose_shock_absorbers\"},{\"displayValueKey\":\"service_purpose_bodywork\"},{\"displayValueKey\":\"service_purpose_broken_glass\"},{\"displayValueKey\":\"service_purpose_key\"},{\"displayValueKey\":\"service_purpose_other\"}]},{\"energyType\":[\"OTHER\"],\"operationsChoice\":[{\"displayValueKey\":\"service_purpose_overhaul\"},{\"displayValueKey\":\"service_purpose_timing_belt\"},{\"displayValueKey\":\"service_purpose_air_conditioning\"},{\"displayValueKey\":\"service_purpose_brakes\"},{\"displayValueKey\":\"service_purpose_tyres\"},{\"displayValueKey\":\"service_purpose_technical_inspection\"},{\"displayValueKey\":\"service_purpose_wiper\"},{\"displayValueKey\":\"service_purpose_battery\"},{\"displayValueKey\":\"service_purpose_shock_absorbers\"},{\"displayValueKey\":\"service_purpose_bodywork\"},{\"displayValueKey\":\"service_purpose_broken_glass\"},{\"displayValueKey\":\"service_purpose_key\"},{\"displayValueKey\":\"service_purpose_other\"}]}]}",
"book_a_service_day_or_time_step": "date_hours_range",
"book_a_service_enabled": "false",
"booking_url": "https://devis-en-ligne.renault.fr/",
"caracteristics_vehicle": "true",
"case_form_src_config": "{\"purposes\":[{\"displayValueKey\":\"lead_form_src_type1\",\"descriptionValueKey\":\"lead_form_src_type1_description\",\"codeValue\":\"Complaint\",\"subPurposes\":[{\"displayValueKey\":\"lead_form_src_type1_1\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_2\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_3\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_4\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_5\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_6\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_7\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_8\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_9\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_10\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_11\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type1_12\",\"shouldDisplayCars\":true}]},{\"displayValueKey\":\"lead_form_src_type2\",\"descriptionValueKey\":\"lead_form_src_type2_description\",\"codeValue\":\"informationRequest\",\"subPurposes\":[{\"displayValueKey\":\"lead_form_src_type2_1\",\"shouldDisplayCars\":false},{\"displayValueKey\":\"lead_form_src_type2_2\",\"shouldDisplayCars\":false},{\"displayValueKey\":\"lead_form_src_type2_3\",\"shouldDisplayCars\":false},{\"displayValueKey\":\"lead_form_src_type2_4\",\"shouldDisplayCars\":false},{\"displayValueKey\":\"lead_form_src_type2_5\",\"shouldDisplayCars\":false}]},{\"displayValueKey\":\"lead_form_src_type3\",\"descriptionValueKey\":\"lead_form_src_type3_description\",\"codeValue\":\"serviceRequest\",\"subPurposes\":[{\"displayValueKey\":\"lead_form_src_type3_1\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type3_2\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type3_3\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type3_4\",\"shouldDisplayCars\":true},{\"displayValueKey\":\"lead_form_src_type3_5\",\"shouldDisplayCars\":true}]}]}",
"case_form_src_enabled": "false",
"charge_delayed": "false",
"charge_delegated": "false",
"charge_instant": "true",
"config_downloaded_flag": "true",
"contact_us_tab": "true",
"contract_check_activation_code": "true",
"contract_check_otp": "true",
"contract_check_pairing_mileage": "false",
"contracts_access_store_ivi": "https://myr.renault.fr/easy-connect.html",
"contracts_access_store_rlink": "https://myr.renault.fr/r-link-store.html",
"contracts_and_warranties": "true",
"country": "FR",
"custom_group": "false",
"custom_group_emails": "",
"custom_group_properties": "",
"data_privacy_check": "true",
"dealer": "true",
"dealer_contact_form": "false",
"dealers_filters": "renault.blacklisted==false",
"display_assistance_block": "true",
"display_call_us_block": "{\"fr-FR\":\"0170489258\"}",
"display_civility": "false",
"display_email_us_block": "{\"fr-FR\":\"[email protected]\"}",
"display_fav_dealer_block": "true",
"display_registration_plate": "true",
"display_website_block": "{\"fr-FR\":\"https://easyconnect.renault.fr\"}",
"dynamic_eco_advices": "false",
"dynamic_faq": "false",
"dynamic_maintenance": "true",
"eco_advice": "true",
"eguides_tab": "true",
"engine_start": "false",
"faq_content": "{\"maxSectionNb\":8,\"maxQuestionNb\":8}",
"faq_tab": "true",
"find_my_car": "true",
"fuel_autonomy": "true",
"generic_eguide_portal": "https://fr.e-guide.renault.com/fra/",
"gigya_prod": "{ \"target\": \"https://accounts.eu1.gigya.com\", \"apikey\": \"3_4LKbCcMMcvjDm3X89LU4z4mNKYKdl_W0oD9w-Jvih21WqgJKtFZAnb9YdUgWT9_a\" }",
"gigya_valid": "{\"target\": \"https://accounts.eu1.gigya.com\", \"apikey\": \"3_2YjuX_CyODLN3o4wK70yHKUJFHxKFiePSD65DlCS89AmsZ0Va77k_g7HUmubA4pj\" }",
"global_communication": "false",
"history_vehicle": "true",
"horn_and_light": "false",
"hvac_delayed": "true",
"hvac_instant": "true",
"hvac_schedule": "true",
"hvac_temperature": "false",
"hvac_temperature_settings_default": "{\"temperature_default\":\"21\",\"range_min\":\"14\",\"range_max\":\"28\"}",
"importer_build": "false",
"incentive_message_update": "410002",
"instabug": "false",
"ivi_charging_schedule": "true",
"last_mile_navigation": "true",
"legal_cgu": "https://myr.renault.{country}/cgu.html",
"legal_data_privacy": "https://www.renault.fr/donnees-personnelles.html",
"legal_information": "https://myr.renault.{country}/legal-notice.html",
"lock_unlock": "false",
"manual_mileage": "true",
"mno_portal": "",
"mobility_platform": "",
"ocr_scan": "true",
"offers_tab": "true",
"onboarding_non_appearable_vehicle": "true",
"optin": "true",
"ots": "false",
"pairing_mileage": "false",
"pairing_pbo": "true",
"partitionned_garage": "false",
"pin_my_car": "true",
"plugsurfing_assistance": "false",
"popin_cgu_acceptance": "true",
"push_notifications_connected_services_OTP": "false",
"push_notifications_connected_services_OTP_category": "{\"remotecontrol\":\"push_notif_settings_label_remotecontrol\",\"assistance\":\"push_notif_settings_label_assistance\",\"SVT\":\"push_notif_settings_label_svt\",\"navigation\":\"push_notif_settings_label_navigation\",\"chargeev\":\"push_notif_settings_label_chargeev\"}",
"quotation": "https://cote.renault.fr/votre-vehicule/version2.html",
"radio_code": "true",
"rating_application_mail": "[email protected]",
"rating_application_url": "",
"rci_payment": "false",
"regex_city": "^[a-zA-ZÀ-ÿ\\s-]{1,40}$",
"regex_email": "^[[:alnum:]]([-_.]?[[:alnum:]])*@[[:alnum:]]([-.]?[[:alnum:]])*\\.([a-z]{2,})$",
"regex_mobile_phone": "^0?[6,7](([\\.\\s]?[0-9]{2}){4})\\s?$",
"regex_name": "^[\\p{L}\\s\\’'-]{2,255}$",
"regex_password": "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?!.*\\s)[A-Za-z\\d\\W]{8,}",
"regex_phone": "",
"regex_postal_code": "^((0[1-9])|([1-8][0-9])|(9[0-8])|(2A)|(2B))[0-9]{3}$",
"regex_registration_number": "^([A-Z]{2}[-\\s]?\\d{3}[-\\s]?[A-Z]{2})|(\\d{3}[-\\s]?[A-Z]{3}[-\\s]?\\d{2})|([A-Z]{2}[-\\s]?\\d{2}[-\\s]?[A-Z]{3})$",
"regex_vin": "^[a-zA-Z0-9]{17}$",
"send_to_car": "true",
"smart_charge_app": "",
"static_maintenance": "true",
"svt_feature_enabled": "false",
"synchronization_enabled": "false",
"synchronized_status": "unsynchronized",
"total_mileage": "true",
"track_order": "false",
"track_order_status": "[{\"order\":1,\"status\":\"FLEXIBILITY_END\",\"subtitleWordingKey\":\"track_order_status_ordered_description\",\"titleWordingKey\":\"track_order_status_ordered\",\"subtitleWordingKeyPastStatus\":\"track_order_status_ordered_description_past_status\",\"titleWordingKeyPastStatus\":\"track_order_status_ordered_past_status\"},{\"order\":2,\"status\":\"MANUFACTURING\",\"subtitleWordingKey\":\"track_order_status_built_description\",\"titleWordingKey\":\"track_order_status_built\",\"subtitleWordingKeyPastStatus\":\"track_order_status_built_description_past_status\",\"titleWordingKeyPastStatus\":\"track_order_status_built_past_status\"},{\"order\":3,\"status\":\"SHIPMENT\",\"subtitleWordingKey\":\"track_order_status_shipping_description\",\"titleWordingKey\":\"track_order_status_shipping\",\"subtitleWordingKeyPastStatus\":\"track_order_status_shipped_description\",\"titleWordingKeyPastStatus\":\"track_order_status_shipped\"},{\"order\":4,\"status\":\"PDC_OUT\",\"subtitleWordingKey\":\"track_order_status_nearly_there_description\",\"titleWordingKey\":\"track_order_status_nearly_there\",\"subtitleWordingKeyPastStatus\":\"to_status_nearly_there_description_past_status\",\"titleWordingKeyPastStatus\":\"track_order_status_nearly_there_past_status\"},{\"order\":5,\"status\":\"READY_FOR_PICKUP\",\"subtitleWordingKey\":\"track_order_status_ready_for_pickup_description\",\"titleWordingKey\":\"track_order_status_ready_for_pickup\",\"subtitleWordingKeyPastStatus\":\"to_status_ready_for_pickup_description_past_status\",\"titleWordingKeyPastStatus\":\"track_order_status_ready_for_pickup_past_status\"},{\"order\":6,\"status\":\"CUSTOMER_HANDOVER\",\"subtitleWordingKey\":\"track_order_status_delivered_description\",\"titleWordingKey\":\"track_order_status_delivered\",\"subtitleWordingKeyPastStatus\":\"to_status_delivered_description_past_status\",\"titleWordingKeyPastStatus\":\"track_order_status_delivered_past_status\"}]",
"trusted_device": "false",
"unique_ots": "true",
"use_metric_system": "true",
"where_find_vin_cta": "true",
"wired_prod": "{\"target\":\"https://api-wired-prod-1-euw1.wrd-aws.com\",\"apikey\":\"wRhd1ZSqXfOuF8oTNCkS029YU9qPGWa4\"}",
"wired_valid": "{\"target\":\"https://api-wired-valid-1-euw1.wrd-aws.com\",\"apikey\":\"EtPrXNADwc0d2GoTOYL91ZzMmZpvaHK0\"}",
"ze_charge_history": "false",
"ze_charging_schedule": "true",
"ze_charging_spots": "true",
"ze_customer_service_number": "0 800 05 15 15",
"ze_dynamic_mileage": "true",
"ze_hvac": "true",
"ze_notifs_sms": "true",
"ze_pairing": "true",
"ze_pass": "false",
"ze_pass_activate_service_provider_id": "[1,9]",
"ze_pass_country_list": "KZ",
"ze_pass_order_service_provider_id": "[9]",
"ze_pass_plugsurfing_data_privacy_url": "https://files.plugsurfing.com/fr/document/renault_privacy_policy",
"ze_pass_rci_data_privacy_url": "https://rcipay.freshdesk.com/a/solutions/articles/76000022937?lang=fr",
"ze_reachable_area": "true",
"ze_smart_route_planner": "true"
},
"appName": "com.renault.myrenault.one.fr",
"state": "UPDATE",
"experimentDescriptions": [
{
"experimentId": "_exp_15",
"variantId": "0",
"experimentStartTime": "2020-11-06T16:22:16.306Z",
"triggerTimeoutMillis": "15552000000",
"timeToLiveMillis": "15552000000"
}
]
}
Loading