You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by bh...@apache.org on 2019/06/13 23:04:20 UTC
[hadoop] branch trunk updated: HDDS-1677. Auditparser robot test
shold use a world writable working directory (#958)
This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 89acbbc HDDS-1677. Auditparser robot test shold use a world writable working directory (#958)
89acbbc is described below
commit 89acbbc0b993eaa4edd5f898fa7baa13ba367fb7
Author: Elek, Márton <el...@users.noreply.github.com>
AuthorDate: Fri Jun 14 01:04:14 2019 +0200
HDDS-1677. Auditparser robot test shold use a world writable working directory (#958)
---
.../dist/src/main/smoketest/auditparser/auditparser.robot | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/smoketest/auditparser/auditparser.robot b/hadoop-ozone/dist/src/main/smoketest/auditparser/auditparser.robot
index 30790ec..1caae75 100644
--- a/hadoop-ozone/dist/src/main/smoketest/auditparser/auditparser.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/auditparser/auditparser.robot
@@ -20,8 +20,9 @@ Library BuiltIn
Resource ../commonlib.robot
*** Variables ***
-${user} hadoop
-${count} 4
+${user} hadoop
+${count} 4
+${auditworkdir} /tmp/
*** Keywords ***
Set username
@@ -38,15 +39,15 @@ Initiating freon to generate data
Testing audit parser
${logdir} = Get Environment Variable HADOOP_LOG_DIR /var/log/hadoop
${logfile} = Execute ls -t "${logdir}" | grep om-audit | head -1
- Execute ozone auditparser /opt/hadoop/audit.db load "${logdir}/${logfile}"
- ${result} = Execute ozone auditparser /opt/hadoop/audit.db template top5cmds
+ Execute ozone auditparser "${auditworkdir}/audit.db" load "${logdir}/${logfile}"
+ ${result} = Execute ozone auditparser "${auditworkdir}/audit.db" template top5cmds
Should Contain ${result} ALLOCATE_KEY
- ${result} = Execute ozone auditparser /opt/hadoop/audit.db template top5users
+ ${result} = Execute ozone auditparser "${auditworkdir}/audit.db" template top5users
Run Keyword If '${SECURITY_ENABLED}' == 'true' Set username
Should Contain ${result} ${user}
- ${result} = Execute ozone auditparser /opt/hadoop/audit.db query "select count(*) from audit where op='CREATE_VOLUME' and RESULT='SUCCESS'"
+ ${result} = Execute ozone auditparser "${auditworkdir}/audit.db" query "select count(*) from audit where op='CREATE_VOLUME' and RESULT='SUCCESS'"
${result} = Convert To Number ${result}
Should be true ${result}>${count}
- ${result} = Execute ozone auditparser /opt/hadoop/audit.db query "select count(*) from audit where op='CREATE_BUCKET' and RESULT='SUCCESS'"
+ ${result} = Execute ozone auditparser "${auditworkdir}/audit.db" query "select count(*) from audit where op='CREATE_BUCKET' and RESULT='SUCCESS'"
${result} = Convert To Number ${result}
Should be true ${result}>${count}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org