Skip to content

Commit

Permalink
squash w/ test adjustments commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Dec 2, 2023
1 parent 6486b6c commit 45afc9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.irods.jargon.testutils.filemanip.ScratchFileUtils;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
Expand Down Expand Up @@ -480,6 +481,9 @@ public void testExtractBundleWithOverwriteNoBulkWhenTargetCollectionAlreadyExist
irodsFileSystem.closeAndEatExceptions();
return;
}

// Skip if iRODS 4.3.0.
Assume.assumeFalse("Test issue discovered post iRODS 4.3.0 release", props.isVersion("rods4.3.0"));

IRODSFile irodsFile = null;

Expand Down Expand Up @@ -508,6 +512,7 @@ public void testExtractBundleWithOverwriteNoBulkWhenTargetCollectionAlreadyExist
BulkFileOperationsAO bulkFileOperationsAO = irodsFileSystem.getIRODSAccessObjectFactory()
.getBulkFileOperationsAO(irodsAccount);

// TODO Create an issue for this if it fails in 4.3.1 too.
bulkFileOperationsAO.createABundleFromIrodsFilesAndStoreInIrods(targetBunFileAbsPath, targetIrodsCollection,
"");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ public void testBulkAddAvuMetadataWithDuplicate() throws Exception {

IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory();

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not report an error on duplicate AVUs",
accessObjectFactory.getIRODSServerProperties(irodsAccount).isVersion("rods4.3.0"));

Expand Down Expand Up @@ -830,6 +831,7 @@ public void testAddDuplicateAvuMetadata() throws Exception {

IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory();

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not report an error on duplicate AVUs",
accessObjectFactory.getIRODSServerProperties(irodsAccount).isVersion("rods4.3.0"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,7 @@ public void testAddAVUMetadataToDataObjectTwice() throws Exception {
.instanceIRODSFile(targetIrodsCollection);
IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory();

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not report an error on duplicate AVUs",
accessObjectFactory.getIRODSServerProperties(irodsAccount).isVersion("rods4.3.0"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public void testSetUserResourceQuotaThenListAll() throws Exception {
IRODSAccount irodsAccount = testingPropertiesHelper
.buildIRODSAccountFromTertiaryTestProperties(testingProperties);

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not support user quotas", irodsFileSystem.getIRODSAccessObjectFactory()
.getIRODSServerProperties(irodsAccount).isVersion("rods4.3.0"));

Expand Down Expand Up @@ -122,6 +123,7 @@ public void testSetUserResourceQuotaThenListUser() throws Exception {
IRODSAccount irodsAccount = testingPropertiesHelper
.buildIRODSAccountFromTertiaryTestProperties(testingProperties);

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not support user quotas", irodsFileSystem.getIRODSAccessObjectFactory()
.getIRODSServerProperties(irodsAccount).isVersion("rods4.3.0"));

Expand Down Expand Up @@ -154,6 +156,7 @@ public void testSetThenListGlobalQuotaForUser() throws Exception {

IRODSAccount adminAccount = testingPropertiesHelper.buildIRODSAdminAccountFromTestProperties(testingProperties);

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not support user quotas", irodsFileSystem.getIRODSAccessObjectFactory()
.getIRODSServerProperties(adminAccount).isVersion("rods4.3.0"));

Expand All @@ -180,6 +183,7 @@ public void testSetGlobalForUserThenListAllGlobalQuota() throws Exception {
IRODSAccount irodsAccount = testingPropertiesHelper
.buildIRODSAccountFromSecondaryTestProperties(testingProperties);

// Skip if iRODS 4.3.0.
Assume.assumeFalse("iRODS 4.3.0 does not support user quotas", irodsFileSystem.getIRODSAccessObjectFactory()
.getIRODSServerProperties(adminAccount).isVersion("rods4.3.0"));

Expand Down

0 comments on commit 45afc9b

Please sign in to comment.