1 ## Building containers
\r
12 source ./admin_openrc.sh
\r
13 export |grep OS_AUTH_URL
\r
14 export |grep OS_USERNAME
\r
15 export |grep OS_PASSWORD
\r
16 docker-compose up -d
\r
17 docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration
\r
20 ## Running the tests with a O-Cloud
\r
22 Prerequisite: in case of testing against real ocloud, download openrc file from ocloud dashboard, e.g.
\r
26 docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration-ocloud
\r
28 docker-compose run --rm --no-deps --entrypoint=pytest api /tests/integration-ocloud --log-level=DEBUG --log-file=/test
\r
32 ## Tear down containers
\r
35 docker-compose down --remove-orphans
\r
38 ## Test with local virtualenv
\r
41 python3.8 -m venv .venv && source .venv/bin/activate
\r
42 pip install -r requirements.txt -c constraints.txt
\r
43 pip install -r requirements-test.txt
\r
44 pip install -e o2ims
\r
45 # pip install -e o2dms -e o2common
\r
47 pytest tests/integration
\r