From c18662605a1a389b179f6d9790933e0d88981f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Losada?= Date: Tue, 3 Oct 2023 15:41:08 +0200 Subject: [PATCH] Fix iOSBundleId parameter name --- firebase_admin/_user_mgt.py | 2 +- tests/test_user_mgt.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firebase_admin/_user_mgt.py b/firebase_admin/_user_mgt.py index c77c4d40d..aa0dfb0a4 100644 --- a/firebase_admin/_user_mgt.py +++ b/firebase_admin/_user_mgt.py @@ -540,7 +540,7 @@ def encode_action_code_settings(settings): if not isinstance(settings.ios_bundle_id, str): raise ValueError('Invalid value provided for ios_bundle_id: {0}' .format(settings.ios_bundle_id)) - parameters['iosBundleId'] = settings.ios_bundle_id + parameters['iOSBundleId'] = settings.ios_bundle_id # android_* attributes if (settings.android_minimum_version or settings.android_install_app) \ diff --git a/tests/test_user_mgt.py b/tests/test_user_mgt.py index b590cca05..ea9c87e6f 100644 --- a/tests/test_user_mgt.py +++ b/tests/test_user_mgt.py @@ -1369,7 +1369,7 @@ def test_valid_data(self): assert parameters['continueUrl'] == data['url'] assert parameters['canHandleCodeInApp'] == data['handle_code_in_app'] assert parameters['dynamicLinkDomain'] == data['dynamic_link_domain'] - assert parameters['iosBundleId'] == data['ios_bundle_id'] + assert parameters['iOSBundleId'] == data['ios_bundle_id'] assert parameters['androidPackageName'] == data['android_package_name'] assert parameters['androidMinimumVersion'] == data['android_minimum_version'] assert parameters['androidInstallApp'] == data['android_install_app'] @@ -1529,7 +1529,7 @@ def _validate_request(self, request, settings=None): assert request['continueUrl'] == settings.url assert request['canHandleCodeInApp'] == settings.handle_code_in_app assert request['dynamicLinkDomain'] == settings.dynamic_link_domain - assert request['iosBundleId'] == settings.ios_bundle_id + assert request['iOSBundleId'] == settings.ios_bundle_id assert request['androidPackageName'] == settings.android_package_name assert request['androidMinimumVersion'] == settings.android_minimum_version assert request['androidInstallApp'] == settings.android_install_app