|
@@ -30,83 +30,83 @@ Create volume and bucket
|
|
|
Execute ozone sh bucket create http://ozoneManager/fstest2/bucket3
|
|
|
|
|
|
Check volume from ozonefs
|
|
|
- ${result} = Execute ozone fs -ls o3://bucket1.fstest/
|
|
|
+ ${result} = Execute ozone fs -ls o3fs://bucket1.fstest/
|
|
|
|
|
|
Run ozoneFS tests
|
|
|
- Execute ozone fs -mkdir -p o3://bucket1.fstest/testdir/deep
|
|
|
+ Execute ozone fs -mkdir -p o3fs://bucket1.fstest/testdir/deep
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} testdir/deep
|
|
|
- Execute ozone fs -copyFromLocal NOTICE.txt o3://bucket1.fstest/testdir/deep/
|
|
|
+ Execute ozone fs -copyFromLocal NOTICE.txt o3fs://bucket1.fstest/testdir/deep/
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} NOTICE.txt
|
|
|
|
|
|
- Execute ozone fs -put NOTICE.txt o3://bucket1.fstest/testdir/deep/PUTFILE.txt
|
|
|
+ Execute ozone fs -put NOTICE.txt o3fs://bucket1.fstest/testdir/deep/PUTFILE.txt
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} PUTFILE.txt
|
|
|
|
|
|
- ${result} = Execute ozone fs -ls o3://bucket1.fstest/testdir/deep/
|
|
|
+ ${result} = Execute ozone fs -ls o3fs://bucket1.fstest/testdir/deep/
|
|
|
Should contain ${result} NOTICE.txt
|
|
|
Should contain ${result} PUTFILE.txt
|
|
|
|
|
|
- Execute ozone fs -mv o3://bucket1.fstest/testdir/deep/NOTICE.txt o3://bucket1.fstest/testdir/deep/MOVED.TXT
|
|
|
+ Execute ozone fs -mv o3fs://bucket1.fstest/testdir/deep/NOTICE.txt o3fs://bucket1.fstest/testdir/deep/MOVED.TXT
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} MOVED.TXT
|
|
|
Should not contain ${result} NOTICE.txt
|
|
|
|
|
|
- Execute ozone fs -mkdir -p o3://bucket1.fstest/testdir/deep/subdir1
|
|
|
- Execute ozone fs -cp o3://bucket1.fstest/testdir/deep/MOVED.TXT o3://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
+ Execute ozone fs -mkdir -p o3fs://bucket1.fstest/testdir/deep/subdir1
|
|
|
+ Execute ozone fs -cp o3fs://bucket1.fstest/testdir/deep/MOVED.TXT o3fs://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} subdir1/NOTICE.txt
|
|
|
|
|
|
- ${result} = Execute ozone fs -ls o3://bucket1.fstest/testdir/deep/subdir1/
|
|
|
+ ${result} = Execute ozone fs -ls o3fs://bucket1.fstest/testdir/deep/subdir1/
|
|
|
Should contain ${result} NOTICE.txt
|
|
|
|
|
|
- Execute ozone fs -cat o3://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
+ Execute ozone fs -cat o3fs://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
Should not contain ${result} Failed
|
|
|
|
|
|
- Execute ozone fs -rm o3://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
+ Execute ozone fs -rm o3fs://bucket1.fstest/testdir/deep/subdir1/NOTICE.txt
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should not contain ${result} NOTICE.txt
|
|
|
|
|
|
- ${result} = Execute ozone fs -rmdir o3://bucket1.fstest/testdir/deep/subdir1/
|
|
|
+ ${result} = Execute ozone fs -rmdir o3fs://bucket1.fstest/testdir/deep/subdir1/
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should not contain ${result} subdir1
|
|
|
|
|
|
- Execute ozone fs -touch o3://bucket1.fstest/testdir/TOUCHFILE.txt
|
|
|
+ Execute ozone fs -touch o3fs://bucket1.fstest/testdir/TOUCHFILE.txt
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should contain ${result} TOUCHFILE.txt
|
|
|
|
|
|
- Execute ozone fs -rm -r o3://bucket1.fstest/testdir/
|
|
|
+ Execute ozone fs -rm -r o3fs://bucket1.fstest/testdir/
|
|
|
${result} = Execute ozone sh key list o3://ozoneManager/fstest/bucket1 | grep -v WARN | jq -r '.[].keyName'
|
|
|
Should not contain ${result} testdir
|
|
|
|
|
|
Execute rm -Rf localdir1
|
|
|
Execute mkdir localdir1
|
|
|
Execute cp NOTICE.txt localdir1/LOCAL.txt
|
|
|
- Execute ozone fs -mkdir -p o3://bucket1.fstest/testdir1
|
|
|
- Execute ozone fs -copyFromLocal localdir1 o3://bucket1.fstest/testdir1/
|
|
|
- Execute ozone fs -put NOTICE.txt o3://bucket1.fstest/testdir1/NOTICE.txt
|
|
|
+ Execute ozone fs -mkdir -p o3fs://bucket1.fstest/testdir1
|
|
|
+ Execute ozone fs -copyFromLocal localdir1 o3fs://bucket1.fstest/testdir1/
|
|
|
+ Execute ozone fs -put NOTICE.txt o3fs://bucket1.fstest/testdir1/NOTICE.txt
|
|
|
|
|
|
- ${result} = Execute ozone fs -ls -R o3://bucket1.fstest/testdir1/
|
|
|
+ ${result} = Execute ozone fs -ls -R o3fs://bucket1.fstest/testdir1/
|
|
|
Should contain ${result} localdir1/LOCAL.txt
|
|
|
Should contain ${result} testdir1/NOTICE.txt
|
|
|
|
|
|
- Execute ozone fs -mkdir -p o3://bucket2.fstest/testdir2
|
|
|
- Execute ozone fs -mkdir -p o3://bucket3.fstest2/testdir3
|
|
|
+ Execute ozone fs -mkdir -p o3fs://bucket2.fstest/testdir2
|
|
|
+ Execute ozone fs -mkdir -p o3fs://bucket3.fstest2/testdir3
|
|
|
|
|
|
- Execute ozone fs -cp o3://bucket1.fstest/testdir1/localdir1 o3://bucket2.fstest/testdir2/
|
|
|
+ Execute ozone fs -cp o3fs://bucket1.fstest/testdir1/localdir1 o3fs://bucket2.fstest/testdir2/
|
|
|
|
|
|
- Execute ozone fs -cp o3://bucket1.fstest/testdir1/localdir1 o3://bucket3.fstest2/testdir3/
|
|
|
+ Execute ozone fs -cp o3fs://bucket1.fstest/testdir1/localdir1 o3fs://bucket3.fstest2/testdir3/
|
|
|
|
|
|
Execute ozone sh key put o3://ozoneManager/fstest/bucket1/KEY.txt NOTICE.txt
|
|
|
- ${result} = Execute ozone fs -ls o3://bucket1.fstest/KEY.txt
|
|
|
+ ${result} = Execute ozone fs -ls o3fs://bucket1.fstest/KEY.txt
|
|
|
Should contain ${result} KEY.txt
|
|
|
- ${rc} ${result} = Run And Return Rc And Output ozone fs -copyFromLocal NOTICE.txt o3://bucket1.fstest/KEY.txt
|
|
|
+ ${rc} ${result} = Run And Return Rc And Output ozone fs -copyFromLocal NOTICE.txt o3fs://bucket1.fstest/KEY.txt
|
|
|
Should Be Equal As Integers ${rc} 1
|
|
|
Should contain ${result} File exists
|
|
|
Execute rm -Rf GET.txt
|
|
|
- Execute ozone fs -get o3://bucket1.fstest/KEY.txt GET.txt
|
|
|
+ Execute ozone fs -get o3fs://bucket1.fstest/KEY.txt GET.txt
|
|
|
Execute ls -l GET.txt
|
|
|
- ${rc} ${result} = Run And Return Rc And Output ozone fs -ls o3://abcde.pqrs/
|
|
|
+ ${rc} ${result} = Run And Return Rc And Output ozone fs -ls o3fs://abcde.pqrs/
|
|
|
Should Be Equal As Integers ${rc} 1
|
|
|
Should contain ${result} VOLUME_NOT_FOUND
|