Skip to content

Commit bd08909

Browse files
authored
Merge pull request #345 from IBMStreams/develop
Corrections for version 3.1.1
2 parents 3f8c6c9 + 7ed82d6 commit bd08909

File tree

11 files changed

+45
-201
lines changed

11 files changed

+45
-201
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ toolkit.xml
88
/com.ibm.streamsx.inet/impl/nl/*.dat
99
/com.ibm.streamsx.inet/impl/nl/include
1010
/com.ibm.streamsx.inet/build.info
11-
/com.ibm.streamsx.inet/opt/downloaded/
1211
/release/
1312
doc/
1413

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changes
22
=======
3+
## v3.1.1:
4+
* Remove opt/downloaded from all lib enties to avoid classpath warnings
5+
* Corrections in tests
36

47
## v3.1.0:
58
* Update apache http client library to v 4.5.7

com.ibm.streamsx.inet/build.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ All required libs are now available in the source repository
2929
<property name="gensrc.dir" location="impl/java/src-gen" />
3030
<property name="test.run.dir" location="unittestrun" />
3131
<property name="test.build.dir" location="${test.run.dir}/bin" />
32-
<property name="downloads.dir" location="opt/downloaded" /> <!-- used for cleanup only -->
3332
<property name="jarfile" value="com.ibm.streamsx.inet.jar" />
3433

3534
<defaultexcludes add="**/.gitkeep"/>
@@ -73,7 +72,6 @@ All required libs are now available in the source repository
7372
<delete dir="${build.dir}" />
7473
<delete dir="${lib.dir}" />
7574
<delete dir="${impl.lib.dir}" />
76-
<delete dir="${downloads.dir}" />
7775
<delete dir="output" />
7876
<delete dir="doc" />
7977
<delete dir="${nl.dir}/include"/>

com.ibm.streamsx.inet/impl/java/src/com/ibm/streamsx/inet/http/HTTPPostOper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import com.ibm.streams.operator.model.Icons;
3838
import com.ibm.streams.operator.model.InputPortSet;
3939
import com.ibm.streams.operator.model.InputPorts;
40-
import com.ibm.streams.operator.model.Libraries;
4140
import com.ibm.streams.operator.model.OutputPortSet;
4241
import com.ibm.streams.operator.model.OutputPorts;
4342
import com.ibm.streams.operator.model.Parameter;
@@ -55,7 +54,6 @@
5554

5655
))
5756
@PrimitiveOperator(name=HTTPPostOper.OPER_NAME, description=HTTPPostOper.DESC)
58-
@Libraries(value={"opt/downloaded/*"})
5957
@Icons(location32="icons/HTTPPost_32.gif", location16="icons/HTTPPost_16.gif")
6058
public class HTTPPostOper extends AbstractOperator
6159
{

com.ibm.streamsx.inet/impl/java/src/com/ibm/streamsx/inet/http/HTTPRequestOper.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import com.ibm.streams.operator.model.Icons;
5858
import com.ibm.streams.operator.model.InputPortSet;
5959
import com.ibm.streams.operator.model.InputPorts;
60-
import com.ibm.streams.operator.model.Libraries;
6160
import com.ibm.streams.operator.model.PrimitiveOperator;
6261
import com.ibm.streams.operator.types.Blob;
6362
import com.ibm.streams.operator.types.RString;
@@ -84,7 +83,6 @@
8483
*
8584
********************************************************************************************/
8685
@PrimitiveOperator(name = HTTPRequestOper.OPER_NAME, description = HTTPRequestOperAPI.DESC)
87-
@Libraries("opt/httpcomponents-client-4.5.5/lib/*")
8886
@Icons(location32 = "icons/HTTPPost_32.gif", location16 = "icons/HTTPPost_16.gif")
8987
@InputPorts(@InputPortSet(cardinality = 1, description = "This stream contains the information sent in a http request. Each tuple with valid request data results in an HTTP request except if method `NONE` is specified."))
9088
@OutputPorts(

com.ibm.streamsx.inet/impl/java/src/com/ibm/streamsx/inet/http/HTTPRequestOperAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public void setSslTrustStorePassword(String sslTrustStorePassword){
380380
this.sslTrustStorePassword = sslTrustStorePassword;
381381
}
382382
@Parameter(optional=true, description="Path to jks key store file used for client authentication. This store should contain one client key pair."
383-
+ "If this parameter is set, parameter `sslTrustStorePassword` is optional."
383+
+ "If this parameter is set, parameter `sslKeyStorePassword` is optional."
384384
+ "If this parameter is set, parameter `sslKeyPassword` is required.")
385385
public void setSslKeyStoreFile(String sslKeyStoreFile){
386386
this.sslKeyStoreFile = sslKeyStoreFile;

com.ibm.streamsx.inet/impl/java/src/com/ibm/streamsx/inet/http/HTTPStreamReader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.ibm.streams.operator.logging.LogLevel;
2525
import com.ibm.streams.operator.logging.TraceLevel;
2626
import com.ibm.streams.operator.model.Icons;
27-
import com.ibm.streams.operator.model.Libraries;
2827
import com.ibm.streams.operator.model.OutputPortSet;
2928
import com.ibm.streams.operator.model.OutputPortSet.WindowPunctuationOutputMode;
3029
import com.ibm.streams.operator.model.OutputPorts;
@@ -41,7 +40,6 @@
4140
description="Error information will be sent out on this port including the response code and any message recieved from the server. " +
4241
"Tuple structure must conform to the [HTTPResponse] type specified in this namespace.")})
4342
@PrimitiveOperator(name=HTTPStreamReader.OPER_NAME, description=HTTPStreamReader.DESC)
44-
@Libraries(value={"opt/downloaded/*"})
4543
@Icons(location32="icons/"+HTTPStreamReader.OPER_NAME+"_32.gif", location16="icons/"+HTTPStreamReader.OPER_NAME+"_16.gif")
4644
public class HTTPStreamReader extends AbstractOperator {
4745

com.ibm.streamsx.inet/impl/java/src/com/ibm/streamsx/inet/window/WindowContentsAtTrigger.java

Lines changed: 0 additions & 165 deletions
This file was deleted.

com.ibm.streamsx.inet/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This toolkit separates its functionality into a number of namespaces:
1515
The http rest functions and the WebSocket server functions are now moved into streamsx.inetserver toolkit https://github.com/IBMStreams/streamsx.inetserver/releases
1616

1717
</description>
18-
<version>3.1.0</version>
18+
<version>3.1.1</version>
1919
<requiredProductVersion>4.0.1.0</requiredProductVersion>
2020
</identity>
2121
<dependencies/>

tests/FrameworkTests/README.md

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22

33
This directory provides an automatic test for a number of operators of the inet toolkit.
44

5+
## Prerequisites
6+
7+
### Installation and Environment
8+
This test suite requires an local Streams installation (minimum v4.0.1) and a propperly setup of the Streams environment.
9+
This environments are required:
10+
* STREAMS_INSTALL
11+
* JAVA_HOME
12+
* STREAMS_DOMAIN_ID
13+
* STREAMS_INSTANCE_ID
14+
* STREAMS_ZKCONNECT - if an external zookeeper has to be used
15+
16+
Additionaly this test collection requires that the packages `curl`, `ftp` and `lftp` are installed.
17+
18+
### FTP Test Server
19+
The script framework automatically tries to start a local ftp-server, which requires package `vsftp`. Additionally the current user must be able to execute
20+
`service vsftpd start` without password interaction (sudoers configuration).
21+
22+
Alternatively you can start the ftp server by hand and provide property `TTPR_ftpServerHost` with the value of the ftp-servers hostname.
23+
24+
If the standard setup of the ftp server is used, an user `ftpuser` with password `streams` is required. This standart setup can be overwritten
25+
with properties `TTPR_ftpServerUser` and `TTPR_ftpServerPasswd` in TestProperties.sh file.
26+
27+
If the property `TTPR_ftpServerHost` is set to an empty value, all ftp test are skipped.
28+
29+
**Note:** The FtpTest requires an running ssh daemon at the ftp server host.
30+
31+
### HTTP Test Server
32+
In the standard environment the http-test server is started automatically from the test script.
33+
34+
This HTTP Test Server requires the java 1.8 runtime from the streams installation and that ports **8097** and **1443** are available at the local host.
35+
36+
If the property `TTPR_httpServerHost` is provided, the automatic start is skipped and the provided server is used.
37+
In this case you must also provide `TTPR_httpServerAddr` and `TTPR_httpsServerAddr`. This values must have the form : *hostname:port*
38+
39+
### Toolkit and Toolkit Samples
40+
The standard setup expects the inet toolkit in directory *../../com.ibm.streamsx.inet/* and the toolkit samples in *../../samples/*.
41+
You can change this setting with properties `TTPR_streamsxInetToolkit` and `TTRO_streamsxInetSamplesPath`.
42+
543
## Test Execution
644

745
To start the full test execute:
@@ -29,29 +67,6 @@ checks if there is a running Streams instance and starts the ftp test server and
2967
If the Streams instance is not running, a domain and an instance is created from the scratch and started. You can force the
3068
creation of instance and domain with command line option `--clean`
3169

32-
In the standard environment the ftp-test server is started automatically from the test script. If the
33-
property `TTPR_ftpServerHost` is set to a non empty value, the automatic start is skipped and the provided server is used.
34-
In this case the properties `TTPR_ftpServerUser` and `TTPR_ftpServerPasswd` must provide the username and password for the ftp-tests.
35-
You can skip the ftp test cases if the property `TTPR_ftpServerHost` is set to an empty value.
36-
37-
In the standard environment the http-test server is started automatically from the test script. If the
38-
property `TTPR_httpServerHost` is set, the automatic start is skipped and the provided server is used. In this case you must also
39-
provide `TTPR_httpServerAddr` and `TTPR_httpsServerAddr`. This values must have the form <hostname>:<port>
40-
41-
The inet toolkit is expected in directory `../../com.ibm.streamsx.inet/` and must be built with the current Streams version.
42-
The inet toolkit samples are expected in `TTRO_streamsxInetSamplesPath`.
43-
4470
Use command line option `-D <name>=<value>` to set external variables or provide a new properties file with command line option
4571
`--properties <filename>`. The standard properties file is `tests/TestProperties.sh`.
4672

47-
## Requirements
48-
49-
The test framework requires an valid Streams installation and environment.
50-
51-
The ftp test server requires the packages **vsftpd** and **ftp**. Additionally the current user must be able to execute
52-
`service vsftpd start` without password interaction (sudoers configuration). Alternatively you can start the ftp server by
53-
hand and provide property `TTPR_ftpServerHost`.
54-
If the standard setup of the ftp server is used, an user `ftpuser` with password `streams` is required.
55-
56-
The http test server requires a standard java 1.8 runtime. With the streams java runtime the ssl connections are not possible.
57-
The http test server requires that ports 8097 and 1443 are available at the local host.

0 commit comments

Comments
 (0)