X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=README.md;h=1612e8e312a19e9d7bccae7ebcdca7663a577fce;hb=8be81dfad35b08c4de77168e885bb18253069771;hp=e4c75d9898828d8fe309af34fdea5cc17ec77316;hpb=81e3575a77366f30c2049f98c48a3087db0ea992;p=pti%2Fo2.git diff --git a/README.md b/README.md index e4c75d9..1612e8e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ ## Building containers +To accommodate the git repo access issue, the cgts-client and distributed client are +cloned into temp before docker building + +```sh +mkdir -p temp +cd temp +git clone https://opendev.org/starlingx/config.git +git clone https://opendev.org/starlingx/distcloud-client.git +cd - +``` ```sh docker-compose build @@ -7,11 +17,28 @@ docker-compose build ## Running the tests + ```sh +source ./admin_openrc.sh +export |grep OS_AUTH_URL +export |grep OS_USERNAME +export |grep OS_PASSWORD docker-compose up -d docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration ``` +## Running the tests with a O-Cloud + +Prerequisite: in case of testing against real ocloud, download openrc file from ocloud dashboard, e.g. + +```sh +admin_openrc.sh +docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration-ocloud + +docker-compose run --rm --no-deps --entrypoint=pytest api /tests/integration-ocloud --log-level=DEBUG --log-file=/test +s/debug.log +``` + ## Tear down containers ```sh