Skip to content

Commit 7dd9bd2

Browse files
committed
metadata, representation, entity-list and entity-version-list tests
added
1 parent 47abf27 commit 7dd9bd2

File tree

19 files changed

+3002
-0
lines changed

19 files changed

+3002
-0
lines changed
+183
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.escidoc.core</groupId>
6+
<artifactId>retrieve_entitylist</artifactId>
7+
<packaging>pom</packaging>
8+
<name>eSciDoc Performance Measurement - Retreive Entity List</name>
9+
<description>Test Core Performance</description>
10+
11+
<build>
12+
13+
<plugins>
14+
<plugin>
15+
<groupId>org.apache.maven.plugins</groupId>
16+
<artifactId>maven-resources-plugin</artifactId>
17+
<executions>
18+
19+
<!-- kopieren des escidoc installer config -->
20+
<execution>
21+
<id>copy-filtered-test-config</id>
22+
<phase>prepare-package</phase>
23+
<goals>
24+
<goal>copy-resources</goal>
25+
</goals>
26+
<configuration>
27+
<outputDirectory>${target.home}</outputDirectory>
28+
<resources>
29+
<resource>
30+
<directory>${project.parent.basedir}/src/test/filtered-resources</directory>
31+
<filtering>true</filtering>
32+
</resource>
33+
</resources>
34+
</configuration>
35+
</execution>
36+
37+
<!-- kopieren des jmeter.properties (global) und testplan.properties (lokal) -->
38+
<execution>
39+
<id>copy-filtered-jmeter-test-config</id>
40+
<phase>prepare-package</phase>
41+
<goals>
42+
<goal>copy-resources</goal>
43+
</goals>
44+
<configuration>
45+
<outputDirectory>${project.build.directory}</outputDirectory>
46+
<resources>
47+
<resource>
48+
<directory>src/test/jmeter-filtered-resources</directory>
49+
<filtering>true</filtering>
50+
</resource>
51+
<resource>
52+
<directory>${project.parent.basedir}/src/test/jmeter-filtered-resources</directory>
53+
<filtering>false</filtering>
54+
</resource>
55+
</resources>
56+
</configuration>
57+
</execution>
58+
</executions>
59+
</plugin>
60+
61+
<!-- installation von escidoc -->
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-dependency-plugin</artifactId>
65+
66+
<!-- kopieren des installer jars -->
67+
<executions>
68+
<execution>
69+
<id>copy</id>
70+
<phase>pre-integration-test</phase>
71+
<goals>
72+
<goal>copy</goal>
73+
</goals>
74+
<configuration>
75+
<artifactItems>
76+
<artifactItem>
77+
<groupId>org.escidoc.core</groupId>
78+
<artifactId>installer</artifactId>
79+
<version>${escidoc.core.version}</version>
80+
<classifier>${artifact.classifier}</classifier>
81+
<overWrite>false</overWrite>
82+
<outputDirectory>${target.home}</outputDirectory>
83+
<destFileName>escidoc-installer.jar</destFileName>
84+
</artifactItem>
85+
</artifactItems>
86+
</configuration>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
91+
<plugin>
92+
<groupId>org.codehaus.mojo</groupId>
93+
<artifactId>exec-maven-plugin</artifactId>
94+
<configuration>
95+
<skip>${skipITs}</skip>
96+
</configuration>
97+
98+
<!-- escidoc installation -->
99+
<executions>
100+
<execution>
101+
<id>install-escidoc-core</id>
102+
<phase>pre-integration-test</phase>
103+
<goals>
104+
<goal>exec</goal>
105+
</goals>
106+
<configuration>
107+
<executable>java</executable>
108+
<arguments>
109+
<argument>-Dskip.validation=true</argument>
110+
<argument>-jar</argument>
111+
<argument>${target.home}/escidoc-installer.jar</argument>
112+
<argument>${target.home}/${escidoc.installer.config}</argument>
113+
</arguments>
114+
<outputFile>${target.home}/escidoc-installer.log
115+
</outputFile>
116+
</configuration>
117+
</execution>
118+
119+
<!-- Entfernen eines Fedora policies file -->
120+
<execution>
121+
<id>remove deny-unallowed-file-resolution</id>
122+
<phase>pre-integration-test</phase>
123+
<goals>
124+
<goal>exec</goal>
125+
</goals>
126+
<configuration>
127+
<executable>rm</executable>
128+
<arguments>
129+
<argument>${target.home}/fedora/server/fedora-internal-use/fedora-internal-use-repository-policies-approximating-2.0/deny-unallowed-file-resolution.xml</argument>
130+
</arguments>
131+
</configuration>
132+
</execution>
133+
</executions>
134+
</plugin>
135+
136+
<!-- starten und stoppen von JBOSS (escidoc version <= 1.4) oder Tomcat-->
137+
<!-- über PluginManagement des profiles im parent pom wird die configuration vererbt -->
138+
<plugin>
139+
<groupId>org.codehaus.cargo</groupId>
140+
<artifactId>cargo-maven2-plugin</artifactId>
141+
</plugin>
142+
143+
144+
<!-- ausführen der JMETER Tests -->
145+
<plugin>
146+
<groupId>org.escidoc.jmeter</groupId>
147+
<artifactId>maven-jmeter-plugin</artifactId>
148+
<executions>
149+
<execution>
150+
<id>jmeter-tests</id>
151+
<phase>integration-test</phase>
152+
<goals>
153+
<goal>jmeter</goal>
154+
</goals>
155+
<configuration>
156+
<reportDir>${project.build.directory}/jmeter-reports-maven</reportDir>
157+
<workDir>${project.build.directory}/jmeter</workDir>
158+
<userDir>${basedir}</userDir>
159+
<jmeterLogLevel>DEBUG</jmeterLogLevel>
160+
<jmeterDefaultPropertiesFile>
161+
${project.parent.basedir}/src/test/jmeter/jmeter.properties
162+
</jmeterDefaultPropertiesFile>
163+
<jmeterCustomPropertiesFile>
164+
${project.build.directory}/testplan.properties
165+
</jmeterCustomPropertiesFile>
166+
<jmeterIgnoreError>true</jmeterIgnoreError>
167+
<jmeterIgnoreFailure>true</jmeterIgnoreFailure>
168+
</configuration>
169+
</execution>
170+
</executions>
171+
</plugin>
172+
</plugins>
173+
174+
</build>
175+
176+
177+
178+
<parent>
179+
<groupId>org.escidoc.core.performance</groupId>
180+
<artifactId>measurement</artifactId>
181+
<version>0.0.1-SNAPSHOT</version>
182+
</parent>
183+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
2+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
3+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
4+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
5+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
6+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
7+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
8+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
9+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
10+
${project.parent.basedir}/testdaten/config/testdaten_entity_list.csv
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
host=${escidoc.server.host}
2+
port=${escidoc.server.port}
3+
threads=${jmeter.threads}
4+
repeat=1
5+
rampup=${jmeter.rampup}
6+
threadpause=300
7+
basedir=${project.parent.basedir}
8+
reportdir=${project.build.directory}/jmeter-reports/RetrieveEntityList.xml
9+
examplesreportdir=${project.build.directory}/jmeter-reports/LoadExamples.xml
10+
loginreportdir=${project.build.directory}/jmeter-reports/LoginReport.xml
11+
resultdir=${project.build.directory}/jmeter-reports
12+
scriptdir=${project.build.directory}/scapexpath.bsh
13+
path=${api_entitylistpath}
14+
loginpath=${api_loginpath}
15+
loginaction=${api_loginaction}
16+
logintarget=${api_logintarget}
17+
loadexamples=${api_loadexamples}
18+
authpass=${escidoc.admin.password}
19+
authuser=${escidoc.admin.user}
20+
testdaten=${project.build.directory}/testdaten-ielist.csv
21+
22+

0 commit comments

Comments
 (0)