From d029432f04b37563448f731d540548dddde6c6ac Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Mon, 3 Jun 2024 08:22:32 +0200
Subject: [PATCH] BIS-1024: Fixed tests for pattern feature

---
 .../excelimport/ImportPropertyTypesTest.java  | 25 -------------------
 1 file changed, 25 deletions(-)

diff --git a/core-plugin-openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/plugin/excelimport/ImportPropertyTypesTest.java b/core-plugin-openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/plugin/excelimport/ImportPropertyTypesTest.java
index fc35b51fa4b..10b30367368 100644
--- a/core-plugin-openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/plugin/excelimport/ImportPropertyTypesTest.java
+++ b/core-plugin-openbis/sourceTest/java/ch/ethz/sis/openbis/systemtest/plugin/excelimport/ImportPropertyTypesTest.java
@@ -101,31 +101,6 @@ public class ImportPropertyTypesTest extends AbstractImportTest
         assertNull(notes.getVocabulary());
     }
 
-    @Test
-    @DirtiesContext
-    public void testNormalPropertyTypesWithPatternsAreCreated() throws IOException
-    {
-        // the Excel contains internally managed property types which can be only manipulated by the system user
-        sessionToken = v3api.loginAsSystem();
-
-        // GIVEN
-        final String sessionWorkspaceFilePath = uploadToAsSessionWorkspace(sessionToken,
-                FilenameUtils.concat(FILES_DIR, PROPERTY_TYPES_WITH_PATTERN_XLS));
-        TestUtils.createFrom(v3api, sessionToken, Paths.get(sessionWorkspaceFilePath));
-
-        // WHEN
-        PropertyType notes = TestUtils.getPropertyType(v3api, sessionToken, "PATTERN_PATTERN");
-
-        // THEN
-        assertEquals(notes.getCode(), "PATTERN_PATTERN");
-        assertEquals(notes.getLabel(), "Pattern");
-        assertEquals(notes.getDataType(), DataType.VARCHAR);
-        assertEquals(notes.getDescription(), "Regexp pattern");
-        assertFalse(notes.isManagedInternally());
-        assertNull(notes.getVocabulary());
-        assertEquals(notes.getPattern(), ".*");
-        assertEquals(notes.getPatternType(), "PATTERN");
-    }
 
     @Test
     @DirtiesContext
-- 
GitLab