Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4CFC2200BB3 for ; Tue, 18 Oct 2016 23:03:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4BC58160ACE; Tue, 18 Oct 2016 21:03:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9B3FB160AE5 for ; Tue, 18 Oct 2016 23:02:59 +0200 (CEST) Received: (qmail 67333 invoked by uid 500); 18 Oct 2016 21:02:58 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67305 invoked by uid 99); 18 Oct 2016 21:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2016 21:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 674182C4C72 for ; Tue, 18 Oct 2016 21:02:58 +0000 (UTC) Date: Tue, 18 Oct 2016 21:02:58 +0000 (UTC) From: "Xiaobing Zhou (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-11011) Add unit tests for HDFS command 'dfsadmin -set/clrSpaceQuota' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 18 Oct 2016 21:03:00 -0000 [ https://issues.apache.org/jira/browse/HDFS-11011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15586641#comment-15586641 ] Xiaobing Zhou edited comment on HDFS-11011 at 10/18/16 9:02 PM: ---------------------------------------------------------------- v003 patch is posted, thanks [~liuml07]. Due to differences of various commands, it's hard to use a unanimous for-loop. 1. refactored code for reusability 2. added Javadoc 3. fixed check style issues. was (Author: xiaobingo): v003 patch is posted, thanks [~liuml07] 1. refactored code 2. added Javadoc 3. fixed check style issues. > Add unit tests for HDFS command 'dfsadmin -set/clrSpaceQuota' > ------------------------------------------------------------- > > Key: HDFS-11011 > URL: https://issues.apache.org/jira/browse/HDFS-11011 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Xiaobing Zhou > Assignee: Xiaobing Zhou > Labels: fs, shell, test > Attachments: HDFS-11011.000.patch, HDFS-11011.001.patch, HDFS-11011.002.patch, HDFS-11011.003.patch > > > This proposes adding a bunch of unit tests for command 'dfsadmin setSpaceQuota' and 'dfsadmin clrSpaceQuota'. > 1. test to set space quote using negative number. > 2. test to set and clear space quote, regular usage. > 3. test to set and clear space quote by storage type. > 4. test to set and clear space quote when directory doesn't exist. > 5. test to set and clear space quote when path is a file. > 6. test to set and clear space quote when user has no access right. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org