From 5a825785e358897b1586aea849d20290232d899b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Mon, 8 Mar 2021 23:47:08 +0100 Subject: [PATCH] testsuite: Use more ansible for setup --- tests/hbase/defaults/main.yml | 3 ++- tests/hbase/files/hbase-config.sh | 5 +---- tests/hbase/tasks/main.yml | 9 +++++---- tests/hdfs/defaults/main.yml | 1 + tests/hdfs/files/hadoop-config.sh | 5 +---- tests/hdfs/tasks/main.yml | 5 +++-- 6 files changed, 13 insertions(+), 15 deletions(-) diff --git a/tests/hbase/defaults/main.yml b/tests/hbase/defaults/main.yml index aac99c9..83946f7 100644 --- a/tests/hbase/defaults/main.yml +++ b/tests/hbase/defaults/main.yml @@ -1,3 +1,4 @@ hbase_version: "0.96.1.1" -hbase_archive: "hbase-{{ hbase_version }}-hadoop2-bin.tar.gz" +hbase_archive_file: "hbase-{{ hbase_version }}-hadoop2-bin.tar.gz" +hbase_archive_file_checksum256: "7334e7da0b655ab02cfc64454c3d2e93a4c584efbde2dfd37915b9530d1643f8" hbase_archive_url: "https://archive.apache.org/dist/hbase/hbase-{{ hbase_version }}/{{ hbase_archive }}" diff --git a/tests/hbase/files/hbase-config.sh b/tests/hbase/files/hbase-config.sh index ace804a..bf9f481 100755 --- a/tests/hbase/files/hbase-config.sh +++ b/tests/hbase/files/hbase-config.sh @@ -11,10 +11,8 @@ HBASE_FILE_CKSUM="1625453f839f7d8c86078a131af9731f6df28c59e58870db84913dcbc640d4 HBASE_CONFIG_TEMPLATE="hbase/conf/hbase-site.xml.j2" HBASE_TEST_SUITE_EXECUTABLE="hbase/bin/hbase" -declare -a DEPS=("java") - SCRIPT_PATH=$(dirname "$0") -source $SCRIPT_PATH/setup.sh +source $SCRIPT_PATH/../../setup.sh create_hbase_config_template() { read -r -d '' CONFIG <