Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/org/labkey/test/tests/list/ListArchiveExportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.labkey.test.categories.Daily;
import org.labkey.test.categories.Hosting;
import org.labkey.test.components.list.ManageListsGrid;
import org.labkey.test.pages.list.BeginPage;
import org.labkey.test.params.FieldDefinition;
import org.labkey.test.params.list.IntListDefinition;
import org.labkey.test.util.ApiPermissionsHelper;
Expand Down Expand Up @@ -71,10 +72,11 @@ private void doSetUp() throws IOException, CommandException
_permissionHelper.addMemberToRole(_listUser, "Reader", PermissionsHelper.MemberType.user);
}

private void createListWithData(String name, Map rowData) throws IOException, CommandException
private void createListWithData(String name, Map<String, Object> rowData) throws IOException, CommandException
{
var connection = createDefaultConnection();
var listDef = new IntListDefinition(name, "RowId").setFields(List.of(
// Issue 53672: Use a long key column name
var listDef = new IntListDefinition(name, "keyA123456789a123456789A123456789a123456789a123456789a123456789").setFields(List.of(
new FieldDefinition("Shape", FieldDefinition.ColumnType.String),
new FieldDefinition("Count", FieldDefinition.ColumnType.Integer)));
var dataGenerator = listDef.create(connection, getCurrentContainerPath());
Expand Down Expand Up @@ -118,6 +120,14 @@ public void testExportListArchive()
listsGrid.checkAllOnPage();
File listExport = listsGrid.exportSelectedLists();
Assert.assertTrue("Empty export file downloaded", listExport.length() > 0);

// Issue 53672: Delete the lists and reimport, ensuring we have no errors
listsGrid.deleteSelectedLists();
listsGrid = goToManageLists().getGrid();
assertTextNotPresent(LIST_A, LIST_B);
listsGrid.clickImportArchive().setZipFile(listExport).clickImport();
goToManageLists().getGrid();
assertTextPresent(LIST_A, LIST_B);
}

@Override
Expand Down