From 54835b5ee5b6d3aa93f2cb8e8b3813425cba1019 Mon Sep 17 00:00:00 2001 From: anastasia prasolova Date: Mon, 27 Sep 2021 23:41:21 +0300 Subject: [PATCH] changed pythonpath for virtualenv; shortened test libraries imports Signed-off-by: anastasia prasolova --- .../integration/acl/acl_extended_actions_user.robot | 6 +++--- .../integration/acl/common_steps_acl_extended.robot | 4 +++- .../cli/netmap/networkinfo_rpc_method.robot | 6 +++--- .../integration/container/container_delete.robot | 10 +++++----- .../integration/network/netmap_simple.robot | 8 ++++---- .../integration/object/common_steps_object.robot | 4 ++-- .../integration/object/object_complex.robot | 10 +++++----- .../integration/object/object_expiration.robot | 10 +++++----- .../integration/object/object_simple.robot | 10 +++++----- robot/testsuites/integration/payment/withdraw.robot | 10 +++++----- .../testsuites/integration/services/http_gate.robot | 12 ++++++------ robot/variables/common.py | 1 - venv/localtest/environment.sh | 2 +- 13 files changed, 47 insertions(+), 46 deletions(-) diff --git a/robot/testsuites/integration/acl/acl_extended_actions_user.robot b/robot/testsuites/integration/acl/acl_extended_actions_user.robot index 0278594e..2dfb0c7b 100644 --- a/robot/testsuites/integration/acl/acl_extended_actions_user.robot +++ b/robot/testsuites/integration/acl/acl_extended_actions_user.robot @@ -7,8 +7,8 @@ Library payment_neogo.py Library acl.py Resource common_steps_acl_extended.robot -Resource ../${RESOURCES}/payment_operations.robot -Resource ../${RESOURCES}/setup_teardown.robot +Resource payment_operations.robot +Resource setup_teardown.robot Resource ../../../variables/eacl_tables.robot *** Test cases *** @@ -19,7 +19,7 @@ Extended ACL Operations [Setup] Setup - ${WALLET} ${ADDR} ${USER_KEY} = Prepare Wallet And Deposit + ${WALLET} ${ADDR} ${USER_KEY} = Prepare Wallet And Deposit Log Check extended ACL with simple object Generate files ${SIMPLE_OBJ_SIZE} diff --git a/robot/testsuites/integration/acl/common_steps_acl_extended.robot b/robot/testsuites/integration/acl/common_steps_acl_extended.robot index 8f2da9c3..a57a8481 100644 --- a/robot/testsuites/integration/acl/common_steps_acl_extended.robot +++ b/robot/testsuites/integration/acl/common_steps_acl_extended.robot @@ -1,6 +1,8 @@ *** Settings *** Variables ../../../variables/common.py +Library acl.py + *** Variables *** ${FILE_USR_HEADER} = key1=1,key2=abc ${FILE_USR_HEADER_DEL} = key1=del,key2=del @@ -20,7 +22,7 @@ Create Container Public Generate files [Arguments] ${SIZE} - + ${FILE_S_GEN_1} = Generate file of bytes ${SIZE} ${FILE_S_GEN_2} = Generate file of bytes ${SIZE} Set Global Variable ${FILE_S} ${FILE_S_GEN_1} diff --git a/robot/testsuites/integration/cli/netmap/networkinfo_rpc_method.robot b/robot/testsuites/integration/cli/netmap/networkinfo_rpc_method.robot index c87b2f1b..cddf2eb1 100644 --- a/robot/testsuites/integration/cli/netmap/networkinfo_rpc_method.robot +++ b/robot/testsuites/integration/cli/netmap/networkinfo_rpc_method.robot @@ -1,12 +1,12 @@ *** Settings *** -Variables ../../../variables/common.py +Variables ../../../../variables/common.py Library Collections Library Process Library String -Library ${KEYWORDS}/contract_keywords.py +Library contract_keywords.py -Resource ../${RESOURCES}/setup_teardown.robot +Resource setup_teardown.robot *** Variables *** ${SN_01_ADDR} = s01.neofs.devenv:8080 diff --git a/robot/testsuites/integration/container/container_delete.robot b/robot/testsuites/integration/container/container_delete.robot index d283a40e..33c7dc1f 100644 --- a/robot/testsuites/integration/container/container_delete.robot +++ b/robot/testsuites/integration/container/container_delete.robot @@ -2,12 +2,12 @@ Variables ../../../variables/common.py Variables ../../../variables/acl.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/wallet_keywords.py +Library neofs.py +Library payment_neogo.py +Library wallet_keywords.py -Resource ../${RESOURCES}/setup_teardown.robot -Resource ../${RESOURCES}/payment_operations.robot +Resource setup_teardown.robot +Resource payment_operations.robot *** Variables *** ${CONTAINER_WAIT_INTERVAL} = 1 min diff --git a/robot/testsuites/integration/network/netmap_simple.robot b/robot/testsuites/integration/network/netmap_simple.robot index 156ad731..1a09670c 100644 --- a/robot/testsuites/integration/network/netmap_simple.robot +++ b/robot/testsuites/integration/network/netmap_simple.robot @@ -1,10 +1,10 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/wallet_keywords.py -Library ${KEYWORDS}/rpc_call_keywords.py +Library neofs.py +Library payment_neogo.py +Library wallet_keywords.py +Library rpc_call_keywords.py Resource ../${RESOURCES}/payment_operations.robot Resource ../${RESOURCES}/setup_teardown.robot diff --git a/robot/testsuites/integration/object/common_steps_object.robot b/robot/testsuites/integration/object/common_steps_object.robot index 402a450a..c8b557ad 100644 --- a/robot/testsuites/integration/object/common_steps_object.robot +++ b/robot/testsuites/integration/object/common_steps_object.robot @@ -1,8 +1,8 @@ *** Settings *** Variables ../../../variables/common.py -Library ${KEYWORDS}/wallet_keywords.py -Library ${KEYWORDS}/rpc_call_keywords.py +Library wallet_keywords.py +Library rpc_call_keywords.py *** Variables *** ${FILE_USR_HEADER} = key1=1,key2=abc diff --git a/robot/testsuites/integration/object/object_complex.robot b/robot/testsuites/integration/object/object_complex.robot index bc2d798d..80fac17b 100644 --- a/robot/testsuites/integration/object/object_complex.robot +++ b/robot/testsuites/integration/object/object_complex.robot @@ -1,13 +1,13 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/contract_keywords.py +Library neofs.py +Library payment_neogo.py +Library contract_keywords.py Resource common_steps_object.robot -Resource ../${RESOURCES}/setup_teardown.robot -Resource ../${RESOURCES}/payment_operations.robot +Resource setup_teardown.robot +Resource payment_operations.robot *** Variables *** ${CLEANUP_TIMEOUT} = 10s diff --git a/robot/testsuites/integration/object/object_expiration.robot b/robot/testsuites/integration/object/object_expiration.robot index 5eff9345..ea382866 100644 --- a/robot/testsuites/integration/object/object_expiration.robot +++ b/robot/testsuites/integration/object/object_expiration.robot @@ -1,13 +1,13 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/contract_keywords.py +Library neofs.py +Library payment_neogo.py +Library contract_keywords.py Resource common_steps_object.robot -Resource ../${RESOURCES}/setup_teardown.robot -Resource ../${RESOURCES}/payment_operations.robot +Resource setup_teardown.robot +Resource payment_operations.robot *** Variables *** ${CLEANUP_TIMEOUT} = 10s diff --git a/robot/testsuites/integration/object/object_simple.robot b/robot/testsuites/integration/object/object_simple.robot index 7a245506..f88a3d7a 100644 --- a/robot/testsuites/integration/object/object_simple.robot +++ b/robot/testsuites/integration/object/object_simple.robot @@ -1,13 +1,13 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/contract_keywords.py +Library neofs.py +Library payment_neogo.py +Library contract_keywords.py Resource common_steps_object.robot -Resource ../${RESOURCES}/payment_operations.robot -Resource ../${RESOURCES}/setup_teardown.robot +Resource payment_operations.robot +Resource setup_teardown.robot *** Variables *** ${CLEANUP_TIMEOUT} = 10s diff --git a/robot/testsuites/integration/payment/withdraw.robot b/robot/testsuites/integration/payment/withdraw.robot index 82ba8cff..dd7fb659 100644 --- a/robot/testsuites/integration/payment/withdraw.robot +++ b/robot/testsuites/integration/payment/withdraw.robot @@ -1,12 +1,12 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ${KEYWORDS}/wallet_keywords.py -Library ${KEYWORDS}/rpc_call_keywords.py +Library neofs.py +Library payment_neogo.py +Library wallet_keywords.py +Library rpc_call_keywords.py -Resource ../${RESOURCES}/setup_teardown.robot +Resource setup_teardown.robot *** Variables *** ${DEPOSIT_AMOUNT} = ${10} diff --git a/robot/testsuites/integration/services/http_gate.robot b/robot/testsuites/integration/services/http_gate.robot index 541144f5..af303eeb 100644 --- a/robot/testsuites/integration/services/http_gate.robot +++ b/robot/testsuites/integration/services/http_gate.robot @@ -1,13 +1,13 @@ *** Settings *** Variables ../../../variables/common.py -Library ../${RESOURCES}/neofs.py -Library ../${RESOURCES}/payment_neogo.py -Library ../${RESOURCES}/gates.py -Library ${KEYWORDS}/wallet_keywords.py -Library ${KEYWORDS}/rpc_call_keywords.py +Library neofs.py +Library payment_neogo.py +Library gates.py +Library wallet_keywords.py +Library rpc_call_keywords.py -Resource ../${RESOURCES}/setup_teardown.robot +Resource setup_teardown.robot *** Variables *** ${PLACEMENT_RULE} = REP 1 IN X CBF 1 SELECT 1 FROM * AS X diff --git a/robot/variables/common.py b/robot/variables/common.py index a2be183c..f6ee70c8 100644 --- a/robot/variables/common.py +++ b/robot/variables/common.py @@ -4,7 +4,6 @@ ROOT='../..' RESOURCES="%s/resources/lib" % ROOT CERT="%s/../../ca" % ROOT -KEYWORDS="%s/../../../neofs-keywords/robot/" % ROOT # Common NeoFS variables can be declared from neofs-dev-env env variables. # High priority is accepted for those envs. diff --git a/venv/localtest/environment.sh b/venv/localtest/environment.sh index 2832c05c..e96d4af4 100644 --- a/venv/localtest/environment.sh +++ b/venv/localtest/environment.sh @@ -4,4 +4,4 @@ pushd ../neofs-dev-env export `make env` popd -export PYTHONPATH=${PYTHONPATH}:${VIRTUAL_ENV}/neofs-keywords/lib:${VIRTUAL_ENV}/neofs-keywords/robot:~/neofs-testcases/robot/resources/lib +export PYTHONPATH=${PYTHONPATH}:${VIRTUAL_ENV}/neofs-keywords/lib:${VIRTUAL_ENV}/neofs-keywords/robot:${VIRTUAL_ENV}/../robot/resources/lib