Skip to content

Commit

Permalink
schrodinger: resource import fix for m10 lab test
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jan 11, 2021
1 parent fbc05c2 commit 3a279e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Expand Up @@ -50,6 +50,7 @@ public class AbstractLabTest extends AbstractSchrodingerTest {
protected static final File HR_SOURCE_FILE_10_2_PART2 = new File(LAB_SOURCES_DIRECTORY + "source-10-2-part2.csv");
protected static final File HR_SOURCE_FILE_10_2_PART3 = new File(LAB_SOURCES_DIRECTORY + "source-10-2-part3.csv");
protected static final File HR_SOURCE_FILE_11_1 = new File(LAB_SOURCES_DIRECTORY + "source-11-1.csv");
protected static final File CSV_3_RESOURCE_FILE_8_1 = new File(LAB_OBJECTS_DIRECTORY + "resources/localhost-csvfile-3-ldap-8-1.xml");
protected static final File KIRK_USER_FILE = new File("./src/test/resources/labs/objects/users/kirk-user.xml");
protected static final File KIRK_USER_TIBERIUS_FILE = new File("./src/test/resources/labs/objects/users/kirk-tiberius-user.xml");
protected static final File ARCHETYPE_EMPLOYEE_FILE = new File(LAB_OBJECTS_DIRECTORY + "archetypes/archetype-employee.xml");
Expand Down
Expand Up @@ -86,10 +86,17 @@ public void mod10test01SimpleObjectTemplate() throws IOException {
importObject(ORG_SECRET_OPS_FILE, true);
importObject(NUMERIC_PIN_FIRST_NONZERO_POLICY_FILE, true);
csv1TargetFile = new File(getTestTargetDir(), CSV_1_FILE_SOURCE_NAME);
FileUtils.copyFile(CSV_1_SOURCE_FILE, csv1TargetFile);

importObject(CSV_1_RESOURCE_FILE, true);
changeResourceAttribute(CSV_1_RESOURCE_NAME, ScenariosCommons.CSV_RESOURCE_ATTR_FILE_PATH, csv1TargetFile.getAbsolutePath(), true);

csv3TargetFile = new File(getTestTargetDir(), CSV_3_FILE_SOURCE_NAME);
FileUtils.copyFile(CSV_3_SOURCE_FILE, csv3TargetFile);

importObject(CSV_3_RESOURCE_FILE_8_1, true);
changeResourceAttribute(CSV_3_RESOURCE_NAME, ScenariosCommons.CSV_RESOURCE_ATTR_FILE_PATH, csv3TargetFile.getAbsolutePath(), true);

hrTargetFile = new File(getTestTargetDir(), HR_FILE_SOURCE_NAME);
FileUtils.copyFile(HR_SOURCE_FILE_7_4_PART_4, hrTargetFile);
importObject(HR_RESOURCE_FILE_8_1, true);
Expand Down
Expand Up @@ -34,7 +34,6 @@

public class M8ExtendingMidPointXMLSchema extends AbstractLabTest {

private static final File CSV_3_RESOURCE_FILE_8_1 = new File(LAB_OBJECTS_DIRECTORY + "resources/localhost-csvfile-3-ldap-8-1.xml");

@BeforeClass(alwaysRun = true, dependsOnMethods = { "springTestContextPrepareTestInstance" })
@Override
Expand Down

0 comments on commit 3a279e5

Please sign in to comment.