Skip to content

Commit

Permalink
fix some test , apache#4036
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Jun 10, 2024
1 parent d5ca041 commit 1edb46e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 4 deletions.
13 changes: 12 additions & 1 deletion assemblies/lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${byte-buddy.version}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.flexjson</groupId>
<artifactId>flexjson</artifactId>
Expand All @@ -146,7 +158,6 @@
<artifactId>hadoop-hdfs-client</artifactId>
<version>${hadoop.version}</version>
</dependency>
<!-- hop -->
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-core</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions assemblies/plugins/transforms/script/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
<artifactId>hop-transform-script</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openjdk.nashorn</groupId>
<artifactId>nashorn-core</artifactId>
<version>15.4</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
<include>org.apache.groovy:groovy:jar</include>
<include>org.apache.groovy:groovy-jsr223:jar</include>
<include>org.python:jython-standalone:jar</include>
<include>org.openjdk.nashorn:nashorn-core:jar</include>
<include>org.ow2.asm:asm:jar</include>
<include>org.ow2.asm:asm-commons:jar</include>
<include>org.ow2.asm:asm-tree:jar</include>
<include>org.ow2.asm:asm-util:jar</include>
</includes>
</dependencySet>
</dependencySets>
Expand Down
5 changes: 4 additions & 1 deletion docker/integration-tests/Dockerfile.unit-tests
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ RUN chown -R ${JENKINS_USER}:${JENKINS_GROUP} ${DEPLOYMENT_PATH}/hop \
&& cd ${DEPLOYMENT_PATH}/hop \
&& ./hop-conf.sh --generate-fat-jar=/tmp/hop-fatjar.jar \
# Download the Vertica JDBC driver
&& wget -c https://repo1.maven.org/maven2/com/vertica/jdbc/vertica-jdbc/23.4.0-0/vertica-jdbc-23.4.0-0.jar -O /opt/hop/lib/jdbc/vertica-jdbc-23.4.0-0.jar
&& wget -c https://repo1.maven.org/maven2/com/vertica/jdbc/vertica-jdbc/23.4.0-0/vertica-jdbc-23.4.0-0.jar -O /opt/hop/lib/jdbc/vertica-jdbc-23.4.0-0.jar \
&& wget -c https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.4/nashorn-core-15.4.jar -O /opt/hop/plugins/transforms/script/lib/nashorn-core-15.4.jar

# make volume available so that hop pipeline and workflow files can be provided easily
VOLUME ["/files"]
Expand All @@ -95,3 +96,5 @@ ENV GOOGLE_APPLICATION_CREDENTIALS="/tmp/google-key-apache-hop-it.json"
WORKDIR /home/${JENKINS_USER}
# CMD ["/bin/bash"]
ENTRYPOINT []


4 changes: 2 additions & 2 deletions docker/integration-tests/integration-tests-flink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- taskmanager

jobmanager:
image: flink:1.16.2-java11
image: flink:1.18.1-java17
ports:
- "8081"
command: jobmanager
Expand All @@ -37,7 +37,7 @@ services:
jobmanager.rpc.address: jobmanager
taskmanager:
image: flink:1.16.2-java11
image: flink:1.18.1-java17
depends_on:
- jobmanager
command: taskmanager
Expand Down
17 changes: 17 additions & 0 deletions integration-tests/flink/disabled.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
Binary file modified integration-tests/spreadsheet/files/sample-file-append.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ private static ScriptEngineManager getScriptEngineManager() {
System.setProperty(
"org.jruby.embed.localvariable.behavior",
"persistent"); // required for JRuby, transparent
System.setProperty("nashorn.args", "--language=es6");
// for others
scriptEngineManager = new ScriptEngineManager(ScriptUtils.class.getClassLoader());
}
Expand Down

0 comments on commit 1edb46e

Please sign in to comment.