passerelle/functests/cmis
Valentin Deniaud 347944babf misc: remove usage of "six" module (#63682) 2022-04-20 17:01:01 +02:00
..
README cmis: change functionnal tests for apache-chemistry server compliance 2018-03-13 18:57:08 +01:00
conftest.py misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
requirements.txt cmis: upgrade cmislib 0.6 (#18407) 2019-10-15 10:48:52 +02:00
tests_cmis.py misc: remove usage of "six" module (#63682) 2022-04-20 17:01:01 +02:00

README

Functional tests for the passerelle CMIS connector

Description
===========

This test suite will use the web API of a passerelle CMIS connector
to perform some actions on a CMIS server, and will use cmislib to connect to the
same CMIS server and check that the passerelle CMIS connector is behaving as expected.

Setup
=====

Install required dependencies in a virtualenv:

    $ virtualenv cmisenv
    $ source venv/bin/activate
    $ pip install -r requirements.txt


You will need a running passerelle instance, whith a CMIS connector instance configured to connect to
a CMIS server.
Suppose that the CMIS connector instance is configured as follow:

    * cmis_endpoint = http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom
    * username = admin
    * username = admin

And that the CMIS connector instance is listening here :

    http://127.0.0.1:8000/cmis/local-alfresco/

Then you would start the test suite with the following command:

    $ py.test --cmis-connector-url=http://127.0.0.1:8000/cmis/local-alfresco/ \
--cmis-endpoint=http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom \
--cmis-username=admin --cmis-password=admin tests_cmis.py

Additional options :

    * --preserve-tree : do not delete the CMIS folder used for the tests