Skip to content

Commit 2cd78fe

Browse files
committed
fixed for timbuctoo
1 parent 314a0e4 commit 2cd78fe

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

jdk_11_maven/cs/graphql/timbuctoo/timbuctoo-instancev4/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,16 @@
982982
</goals>
983983
<configuration>
984984
<finalName>timbuctoo-sut</finalName>
985+
<filters>
986+
<filter>
987+
<artifact>*:*</artifact>
988+
<excludes>
989+
<exclude>META-INF/*.SF</exclude>
990+
<exclude>META-INF/*.DSA</exclude>
991+
<exclude>META-INF/*.RSA</exclude>
992+
</excludes>
993+
</filter>
994+
</filters>
985995
<transformers>
986996
<transformer
987997
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>

jdk_11_maven/em/embedded/graphql/timbuctoo/src/main/java/em/embedded/nl/knaw/huygens/EmbeddedEvoMasterController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public String startSut() {
8787

8888

8989
try {
90-
application.run("server", "src/main/resources/timbuctoo_evomaster.yaml");
90+
application.run("server", "em/embedded/graphql/timbuctoo/src/main/resources/timbuctoo_evomaster.yaml");
9191
} catch (Exception e) {
9292
e.printStackTrace();
9393
return null;
@@ -145,8 +145,8 @@ public void resetStateOfSUT() {
145145
if(!Files.exists(Path.of(tmpFolder))) {
146146
Files.createDirectory(Path.of(tmpFolder));
147147
}
148-
Files.copy(Path.of("src","main","resources","users.json"), Path.of(tmpFolder,"users.json"), StandardCopyOption.REPLACE_EXISTING);
149-
Files.copy(Path.of("src","main","resources","logins.json"), Path.of(tmpFolder,"logins.json"), StandardCopyOption.REPLACE_EXISTING);
148+
Files.copy(Path.of(getClass().getClassLoader().getResource("users.json").toURI()), Path.of(tmpFolder,"users.json"), StandardCopyOption.REPLACE_EXISTING);
149+
Files.copy(Path.of(getClass().getClassLoader().getResource("logins.json").toURI()), Path.of(tmpFolder,"logins.json"), StandardCopyOption.REPLACE_EXISTING);
150150
}catch (Exception e){
151151
throw new RuntimeException(e);
152152
}

jdk_11_maven/em/external/graphql/timbuctoo/src/main/java/em/external/nl/knaw/huygens/ExternalEvoMasterController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public String getPathToExecutableJar() {
156156

157157
@Override
158158
public String getLogMessageOfInitializedServer() {
159-
return "Server: Started";
159+
return "Started @";
160160
}
161161

162162
@Override
@@ -167,6 +167,7 @@ public long getMaxAwaitForInitializationInSeconds() {
167167
@Override
168168
public void preStart() {
169169
elasticsearch.start();
170+
resetStateOfSUT();
170171
}
171172

172173
@Override

0 commit comments

Comments
 (0)