X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=README.md;h=1612e8e312a19e9d7bccae7ebcdca7663a577fce;hb=refs%2Fchanges%2F93%2F7093%2F1;hp=ea2bdb4faee66077ed6df89d3df6eb8d6b2d5a6d;hpb=f10107e78b324fc607fe06486764588f38fc220d;p=pti%2Fo2.git diff --git a/README.md b/README.md index ea2bdb4..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,7 +17,6 @@ docker-compose build ## Running the tests -Prerequisite: in case of testing against real ocloud, download openrc file from ocloud dashboard, e.g. admin_openrc.sh ```sh source ./admin_openrc.sh @@ -16,7 +25,18 @@ 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