|
2 | 2 |
|
3 | 3 | This directory provides an automatic test for a number of operators of the inet toolkit. |
4 | 4 |
|
| 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 | + |
5 | 43 | ## Test Execution |
6 | 44 |
|
7 | 45 | 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 |
29 | 67 | If the Streams instance is not running, a domain and an instance is created from the scratch and started. You can force the |
30 | 68 | creation of instance and domain with command line option `--clean` |
31 | 69 |
|
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 | | - |
44 | 70 | Use command line option `-D <name>=<value>` to set external variables or provide a new properties file with command line option |
45 | 71 | `--properties <filename>`. The standard properties file is `tests/TestProperties.sh`. |
46 | 72 |
|
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