Exemplo n.º 1
0
def test_delete_all_objects_in_bucket(object_storage_client, list_all_resources_patch):
    list_objects = ListObjects()
    object_summary = ObjectSummary()
    object_summary.name = 'test_object'
    list_objects.objects = [object_summary]
    list_all_resources_patch.return_value = list_objects
    oci_bucket.delete_all_objects_in_bucket(object_storage_client,'test_namespace', 'test_bucket')
    assert object_storage_client.delete_object.called
def get_object_summary_response_fields_to_retrieve():
    return [
        oci_common_utils.camelize(field)
        for field in list(ObjectSummary().attribute_map)
    ]