You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2016/01/13 08:20:40 UTC
[jira] [Updated] (BIGTOP-2232) Add smoke tests for HDFS
[ https://issues.apache.org/jira/browse/BIGTOP-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated BIGTOP-2232:
---------------------------------------
Attachment: 0003-BIGTOP-2232.-Add-smoke-tests-for-HDFS.patch
Here's the initial patch, but first all the subtasks need to be fixed.
At the moment, I am excluding all new tests introduced in BIGTOP-2009 as they are full of hardcoded paths to the resources and that needs to be fixed before they can be used in the smoking environment.
The main source of issues is this block of the code which is repeated again and again
{code}
+ try {
JarContent.unpackJarContainer(TestLs.class, "." , null);
+ } catch (IOException ioe) {
+ println ("Perhaps running as smoke test environment");
+ }
// get namenode hostname from core-site.xml
Configuration conf = new Configuration();
namenode = conf.get("fs.defaultFS");
@@ -53,7 +57,7 @@ public class TestLs {
}
assertTrue("Could not find namenode", namenode != null);
- sh.exec("cp -r test_data test_data_TestLs");
+ sh.exec("cp -r `find . -name test_data` test_data_TestLs");
{code}
The changes illustrate the issue with the current approach. While first fix is somewhat ok, the later one blows, but something of the sort would have to be done.
> Add smoke tests for HDFS
> ------------------------
>
> Key: BIGTOP-2232
> URL: https://issues.apache.org/jira/browse/BIGTOP-2232
> Project: Bigtop
> Issue Type: Test
> Components: tests
> Affects Versions: 1.0.0
> Reporter: Konstantin Boudnik
> Assignee: Konstantin Boudnik
> Fix For: 1.1.0
>
> Attachments: 0003-BIGTOP-2232.-Add-smoke-tests-for-HDFS.patch
>
>
> Add smoke tests for Hadoop HDFS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)