From dca8d0c2615d142bca55d367a0bc988ce9860368 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Sun, 16 Sep 2018 14:31:09 -0700 Subject: [PATCH] HDDS-470. Ozone acceptance tests are failing. Contributed by Elek, Marton. --- .../acceptance/ozonefs/ozonesinglenode.robot | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/hadoop-ozone/acceptance-test/src/test/acceptance/ozonefs/ozonesinglenode.robot b/hadoop-ozone/acceptance-test/src/test/acceptance/ozonefs/ozonesinglenode.robot index b718bc9f222..15ad5bb0a84 100644 --- a/hadoop-ozone/acceptance-test/src/test/acceptance/ozonefs/ozonesinglenode.robot +++ b/hadoop-ozone/acceptance-test/src/test/acceptance/ozonefs/ozonesinglenode.robot @@ -14,7 +14,7 @@ # limitations under the License. *** Settings *** -Documentation Ozonefs Single Node Test +Documentation Ozone Single Node Test Library OperatingSystem Suite Setup Startup Ozone cluster with size 1 Suite Teardown Teardown Ozone cluster @@ -27,23 +27,23 @@ ${PROJECTDIR} ${CURDIR}/../../../../../.. *** Test Cases *** Create volume and bucket - Execute on datanode ozone sh -createVolume http://ozoneManager/fstest -user bilbo -quota 100TB -root - Execute on datanode ozone sh -createBucket http://ozoneManager/fstest/bucket1 + Execute on datanode ozone sh volume create http://ozoneManager/fstest --user bilbo --quota 100TB --root + Execute on datanode ozone sh bucket create http://ozoneManager/fstest/bucket1 Check volume from ozonefs ${result} = Execute on datanode ozone fs -ls o3://bucket1.fstest/ Create directory from ozonefs Execute on datanode ozone fs -mkdir -p o3://bucket1.fstest/testdir/deep - ${result} = Execute on ozoneManager ozone sh -listKey o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName' + ${result} = Execute on ozoneManager ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName' Should contain ${result} testdir/deep Test key handling - Execute on datanode ozone sh -putKey o3://ozoneManager/fstest/bucket1/key1 -file NOTICE.txt -replicationFactor 1 + Execute on datanode ozone sh key put o3://ozoneManager/fstest/bucket1/key1 NOTICE.txt --replication ONE Execute on datanode rm -f NOTICE.txt.1 - Execute on datanode ozone sh -getKey o3://ozoneManager/fstest/bucket1/key1 -file NOTICE.txt.1 + Execute on datanode ozone sh key get o3://ozoneManager/fstest/bucket1/key1 NOTICE.txt.1 Execute on datanode ls -l NOTICE.txt.1 - ${result} = Execute on datanode ozone sh -infoKey o3://ozoneManager/fstest/bucket1/key1 | grep -Ev 'Removed|WARN|DEBUG|ERROR|INFO|TRACE' | jq -r '. | select(.keyName=="key1")' + ${result} = Execute on datanode ozone sh key info o3://ozoneManager/fstest/bucket1/key1 | grep -Ev 'Removed|WARN|DEBUG|ERROR|INFO|TRACE' | jq -r '. | select(.keyName=="key1")' Should contain ${result} createdOn - ${result} = Execute on datanode ozone sh -listKey o3://ozoneManager/fstest/bucket1 | grep -Ev 'Removed|WARN|DEBUG|ERROR|INFO|TRACE' | jq -r '.[] | select(.keyName=="key1") | .keyName' + ${result} = Execute on datanode ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -Ev 'Removed|WARN|DEBUG|ERROR|INFO|TRACE' | jq -r '.[] | select(.keyName=="key1") | .keyName' Should Be Equal ${result} key1 - Execute on datanode ozone sh -deleteKey o3://ozoneManager/fstest/bucket1/key1 -v + Execute on datanode ozone sh key delete o3://ozoneManager/fstest/bucket1/key1