From 23735ebe8b295ea1c77730896cd61a89536b13b6 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 28 Oct 2021 22:21:42 +0800 Subject: [PATCH] Extract ocloud integration test Issue-ID: INF-196 Signed-off-by: Bin Yang Change-Id: I8f62bb344e407a9b13d9d3fb37729b28ff807fc6 --- README.md | 10 +++++++++- tests/integration-ocloud/__init__.py | 13 +++++++++++++ .../test_clientdriver_stx_sa.py | 0 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/integration-ocloud/__init__.py rename tests/{integration => integration-ocloud}/test_clientdriver_stx_sa.py (100%) diff --git a/README.md b/README.md index ea2bdb4..edd927e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,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,6 +15,15 @@ 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 ``` diff --git a/tests/integration-ocloud/__init__.py b/tests/integration-ocloud/__init__.py new file mode 100644 index 0000000..b514342 --- /dev/null +++ b/tests/integration-ocloud/__init__.py @@ -0,0 +1,13 @@ +# Copyright (C) 2021 Wind River Systems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/integration/test_clientdriver_stx_sa.py b/tests/integration-ocloud/test_clientdriver_stx_sa.py similarity index 100% rename from tests/integration/test_clientdriver_stx_sa.py rename to tests/integration-ocloud/test_clientdriver_stx_sa.py -- 2.16.6