Best Python code snippet using localstack_python
test_software_deployment_group.py
Source:test_software_deployment_group.py  
...79            stack_identifier, 'deployment')80        self._wait_for_stack_status(nested_identifier, 'CREATE_IN_PROGRESS')81        self._wait_for_all_resource_status(nested_identifier,82                                           'CREATE_IN_PROGRESS')83        group_resources = self.list_group_resources(84            stack_identifier, 'deployment', minimal=False)85        self.assertEqual(4, len(group_resources))86        self._wait_for_stack_status(stack_identifier, 'CREATE_COMPLETE',87                                    signal_required=True,88                                    resources_to_signal=group_resources)89        created_group_resources = self.list_group_resources(90            stack_identifier, 'deployment', minimal=False)91        self.assertEqual(4, len(created_group_resources))92        self.check_input_values(created_group_resources, 'foo', 'foo_input')93        self.update_stack(stack_identifier,94                          template=template,95                          environment={'parameters': {'input': 'input2'}},96                          expected_status='UPDATE_IN_PROGRESS')97        nested_identifier = self.assert_resource_is_a_stack(98            stack_identifier, 'deployment')99        self._wait_for_stack_status(stack_identifier, 'UPDATE_COMPLETE',100                                    signal_required=True,101                                    resources_to_signal=group_resources)102        self.check_input_values(created_group_resources, 'foo', 'input2')103        # We explicitly test delete here, vs just via cleanup and check104        # the nested stack is gone105        self._stack_delete(stack_identifier)106        self._wait_for_stack_status(107            nested_identifier, 'DELETE_COMPLETE',108            success_on_not_found=True)109    def test_deployment_crud(self):110        self.deployment_crud(self.sd_template)111    def test_deployment_crud_with_rolling_update(self):112        self.deployment_crud(self.sd_template_with_upd_policy)113    def test_deployments_create_delete_in_progress(self):114        stack_identifier = self.stack_create(115            template=self.sd_template,116            enable_cleanup=self.enable_cleanup,117            expected_status='CREATE_IN_PROGRESS')118        self._wait_for_resource_status(119            stack_identifier, 'deployment', 'CREATE_IN_PROGRESS')120        nested_identifier = self.assert_resource_is_a_stack(121            stack_identifier, 'deployment')122        group_resources = self.list_group_resources(123            stack_identifier, 'deployment', minimal=False)124        self.assertEqual(4, len(group_resources))125        # Now test delete while the stacks are still IN_PROGRESS126        self._stack_delete(stack_identifier)127        self._wait_for_stack_status(128            nested_identifier, 'DELETE_COMPLETE',...aws_resource_groups_info.py
Source:aws_resource_groups_info.py  
...76                return paginator.paginate(77                    Group=module.params['name'],78                ), True79            else:80                return client.list_group_resources(81                    Group=module.params['name'],82                ), False83        else:84            return None, False85    except (BotoCoreError, ClientError) as e:86        module.fail_json_aws(e, msg='Failed to fetch AWS Resource Groups details')87def main():88    argument_spec = dict(89        name=dict(required=False, aliases=['group_name']),90        list_groups=dict(required=False, type=bool),91        list_group_resources=dict(required=False, type=bool),92    )93    module = AnsibleAWSModule(94        argument_spec=argument_spec,...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
