2015-05-05 06:24:30 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?xml-stylesheet type="text/xsl" href="testConf.xsl"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You 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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
<!-- Normal mode is test. To run just the commands and dump the output
|
|
|
|
to the log, set it to nocompare -->
|
|
|
|
<mode>test</mode>
|
|
|
|
|
|
|
|
<!-- Comparator types:
|
|
|
|
ExactComparator
|
|
|
|
SubstringComparator
|
|
|
|
RegexpComparator
|
|
|
|
TokenComparator
|
|
|
|
-->
|
|
|
|
<tests>
|
|
|
|
|
2016-05-10 22:20:17 +00:00
|
|
|
<!-- Test usage options -->
|
|
|
|
<test>
|
|
|
|
<description>usage: help for erasure coding command</description>
|
|
|
|
<test-commands>
|
|
|
|
<ec-admin-command>-usage</ec-admin-command>
|
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
|
|
|
<expected-output>-usage: Unknown command</expected-output>
|
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2015-05-05 06:24:30 +00:00
|
|
|
<!-- Test help options -->
|
|
|
|
<test>
|
|
|
|
<description>help: help for erasure coding command</description>
|
|
|
|
<test-commands>
|
|
|
|
<ec-admin-command>-help</ec-admin-command>
|
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
|
|
|
<expected-output>Usage: hdfs erasurecode [generic options]</expected-output>
|
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>help: setPolicy command</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -help setPolicy</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^[ \t]*Set a specified erasure coding policy to a directory( )*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-17 21:52:37 +00:00
|
|
|
<expected-output>^-setPolicy \[-p <policyName>\] <path>(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>help: getPolicy command</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -help getPolicy</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>Get erasure coding policy information about at specified path</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^-getPolicy <path>(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-08-13 17:04:45 +00:00
|
|
|
<description>help: listPolicies command</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-08-13 17:04:45 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -help listPolicies</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-08-13 17:04:45 +00:00
|
|
|
<expected-output>Get the list of erasure coding policies supported</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-08-13 17:04:45 +00:00
|
|
|
<expected-output>^-listPolicies (.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<!-- Test erasure code commands -->
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : set erasure coding policy on a directory to encode files</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
2016-04-20 07:47:01 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy -p RS-DEFAULT-6-3-64k /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>EC policy set successfully at NAMENODE/ecdir</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2015-05-13 07:13:39 +00:00
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : set a policy twice</description>
|
2015-05-13 07:13:39 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy /ecdir</ec-admin-command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy /ecdir</ec-admin-command>
|
2015-05-13 07:13:39 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-13 07:13:39 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>Directory /ecdir already has an erasure coding policy</expected-output>
|
2015-05-13 07:13:39 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2015-05-05 06:24:30 +00:00
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : default policy</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy /ecdir</ec-admin-command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2016-02-23 22:05:17 +00:00
|
|
|
<expected-output>ErasureCodingPolicy=[Name=</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2015-05-13 07:13:39 +00:00
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : get EC policy information at specified path, which doesn't have an EC policy</description>
|
2015-05-13 07:13:39 +00:00
|
|
|
<test-commands>
|
|
|
|
<command>-fs NAMENODE -mkdir /noec</command>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /noec</ec-admin-command>
|
2015-05-13 07:13:39 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
<command>-fs NAMENODE -rmdir /noec</command>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>Path NAMENODE/noec is not erasure coded</expected-output>
|
2015-05-13 07:13:39 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
2015-05-05 06:24:30 +00:00
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : get EC policy information at specified path, which doesn't have an EC policy</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
2016-04-20 07:47:01 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy -p RS-DEFAULT-6-3-64k /ecdir</ec-admin-command>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2016-04-20 07:47:01 +00:00
|
|
|
<expected-output>ErasureCodingPolicy=[Name=RS-DEFAULT-6-3-64k</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : get EC policy information at specified path, which doesn't have an EC policy</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
2016-04-20 07:47:01 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy -p RS-DEFAULT-6-3-64k /ecdir</ec-admin-command>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -touchz /ecdir/ecfile</command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /ecdir/ecfile</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rm /ecdir/ecfile</command>
|
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2016-04-20 07:47:01 +00:00
|
|
|
<expected-output>ErasureCodingPolicy=[Name=RS-DEFAULT-6-3-64k</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-08-13 17:04:45 +00:00
|
|
|
<description>listPolicies : get the list of ECPolicies supported</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-08-13 17:04:45 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -listPolicies</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2016-04-20 07:47:01 +00:00
|
|
|
<expected-output>RS-DEFAULT-6-3</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<!-- Test illegal parameters -->
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : illegal parameters - path is missing</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^-setPolicy: <path> is missing(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : illegal parameters - policy name is missing</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
2015-09-17 21:52:37 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy -p</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-17 21:52:37 +00:00
|
|
|
<expected-output>^-setPolicy: option -p requires 1 argument(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : illegal parameters - too many arguments</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy /ecdir1 /ecdir2</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>-setPolicy: Too many arguments</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : illegal parameters - invalidpolicy</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -mkdir /ecdir</command>
|
2015-09-17 21:52:37 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy -p invalidpolicy /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rmdir /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2016-02-23 22:05:17 +00:00
|
|
|
<expected-output>Policy 'invalidpolicy' does not match any of the supported policies. Please select any one of [</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>setPolicy : illegal parameters - no such file</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -setPolicy /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^setPolicy: `/ecdir': No such file or directory(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : illegal parameters - path is missing</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy </ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^-getPolicy: <path> is missing(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : illegal parameters - too many arguments</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /ecdir /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<command>-fs NAMENODE -rm /ecdir</command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>-getPolicy: Too many arguments</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-09-10 06:07:20 +00:00
|
|
|
<description>getPolicy : illegal parameters - no such file</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -getPolicy /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>RegexpComparator</type>
|
2015-09-10 06:07:20 +00:00
|
|
|
<expected-output>^getPolicy: `/ecdir': No such file or directory(.)*</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
<test>
|
2015-08-13 17:04:45 +00:00
|
|
|
<description>listPolicies : illegal parameters - too many parameters</description>
|
2015-05-05 06:24:30 +00:00
|
|
|
<test-commands>
|
2015-09-10 06:07:20 +00:00
|
|
|
<ec-admin-command>-fs NAMENODE -listPolicies /ecdir</ec-admin-command>
|
2015-05-05 06:24:30 +00:00
|
|
|
</test-commands>
|
|
|
|
<cleanup-commands>
|
|
|
|
</cleanup-commands>
|
|
|
|
<comparators>
|
|
|
|
<comparator>
|
|
|
|
<type>SubstringComparator</type>
|
2015-08-13 17:04:45 +00:00
|
|
|
<expected-output>-listPolicies: Too many parameters</expected-output>
|
2015-05-05 06:24:30 +00:00
|
|
|
</comparator>
|
|
|
|
</comparators>
|
|
|
|
</test>
|
|
|
|
|
|
|
|
</tests>
|
|
|
|
</configuration>
|