def test_all_delete(quicksight_delete_dashboard_stubber,
                    quicksight_delete_analysis_stubber,
                    quicksight_delete_data_set_stubber,
                    quicksight_delete_data_source_stubber):
    # call lambda function under test
    from lambda_function import custom_resource_create, custom_resource_delete

    event = generate_event('Delete', 'all')
    custom_resource_delete(event, None)
def test_analysis_create_and_delete(quicksight_state_all,
                                    quicksight_create_analysis_stubber,
                                    quicksight_delete_analysis_stubber):
    # call lambda function under test
    from lambda_function import custom_resource_create, custom_resource_delete

    event = generate_event('Create', 'analysis')
    custom_resource_create(event, None)

    event = generate_event('Delete', 'analysis')
    custom_resource_delete(event, None)
def test_data_set_create_and_delete(quicksight_create_data_set_stubber, quicksight_delete_data_set_stubber):
    # call lambda function under test
    from lambda_function import custom_resource_create, custom_resource_delete

    # create dataset
    event = generate_event('Create', 'dataset')
    custom_resource_create(event, None)

    # delete dataset
    event = generate_event('Delete', 'dataset')
    custom_resource_delete(event, None)
def test_all_create_and_delete(
        quicksight_create_data_source_stubber,  # NOSONAR:S107 this test function is designed to take many fixtures and is a larger test
        quicksight_create_data_set_stubber,
        quicksight_create_analysis_stubber,
        quicksight_create_dashboard_stubber,
        quicksight_delete_dashboard_stubber,
        quicksight_delete_analysis_stubber,
        quicksight_delete_data_set_stubber,
        quicksight_delete_data_source_stubber):
    # call lambda function under test
    from lambda_function import custom_resource_create, custom_resource_delete

    event = generate_event('Create', 'all')
    custom_resource_create(event, None)

    event = generate_event('Delete', 'all')
    custom_resource_delete(event, None)