Skip to content

Commit b4e323a

Browse files
author
labs-build
committed
mvn-jgitflow:merging 'hotfix/1.0.2' into 'master'
2 parents a51d4dc + 7e42a8e commit b4e323a

File tree

19 files changed

+91
-51
lines changed

19 files changed

+91
-51
lines changed

changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
## Change Log of Sakuli Releases
22

3+
### Version 1.0.2 (Bugfix + some small features)
4+
* issue #210: upgrade Sahi to version `5.1` due to Sahi compatibility issue with Chrome 53+ - _click
5+
* fix docker images
6+
* Chrome don't startup under CentOS Docker image, see also https://github.com/ConSol/docker-headless-vnc-container/issues/2
7+
* XFCE window manager don't startup under CentOS Docker image, see also https://github.com/ConSol/docker-headless-vnc-container/issues/4
8+
* use `SAKULI_VERSION` ARG in Dockerfiles, to have more flexible to build images
9+
* issue #215 add java-based Sakuli Docker images
10+
* issue #91: add AES encryption option for Gearman forwarder module
11+
* add Java JCE extension to Docker images
12+
* fix #216: set `dom.storage.enabled` to true in firefox pref.js
13+
* add Sakuli-Example page https://github.com/ConSol/sakuli-examples
14+
* fix #177 add description for the javaDSL and update the documentation
15+
* issue #205: use maven-jgitflow for releases and branching
16+
317
### Version 1.0.1 (Bugfix)
418

519
* fix #190: fix Docker centos image: use tagged version `consol/centos-xfce-vnc:1.0.1`

docker/sakuli-centos-xfce-java/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM consol/centos-xfce-vnc:1.0.2
44
MAINTAINER Tobias Schneck "[email protected]"
5-
ENV REFRESHED_AT 2016-10-28
5+
ENV REFRESHED_AT 2016-11-02
66

77
ENV VNC_COL_DEPTH 24
88
ENV VNC_RESOLUTION 1280x1024
@@ -31,16 +31,16 @@ RUN mkdir -p $MAVEN_HOME \
3131
&& ln -s $MAVEN_HOME/bin/mvn /usr/bin/mvn
3232

3333
##### Install some native libaries for Sakuli
34-
RUN yum -y install \
34+
RUN yum -y install unzip \
3535
# opencv
3636
opencv \
3737
# tesseract
3838
leptonica tesseract tesseract-langpack-deu \
3939
# wmctrl (checked by: https://www.virustotal.com/de/url/394da2ac7e9bbbf5d10a3f304cc913459fc38f66019a4c3ba0fd4afd8f48e64f/analysis/1465466765/)
4040
$SAKULI_DOWNLOAD_URL/3rd-party/rpm/wmctrl-1.07-17.gf.el7.x86_64.rpm \
41-
# xdotool
42-
xdotool \
43-
&& yum clean all
41+
# some missing ui controll tools
42+
xdotool redhat-lsb-core psmisc \
43+
&& yum clean all
4444

4545
#### Download Sakuli-Java-Example
4646
RUN mkdir -p /tmp/sakuli-example \

docker/sakuli-centos-xfce/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
FROM consol/centos-xfce-vnc:1.0.2
44
MAINTAINER Tobias Schneck "[email protected]"
5-
ENV REFRESHED_AT 2016-10-28
5+
ENV REFRESHED_AT 2016-11-02
66

77
ENV VNC_COL_DEPTH 24
88
ENV VNC_RESOLUTION 1280x1024
99
ENV VNC_PW sakuli
1010

1111
ENV SAKULI_DOWNLOAD_URL https://labs.consol.de/sakuli/install
12-
ARG SAKULI_VERSION=1.0.2-lhm
12+
ARG SAKULI_VERSION=1.0.2
1313
ENV SAKULI_HOME /root/sakuli/sakuli-v$SAKULI_VERSION
1414
ENV SAKULI_TEST_SUITE /root/sakuli/example_test_suites/example_xfce
1515

@@ -19,13 +19,12 @@ RUN yum -y install unzip \
1919
# opencv
2020
opencv \
2121
# tesseract
22-
http://repo.iotti.biz/CentOS/7/x86_64/leptonica-1.71-2.el7.lux.1.x86_64.rpm \
23-
http://repo.iotti.biz/CentOS/7/x86_64/tesseract-3.03-0.2.rc1.el7.lux.1.x86_64.rpm \
24-
# wmctrl
25-
http://mirror.symnds.com/distributions/gf/el/7/gf/x86_64/wmctrl-1.07-17.gf.el7.x86_64.rpm \
26-
# xdotool
27-
http://li.nux.ro/download/nux/dextop/el7/x86_64/xdotool-2.20110530.1-7.el7.nux.x86_64.rpm \
28-
http://li.nux.ro/download/nux/dextop/el7/x86_64/libxdo-2.20110530.1-7.el7.nux.x86_64.rpm
22+
leptonica tesseract tesseract-langpack-deu \
23+
# wmctrl (checked by: https://www.virustotal.com/de/url/394da2ac7e9bbbf5d10a3f304cc913459fc38f66019a4c3ba0fd4afd8f48e64f/analysis/1465466765/)
24+
$SAKULI_DOWNLOAD_URL/3rd-party/rpm/wmctrl-1.07-17.gf.el7.x86_64.rpm \
25+
# some missing ui controll tools
26+
xdotool redhat-lsb-core psmisc \
27+
&& yum clean all
2928
## Install JAVA JCE policy (necessary for gearman encryption)
3029
RUN mkdir -p /tmp/java-jce \
3130
&& cd /tmp/java-jce \

docker/sakuli-omd-labs-centos/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM consol/ubuntu-omd-labs:latest
22
MAINTAINER The Sakuli team. <[email protected]>
33

4-
ENV REFRESHED_AT 2016-10-28
4+
ENV REFRESHED_AT 2016-11-02
55

66
#RUN mkdir $OMD_DEMO/etc/check_mysql_health/
77
#COPY ["./CheckMySQLHealthSakuli.pm", "$OMD_DEMO/etc/check_mysql_health/"]

docker/sakuli-omd-labs-ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM consol/omd-labs-ubuntu:latest
22
MAINTAINER The Sakuli team. <[email protected]>
33

4-
ENV REFRESHED_AT 2016-10-28
4+
ENV REFRESHED_AT 2016-11-02
55

66
WORKDIR /omd/sites/demo/
77
ADD contrib/CheckMySQLHealthSakuli.pm /omd/sites/demo/etc/check_mysql_health/

docker/sakuli-ubuntu-xfce-java/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM consol/ubuntu-xfce-vnc:1.0.2
44
MAINTAINER Tobias Schneck "[email protected]"
5-
ENV REFRESHED_AT 2016-10-28
5+
ENV REFRESHED_AT 2016-11-02
66

77
ENV VNC_COL_DEPTH 24
88
ENV VNC_RESOLUTION 1280x1024

docker/sakuli-ubuntu-xfce/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
FROM consol/ubuntu-xfce-vnc:1.0.2
44
MAINTAINER Tobias Schneck "[email protected]"
5-
ENV REFRESHED_AT 2016-10-28
5+
ENV REFRESHED_AT 2016-11-02
66

77
ENV VNC_COL_DEPTH 24
88
ENV VNC_RESOLUTION 1280x1024
99
ENV VNC_PW sakuli
1010

1111
ENV SAKULI_DOWNLOAD_URL https://labs.consol.de/sakuli/install
12-
ARG SAKULI_VERSION=1.0.2-lhm
12+
ARG SAKULI_VERSION=1.0.2
1313
ENV SAKULI_HOME /root/sakuli/sakuli-v$SAKULI_VERSION
1414
ENV SAKULI_TEST_SUITE /root/sakuli/example_test_suites/example_xfce
1515

docs/development/maven-aspects.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,17 @@ Example of Maven config file `.m2/settings.xml`:
7373
</servers>
7474

7575
```
76+
77+
## add new artifacts to remote repo
78+
for example for the sahi.jars, more information see: https://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
79+
80+
#### install to local repo
81+
mvn install:install-file -DgroupId=net.sf.sahi -DartifactId=sahi -Dversion=5.1 -Dpackaging=jar -Dfile=sahi-5.1.jar
82+
mvn install:install-file -DgroupId=net.sf.sahi -DartifactId=ant-sahi -Dversion=5.1 -Dpackaging=jar -Dfile=ant-sahi-5.1.jar
83+
mvn install:install-file -DgroupId=net.sf.sahi -DartifactId=sahi-install -Dversion=5.1 -Dpackaging=zip -Dfile=sahi-install-5.1.zip
84+
85+
#### install to remote repo
86+
mvn deploy:deploy-file -DgroupId=net.sf.sahi -DartifactId=sahi -Dversion=5.1 -Dpackaging jar -Dfile=sahi-5.1.jar -Drepository=labs-consol-sakuli-repository -Durl=scpexe://labs.consol.de/home/maven-repository/www/htdocs/repository
87+
88+
or copy the local artifacts via SCP:
89+
scp -r ~.m2/repository/net/sf/sahi/sahi/5.1 [email protected]:/home/maven-repository/www/htdocs/repository/net/sf/sahi/sahi/5.1

docs/forwarder-gearman.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ As Sakuli only uses the *result queue* of gearmand, you can disable all other qu
3434
hosts=no
3535
do_hostchecks=no
3636

37-
At the time of the creation of this documents, Sakuli does not encrypt any gearman results. Therefore, set `accept_clear_results` in `server.cfg`:
37+
At the time of the creation of this documents, Sakuli does not encrypt any gearman results by default. Therefore, set `accept_clear_results` in `server.cfg`:
3838

3939
OMD[sakuli]:~$ vim ~/etc/mod-gearman/server.cfg
4040
accept_clear_results=yes
@@ -113,16 +113,30 @@ On the Sakuli client you must set the global properties for the gearman receiver
113113
sakuli.forwarder.gearman.nagios.hostname=sakuli_client
114114
sakuli.forwarder.gearman.nagios.check_command=check_sakuli
115115

116-
## Using AES encryption
116+
## Using AES encryption (optional)
117117

118118
The gearman forwarder supports AES encryption when sending checked results to the OMD server. The AES encryption uses a 32 byte (256 bit) secret key that
119119
has to be given in the properties.
120120

121121
sakuli.forwarder.gearman.encryption=true
122122
sakuli.forwarder.gearman.secret.key=secret_password
123123

124-
In case you get a java.lang.security.InvalidKeyException with error message *"Illegal key size or default parameters"* you probably
125-
need to enable unlimited strength security policies in your Java JRE. This is done by adding a special security policy JAR to the Java JRE lib directory.
124+
In case you get a `java.lang.security.InvalidKeyException` with error message *"Illegal key size or default parameters"* you probably
125+
need to enable unlimited strength security policies in your Java JRE. This is done by adding a special security policy JAR to the Java JRE lib directory. For the Java JRE 8, take a look at [Oracle - Java Cryptography Extension 8](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html).
126+
127+
On the server side (OMD) you have to enable the encryption feature of [mod-gearman](https://labs.consol.de/nagios/mod-gearman/). Therefore the following two steps are necessary:
128+
129+
1) Set the server side encryption password:
130+
131+
OMD[sakuli]:~$ echo "secret_password" > ~/etc/mod-gearman/secret.key
132+
133+
2) Enable the `encryption` and disable `accept_clear_results` in the config file:
134+
135+
OMD[sakuli]:~$ vim ~/etc/mod-gearman/server.cfg
136+
137+
encryption=yes
138+
accept_clear_results=yes
139+
126140

127141
## Test result transmission to OMD
128142

example_test_suites/example_xfce/case1/sakuli_demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
_dynamicInclude($includeFolder);
20-
var testCase = new TestCase(20, 30);
20+
var testCase = new TestCase(40, 60);
2121
var env = new Environment();
2222
var screen = new Region();
2323
var appCalc = new Application("/usr/bin/gnome-calculator");

0 commit comments

Comments
 (0)