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
30 ## Tear down containers
\r
33 docker-compose down --remove-orphans
\r
36 ## Test with local virtualenv
\r
39 python3.8 -m venv .venv && source .venv/bin/activate
\r
40 pip install -r requirements.txt -c constraints.txt
\r
41 pip install -r requirements-test.txt
\r
42 pip install -e o2ims
\r
43 # pip install -e o2dms -e o2common
\r
45 pytest tests/integration
\r