diff --git a/firebase_admin/remote_config.py b/firebase_admin/remote_config.py index ea2e89ae..f1da0f68 100644 --- a/firebase_admin/remote_config.py +++ b/firebase_admin/remote_config.py @@ -56,14 +56,6 @@ def __init__(self, etag, template_data): if 'version' in template_data: self._version = template_data['version'] - if 'parameterGroups' in template_data: - if template_data['parameterGroups'] is not None: - self._parameter_groups = template_data['parameterGroups'] - else: - raise ValueError('Remote Config parameterGroups must be a non-null object') - else: - self.parameter_groups = {} - self._etag = '' if etag is not None and isinstance(etag, str): self._etag = etag @@ -84,10 +76,6 @@ def version(self): def conditions(self): return self._conditions - @property - def parameter_groups(self): - return self._parameter_groups - class ServerTemplate: """Represents a Server Template with implementations for loading and evaluting the tempalte.""" diff --git a/tests/test_remote_config.py b/tests/test_remote_config.py index d412396c..202638f2 100644 --- a/tests/test_remote_config.py +++ b/tests/test_remote_config.py @@ -55,7 +55,6 @@ def test_rc_instance_get_server_template(self): 'test_key': 'test_value' }, 'conditions': [], - 'parameterGroups': {}, 'version': 'test' }) @@ -75,7 +74,6 @@ def test_rc_instance_get_server_template_empty_params(self): recorder = [] response = json.dumps({ 'conditions': [], - 'parameterGroups': {}, 'version': 'test' }) @@ -109,13 +107,12 @@ def test_init_server_template(self): 'parameters': { 'test_key': 'test_value' }, - 'parameterGroups': '', 'version': '', } template = remote_config.init_server_template( app=app, - template_data=ServerTemplateData('etag', template_data) # Use ServerTemplateData here + template_data=ServerTemplateData('etag', template_data) ) config = template.evaluate() @@ -133,7 +130,6 @@ async def test_get_server_template(self): 'test_key': 'test_value' }, 'conditions': [], - 'parameterGroups': {}, 'version': 'test' })