Skip to content

Commit

Permalink
Revert "revert change to newspaper generation test"
Browse files Browse the repository at this point in the history
This reverts commit 4745541.
  • Loading branch information
BartChris committed Apr 30, 2024
1 parent 4745541 commit 2c9428e
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 2 deletions.
1 change: 0 additions & 1 deletion Kitodo/src/test/java/org/kitodo/selenium/CalendarST.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class CalendarST extends BaseTestSelenium {

private static ProcessesPage processesPage;
private static CalendarPage calendarPage;
private static int newspaperTestProcessId = -1;

@BeforeClass
public static void setup() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ProcessesPage extends Page<ProcessesPage> {
private static final String WAIT_FOR_COLUMN_SORT = "Wait for column sorting";
private static final String MULTI_VOLUME_WORK_PROCESS_TITLE = "Multi volume work test process";
private static final String WAIT_FOR_SELECTION_MENU = "Wait for process selection menu to open";
private static final String CALENDER_ACTION_XPATH = "//a[@href='/kitodo/pages/calendarEdit.jsf?id=10']";
private static final String CALENDER_ACTION_XPATH = "//a[@href='/kitodo/pages/calendarEdit.jsf?id=11']";

@SuppressWarnings("unused")
@FindBy(id = PROCESSES_TAB_VIEW)
Expand Down
35 changes: 35 additions & 0 deletions Kitodo/src/test/resources/metadata/10/meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
*
* (c) Kitodo. Key to digital objects e. V. <[email protected]>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*
-->
<mets xmlns="http://www.loc.gov/METS/" xmlns:kitodo="http://meta.kitodo.org/v1/">
<metsHdr CREATEDATE="2019-09-02T11:03:56.453+02:00"/>
<amdSec>
<sourceMD ID="ba64d0f9-d1d5-3ced-a88c-aa780ad9e69c">
<mdWrap>
<xmlData>
<kitodo:kitodo>
<kitodo:metadata name="ShelfMark">I-5300 II,III,IV</kitodo:metadata>
</kitodo:kitodo>
</xmlData>
</mdWrap>
</sourceMD>
</amdSec>
<fileSec/>
<structMap TYPE="PHYSICAL">
<div ID="7f342fdb-71c3-45c9-9918-6b6dd04f3c87" ADMID="ba64d0f9-d1d5-3ced-a88c-aa780ad9e69c"/>
</structMap>
<structMap TYPE="LOGICAL">
<div ID="d0893036-cce5-4232-95c3-772610e31ff1" TYPE="Newspaper"/>
</structMap>
<structLink/>
</mets>
40 changes: 40 additions & 0 deletions Kitodo/src/test/resources/metadata/9/meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<mets:mets
xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/v2/premis-v2-0.xsd http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/mods.xsd http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd http://www.loc.gov/mix/v10 http://www.loc.gov/standards/mix/mix10/mix10.xsd"
xmlns:mets="http://www.loc.gov/METS/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<mets:metsHdr CREATEDATE="2018-09-14T07:45:17">
<mets:agent OTHERTYPE="SOFTWARE" ROLE="CREATOR" TYPE="OTHER">
<mets:name>Kitodo - kitodo-ugh-3.0-SNAPSHOT - 18-April-2018 13:20:13</mets:name>
<mets:note>Kitodo</mets:note>
</mets:agent>
</mets:metsHdr>
<mets:dmdSec ID="DMDLOG_0000">
<mets:mdWrap MDTYPE="MODS">
<mets:xmlData>
<kitodo:kitodo xmlns:kitodo="http://meta.kitodo.org/v1/">
<kitodo:metadata name="TitleDocMain">Second process</kitodo:metadata>
<kitodo:metadata name="TitleDocMainShort">Second</kitodo:metadata>
<kitodo:metadata name="TSL_ATS">Proc</kitodo:metadata>
</kitodo:kitodo>
</mets:xmlData>
</mets:mdWrap>
</mets:dmdSec>
<mets:dmdSec ID="DMDPHYS_0000">
<mets:mdWrap MDTYPE="MODS">
<mets:xmlData>
<kitodo:kitodo xmlns:kitodo="http://meta.kitodo.org/v1/">
<kitodo:metadata name="pathimagefiles">file:/2/images/Sec_Proc_tif</kitodo:metadata>
</kitodo:kitodo>
</mets:xmlData>
</mets:mdWrap>
</mets:dmdSec>
<mets:structMap TYPE="LOGICAL">
<mets:div DMDID="DMDLOG_0000" ID="LOG_0000" TYPE="Monograph"/>
</mets:structMap>
<mets:structMap TYPE="PHYSICAL">
<mets:div DMDID="DMDPHYS_0000" ID="PHYS_0000" TYPE="physSequence"/>
</mets:structMap>
<mets:structLink>
<mets:smLink xlink:to="PHYS_0000" xlink:from="LOG_0000" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</mets:structLink>
</mets:mets>
14 changes: 14 additions & 0 deletions Kitodo/src/test/resources/scripts/not_working_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# (c) Kitodo. Key to digital objects e. V. <[email protected]>
#
# This file is part of the Kitodo project.
#
# It is licensed under GNU General Public License version 3 or later.
#
# For the full copyright and license information, please read the
# GPL3-License.txt file that was distributed with this source code.
#


Hello World
21 changes: 21 additions & 0 deletions Kitodo/src/test/resources/scripts/script_createDirUserHome.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
#
# (c) Kitodo. Key to digital objects e. V. <[email protected]>
#
# This file is part of the Kitodo project.
#
# It is licensed under GNU General Public License version 3 or later.
#
# For the full copyright and license information, please read the
# GPL3-License.txt file that was distributed with this source code.
#

#
# Note: Ensure that Tomcat has permission to execute the given commands.
#

User="$1"
Home="$2"

/bin/mkdir "$Home"
/bin/chmod g+w "$Home"

0 comments on commit 2c9428e

Please sign in to comment.