'A container running as a user that is not root can write to a
dataset attached as a volume.'

@require_cluster(1, require_container_agent=True)
def test_non_root_container_can_access_dataset(self, cluster):

    node = cluster.nodes[0]
    creating_dataset = create_dataset(self, cluster)
    def created_dataset(dataset):
        return create_python_container(self, cluster, {u'ports': [{u'internal': 8080, u'external': 8080}], u'node_uuid': node.uuid, u'volumes': [{u'dataset_id': unicode(dataset.dataset_id), u'mountpoint': u'/data'}]}, SCRIPTS.child('nonrootwritehttp.py'), additional_arguments=[u'/data'])
    creating_dataset.addCallback(created_dataset)
    creating_dataset.addCallback((lambda _: assert_http_server(self, node.public_address, 8080)))
    return creating_dataset
