diff --git a/examples/test_iam_access_groups_v2_examples.py b/examples/test_iam_access_groups_v2_examples.py index a5ef13eb..25130d79 100644 --- a/examples/test_iam_access_groups_v2_examples.py +++ b/examples/test_iam_access_groups_v2_examples.py @@ -548,7 +548,6 @@ def test_create_template_example(self): rules_action_controls_model = { 'remove': False, - 'update': False, } rule_input_model = { @@ -562,7 +561,6 @@ def test_create_template_example(self): assertions_action_controls_model = { 'add': False, 'remove': True, - 'update': True, } assertions_input_model = { @@ -793,7 +791,6 @@ def test_update_template_version_example(self): rules_action_controls_model = { 'remove': False, - 'update': False, } rule_input_model = { diff --git a/ibm_platform_services/iam_access_groups_v2.py b/ibm_platform_services/iam_access_groups_v2.py index 1719d15a..4cb7f498 100644 --- a/ibm_platform_services/iam_access_groups_v2.py +++ b/ibm_platform_services/iam_access_groups_v2.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# IBM OpenAPI SDK Code Generator Version: 3.74.0-89f1dbab-20230630-160213 +# IBM OpenAPI SDK Code Generator Version: 3.78.0-67aec9b7-20230818-174940 """ The IAM Access Groups API allows for the management of access groups (Create, Read, @@ -2474,7 +2474,11 @@ class AccessActionControls: :attr bool add: (optional) Action control for adding access policies to an enterprise-managed access group in a child account. If an access group administrator in a child account adds a policy, they can always update or remove - it. + it. Note that if conflicts arise between an update to this control in a new + version and polices added to the access group by an administrator in a child + account, you must resolve those conflicts in the child account. This prevents + breaking access in the child account. For more information, see [Working with + versions](https://test.cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-working-with-versions#new-version-scenarios). """ def __init__( @@ -2488,7 +2492,12 @@ def __init__( :param bool add: (optional) Action control for adding access policies to an enterprise-managed access group in a child account. If an access group administrator in a child account adds a policy, they can always update or - remove it. + remove it. Note that if conflicts arise between an update to this control + in a new version and polices added to the access group by an administrator + in a child account, you must resolve those conflicts in the child account. + This prevents breaking access in the child account. For more information, + see [Working with + versions](https://test.cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-working-with-versions#new-version-scenarios). """ self.add = add @@ -3375,11 +3384,15 @@ class AssertionsActionControls: :attr bool add: (optional) Action control for adding dynamic rules to an enterprise-managed access group. If an access group administrator in a child - account adds a dynamic rule, they can always update or remove it. + account adds a dynamic rule, they can always update or remove it. Note that if + conflicts arise between an update to this control and rules added or updated by + an administrator in the child account, you must resolve those conflicts in the + child account. This prevents breaking access that the rules might grant in the + child account. For more information, see [Working with versions]. :attr bool remove: (optional) Action control for removing enterprise-managed - dynamic rules in an enterprise-managed access group. - :attr bool update: (optional) Action control for updating enterprise-managed - dynamic rules in an enterprise-managed access group. + dynamic rules in an enterprise-managed access group. Note that if a rule is + removed from an enterprise-managed access group by an administrator in a child + account and and you reassign the template, the rule is reinstated. """ def __init__( @@ -3387,7 +3400,6 @@ def __init__( *, add: bool = None, remove: bool = None, - update: bool = None, ) -> None: """ Initialize a AssertionsActionControls object. @@ -3395,14 +3407,19 @@ def __init__( :param bool add: (optional) Action control for adding dynamic rules to an enterprise-managed access group. If an access group administrator in a child account adds a dynamic rule, they can always update or remove it. + Note that if conflicts arise between an update to this control and rules + added or updated by an administrator in the child account, you must resolve + those conflicts in the child account. This prevents breaking access that + the rules might grant in the child account. For more information, see + [Working with versions]. :param bool remove: (optional) Action control for removing enterprise-managed dynamic rules in an enterprise-managed access group. - :param bool update: (optional) Action control for updating - enterprise-managed dynamic rules in an enterprise-managed access group. + Note that if a rule is removed from an enterprise-managed access group by + an administrator in a child account and and you reassign the template, the + rule is reinstated. """ self.add = add self.remove = remove - self.update = update @classmethod def from_dict(cls, _dict: Dict) -> 'AssertionsActionControls': @@ -3412,8 +3429,6 @@ def from_dict(cls, _dict: Dict) -> 'AssertionsActionControls': args['add'] = _dict.get('add') if 'remove' in _dict: args['remove'] = _dict.get('remove') - if 'update' in _dict: - args['update'] = _dict.get('update') return cls(**args) @classmethod @@ -3428,8 +3443,6 @@ def to_dict(self) -> Dict: _dict['add'] = self.add if hasattr(self, 'remove') and self.remove is not None: _dict['remove'] = self.remove - if hasattr(self, 'update') and self.update is not None: - _dict['update'] = self.update return _dict def _to_dict(self): @@ -5825,9 +5838,16 @@ class MembersActionControls: :attr bool add: (optional) Action control for adding child account members to an enterprise-managed access group. If an access group administrator in a child - account adds a member, they can always remove them. + account adds a member, they can always remove them. Note that if conflicts arise + between an update to this control in a new version and members added by an + administrator in the child account, you must resolve those conflicts in the + child account. This prevents breaking access in the child account. For more + information, see [Working with versions] + (https://test.cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-working-with-versions#new-version-scenarios). :attr bool remove: (optional) Action control for removing enterprise-managed - members from an enterprise-managed access group. + members from an enterprise-managed access group. Note that if an enterprise + member is removed from an enterprise-managed access group in a child account and + you reassign the template, the membership is reinstated. """ def __init__( @@ -5841,9 +5861,17 @@ def __init__( :param bool add: (optional) Action control for adding child account members to an enterprise-managed access group. If an access group administrator in - a child account adds a member, they can always remove them. + a child account adds a member, they can always remove them. Note that if + conflicts arise between an update to this control in a new version and + members added by an administrator in the child account, you must resolve + those conflicts in the child account. This prevents breaking access in the + child account. For more information, see [Working with versions] + (https://test.cloud.ibm.com/docs/secure-enterprise?topic=secure-enterprise-working-with-versions#new-version-scenarios). :param bool remove: (optional) Action control for removing - enterprise-managed members from an enterprise-managed access group. + enterprise-managed members from an enterprise-managed access group. Note + that if an enterprise member is removed from an enterprise-managed access + group in a child account and you reassign the template, the membership is + reinstated. """ self.add = add self.remove = remove @@ -6216,26 +6244,20 @@ class RuleActionControls: :attr bool remove: (optional) Action control for removing this enterprise-managed dynamic rule. - :attr bool update: (optional) Action control for updating this - enterprise-managed dynamic rule. """ def __init__( self, *, remove: bool = None, - update: bool = None, ) -> None: """ Initialize a RuleActionControls object. :param bool remove: (optional) Action control for removing this enterprise-managed dynamic rule. - :param bool update: (optional) Action control for updating this - enterprise-managed dynamic rule. """ self.remove = remove - self.update = update @classmethod def from_dict(cls, _dict: Dict) -> 'RuleActionControls': @@ -6243,8 +6265,6 @@ def from_dict(cls, _dict: Dict) -> 'RuleActionControls': args = {} if 'remove' in _dict: args['remove'] = _dict.get('remove') - if 'update' in _dict: - args['update'] = _dict.get('update') return cls(**args) @classmethod @@ -6257,8 +6277,6 @@ def to_dict(self) -> Dict: _dict = {} if hasattr(self, 'remove') and self.remove is not None: _dict['remove'] = self.remove - if hasattr(self, 'update') and self.update is not None: - _dict['update'] = self.update return _dict def _to_dict(self): diff --git a/test/integration/test_iam_access_groups_v2.py b/test/integration/test_iam_access_groups_v2.py index deaaa869..79715d76 100644 --- a/test/integration/test_iam_access_groups_v2.py +++ b/test/integration/test_iam_access_groups_v2.py @@ -567,7 +567,6 @@ def test_create_template(self): # Construct a dict representation of a RulesActionControls model rules_action_controls_model = { 'remove': False, - 'update': False, } # Construct a dict representation of a RuleInput model rule_input_model = { @@ -581,7 +580,6 @@ def test_create_template(self): assertions_action_controls_model = { 'add': False, 'remove': True, - 'update': True, } # Construct a dict representation of a AssertionsInput model assertions_input_model = { @@ -690,7 +688,6 @@ def test_create_template_version(self): # Construct a dict representation of a RulesActionControls model rules_action_controls_model = { 'remove': True, - 'update': True, } # Construct a dict representation of a RuleInput model rule_input_model = { @@ -704,7 +701,6 @@ def test_create_template_version(self): assertions_action_controls_model = { 'add': False, 'remove': True, - 'update': True, } # Construct a dict representation of a AssertionsInput model assertions_input_model = { @@ -822,7 +818,6 @@ def test_update_template_version(self): # Construct a dict representation of a RulesActionControls model rules_action_controls_model = { 'remove': False, - 'update': False, } # Construct a dict representation of a RuleInput model rule_input_model = { @@ -836,7 +831,6 @@ def test_update_template_version(self): assertions_action_controls_model = { 'add': False, 'remove': True, - 'update': True, } # Construct a dict representation of a AssertionsInput model assertions_input_model = { diff --git a/test/unit/test_iam_access_groups_v2.py b/test/unit/test_iam_access_groups_v2.py index c9299ce5..8bb44137 100644 --- a/test/unit/test_iam_access_groups_v2.py +++ b/test/unit/test_iam_access_groups_v2.py @@ -3062,7 +3062,7 @@ def test_create_template_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3091,7 +3091,6 @@ def test_create_template_all_params(self): # Construct a dict representation of a RuleActionControls model rule_action_controls_model = {} rule_action_controls_model['remove'] = False - rule_action_controls_model['update'] = False # Construct a dict representation of a AssertionsRule model assertions_rule_model = {} @@ -3105,7 +3104,6 @@ def test_create_template_all_params(self): assertions_action_controls_model = {} assertions_action_controls_model['add'] = False assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a dict representation of a Assertions model assertions_model = {} @@ -3184,7 +3182,7 @@ def test_create_template_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3213,7 +3211,6 @@ def test_create_template_required_params(self): # Construct a dict representation of a RuleActionControls model rule_action_controls_model = {} rule_action_controls_model['remove'] = False - rule_action_controls_model['update'] = False # Construct a dict representation of a AssertionsRule model assertions_rule_model = {} @@ -3227,7 +3224,6 @@ def test_create_template_required_params(self): assertions_action_controls_model = {} assertions_action_controls_model['add'] = False assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a dict representation of a Assertions model assertions_model = {} @@ -3304,7 +3300,7 @@ def test_create_template_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3333,7 +3329,6 @@ def test_create_template_value_error(self): # Construct a dict representation of a RuleActionControls model rule_action_controls_model = {} rule_action_controls_model['remove'] = False - rule_action_controls_model['update'] = False # Construct a dict representation of a AssertionsRule model assertions_rule_model = {} @@ -3347,7 +3342,6 @@ def test_create_template_value_error(self): assertions_action_controls_model = {} assertions_action_controls_model['add'] = False assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a dict representation of a Assertions model assertions_model = {} @@ -3416,7 +3410,7 @@ def test_list_templates_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3469,7 +3463,7 @@ def test_list_templates_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3511,7 +3505,7 @@ def test_list_templates_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_templates": [{"id": "id", "name": "name", "description": "description", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3548,8 +3542,8 @@ def test_list_templates_with_pager_get_next(self): """ # Set up a two-page mock response url = preprocess_url('/v1/group_templates') - mock_response1 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1}' - mock_response2 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"total_count":2,"limit":1}' + mock_response1 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1}' + mock_response2 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"total_count":2,"limit":1}' responses.add( responses.GET, url, @@ -3587,8 +3581,8 @@ def test_list_templates_with_pager_get_all(self): """ # Set up a two-page mock response url = preprocess_url('/v1/group_templates') - mock_response1 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1}' - mock_response2 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"total_count":2,"limit":1}' + mock_response1 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"limit":1}' + mock_response2 = '{"group_templates":[{"id":"id","name":"name","description":"description","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"2019-01-01T12:00:00.000Z","created_by_id":"created_by_id","last_modified_at":"2019-01-01T12:00:00.000Z","last_modified_by_id":"last_modified_by_id"}],"total_count":2,"limit":1}' responses.add( responses.GET, url, @@ -3629,7 +3623,7 @@ def test_create_template_version_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3657,8 +3651,7 @@ def test_create_template_version_all_params(self): # Construct a dict representation of a RuleActionControls model rule_action_controls_model = {} - rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True + rule_action_controls_model['remove'] = False # Construct a dict representation of a AssertionsRule model assertions_rule_model = {} @@ -3672,7 +3665,6 @@ def test_create_template_version_all_params(self): assertions_action_controls_model = {} assertions_action_controls_model['add'] = False assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a dict representation of a Assertions model assertions_model = {} @@ -3750,7 +3742,7 @@ def test_create_template_version_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3788,7 +3780,7 @@ def test_create_template_version_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.POST, url, @@ -3831,7 +3823,7 @@ def test_list_template_versions_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3878,7 +3870,7 @@ def test_list_template_versions_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3916,7 +3908,7 @@ def test_list_template_versions_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions') - mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' + mock_response = '{"limit": 5, "offset": 6, "total_count": 11, "first": {"href": "href"}, "previous": {"href": "href"}, "next": {"href": "href"}, "last": {"href": "href"}, "group_template_versions": [{"name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "created_at", "created_by_id": "created_by_id", "last_modified_at": "last_modified_at", "last_modified_by_id": "last_modified_by_id"}]}' responses.add( responses.GET, url, @@ -3953,8 +3945,8 @@ def test_list_template_versions_with_pager_get_next(self): """ # Set up a two-page mock response url = preprocess_url('/v1/group_templates/testString/versions') - mock_response1 = '{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' - mock_response2 = '{"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' + mock_response1 = '{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' + mock_response2 = '{"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' responses.add( responses.GET, url, @@ -3990,8 +3982,8 @@ def test_list_template_versions_with_pager_get_all(self): """ # Set up a two-page mock response url = preprocess_url('/v1/group_templates/testString/versions') - mock_response1 = '{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' - mock_response2 = '{"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true,"update":true}}],"action_controls":{"add":false,"remove":true,"update":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' + mock_response1 = '{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' + mock_response2 = '{"total_count":2,"group_template_versions":[{"name":"name","description":"description","account_id":"account_id","version":"version","committed":false,"group":{"name":"name","description":"description","members":{"users":["users"],"services":["services"],"action_controls":{"add":false,"remove":true}},"assertions":{"rules":[{"name":"name","expiration":10,"realm_name":"realm_name","conditions":[{"claim":"claim","operator":"operator","value":"value"}],"action_controls":{"remove":true}}],"action_controls":{"add":false,"remove":true}},"action_controls":{"access":{"add":false}}},"policy_template_references":[{"id":"id","version":"version"}],"href":"href","created_at":"created_at","created_by_id":"created_by_id","last_modified_at":"last_modified_at","last_modified_by_id":"last_modified_by_id"}],"limit":1}' responses.add( responses.GET, url, @@ -4030,7 +4022,7 @@ def test_get_template_version_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -4078,7 +4070,7 @@ def test_get_template_version_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -4118,7 +4110,7 @@ def test_get_template_version_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -4163,7 +4155,7 @@ def test_update_template_version_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.PUT, url, @@ -4192,7 +4184,6 @@ def test_update_template_version_all_params(self): # Construct a dict representation of a RuleActionControls model rule_action_controls_model = {} rule_action_controls_model['remove'] = False - rule_action_controls_model['update'] = False # Construct a dict representation of a AssertionsRule model assertions_rule_model = {} @@ -4206,7 +4197,6 @@ def test_update_template_version_all_params(self): assertions_action_controls_model = {} assertions_action_controls_model['add'] = False assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a dict representation of a Assertions model assertions_model = {} @@ -4288,7 +4278,7 @@ def test_update_template_version_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.PUT, url, @@ -4330,7 +4320,7 @@ def test_update_template_version_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString/versions/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.PUT, url, @@ -4619,7 +4609,7 @@ def test_get_latest_template_version_all_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -4665,7 +4655,7 @@ def test_get_latest_template_version_required_params(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -4703,7 +4693,7 @@ def test_get_latest_template_version_value_error(self): """ # Set up mock url = preprocess_url('/v1/group_templates/testString') - mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true, "update": true}}], "action_controls": {"add": false, "remove": true, "update": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' + mock_response = '{"id": "id", "name": "name", "description": "description", "account_id": "account_id", "version": "version", "committed": false, "group": {"name": "name", "description": "description", "members": {"users": ["users"], "services": ["services"], "action_controls": {"add": false, "remove": true}}, "assertions": {"rules": [{"name": "name", "expiration": 10, "realm_name": "realm_name", "conditions": [{"claim": "claim", "operator": "operator", "value": "value"}], "action_controls": {"remove": true}}], "action_controls": {"add": false, "remove": true}}, "action_controls": {"access": {"add": false}}}, "policy_template_references": [{"id": "id", "version": "version"}], "href": "href", "created_at": "2019-01-01T12:00:00.000Z", "created_by_id": "created_by_id", "last_modified_at": "2019-01-01T12:00:00.000Z", "last_modified_by_id": "last_modified_by_id"}' responses.add( responses.GET, url, @@ -5584,7 +5574,6 @@ def test_access_group_request_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -5596,7 +5585,6 @@ def test_access_group_request_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -5660,7 +5648,6 @@ def test_access_group_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -5672,7 +5659,6 @@ def test_access_group_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -6000,7 +5986,6 @@ def test_assertions_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -6012,7 +5997,6 @@ def test_assertions_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True # Construct a json representation of a Assertions model assertions_model_json = {} @@ -6049,7 +6033,6 @@ def test_assertions_action_controls_serialization(self): assertions_action_controls_model_json = {} assertions_action_controls_model_json['add'] = True assertions_action_controls_model_json['remove'] = True - assertions_action_controls_model_json['update'] = True # Construct a model instance of AssertionsActionControls by calling from_dict on the json representation assertions_action_controls_model = AssertionsActionControls.from_dict(assertions_action_controls_model_json) @@ -6088,7 +6071,6 @@ def test_assertions_rule_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True # Construct a json representation of a AssertionsRule model assertions_rule_model_json = {} @@ -6620,7 +6602,6 @@ def test_group_template_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -6632,7 +6613,6 @@ def test_group_template_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -6899,7 +6879,6 @@ def test_list_template_version_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -6911,7 +6890,6 @@ def test_list_template_version_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -7000,7 +6978,6 @@ def test_list_template_versions_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -7012,7 +6989,6 @@ def test_list_template_versions_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -7113,7 +7089,6 @@ def test_list_templates_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -7125,7 +7100,6 @@ def test_list_templates_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -7409,7 +7383,6 @@ def test_rule_action_controls_serialization(self): # Construct a json representation of a RuleActionControls model rule_action_controls_model_json = {} rule_action_controls_model_json['remove'] = True - rule_action_controls_model_json['update'] = True # Construct a model instance of RuleActionControls by calling from_dict on the json representation rule_action_controls_model = RuleActionControls.from_dict(rule_action_controls_model_json) @@ -7653,7 +7626,6 @@ def test_template_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -7665,7 +7637,6 @@ def test_template_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model] @@ -7748,7 +7719,6 @@ def test_template_version_response_serialization(self): rule_action_controls_model = {} # RuleActionControls rule_action_controls_model['remove'] = True - rule_action_controls_model['update'] = True assertions_rule_model = {} # AssertionsRule assertions_rule_model['name'] = 'testString' @@ -7760,7 +7730,6 @@ def test_template_version_response_serialization(self): assertions_action_controls_model = {} # AssertionsActionControls assertions_action_controls_model['add'] = True assertions_action_controls_model['remove'] = True - assertions_action_controls_model['update'] = True assertions_model = {} # Assertions assertions_model['rules'] = [assertions_rule_model]