Skip to content

Commit

Permalink
JAPI-524 Address wsfileio/wsfs junit failures
Browse files Browse the repository at this point in the history
- Ignores invalid fileio tests until HPCC_30117 is addressed
- WsFS conditionally provides DZ path and name if available
- Removes attempt to fully qualify "relativepath"

Signed-off-by: Rodrigo Pastrana <[email protected]>
  • Loading branch information
rpastrana committed Aug 17, 2023
1 parent 4dd7165 commit 7788cb0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ public void AcreateHPCCFile() throws Exception, ArrayOfEspExceptionWrapper
Assume.assumeFalse("Test not valid on containerized HPCC environment", client.isTargetHPCCContainerized());
assumeTrue("Ignoring test 'copyFile' because HPCC-30117 is not fixed", HPCC_30117.equalsIgnoreCase("fixed"));
System.out.println("Creating file: '" + testfilename + "' on LandingZone: '" + targetLZ + "' on HPCC: '" + super.connString +"'");
//At some point, wsfileio writedata made it necessary to fully qualify the filename
Assert.assertTrue(client.createHPCCFile(targetLZPath + "/" + testfilename, targetLZ, true));
Assert.assertTrue(client.createHPCCFile(testfilename, targetLZ, true));
}

@Test
Expand All @@ -158,8 +157,7 @@ public void BwriteHPCCFile() throws Exception, ArrayOfEspExceptionWrapper
assumeTrue("Ignoring test 'copyFile' because HPCC-30117 is not fixed", HPCC_30117.equalsIgnoreCase("fixed"));
System.out.println("Writing data to file: '" + testfilename + "' on LandingZone: '" + targetLZ + "' on HPCC: '" + super.connString +"'");
byte[] data = "HELLO MY DARLING, HELLO MY DEAR!1234567890ABCDEFGHIJKLMNOPQRSTUVXYZ".getBytes();
//At some point, wsfileio writedata made it necessary to fully qualify the filename
Assert.assertTrue(client.writeHPCCFileData(data, targetLZPath + "/" + testfilename, targetLZ, true, 0, 20));
Assert.assertTrue(client.writeHPCCFileData(data, testfilename, targetLZ, true, 0, 20));
}

@Test
Expand Down

0 comments on commit 7788cb0

Please sign in to comment.