Skip to content

Commit a227a17

Browse files
author
labs-build
committed
Merge branch 'release/1.2.0'
2 parents 2cfc725 + beeaf47 commit a227a17

File tree

312 files changed

+7123
-2447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+7123
-2447
lines changed

.build/is-feature-branch-version.sh

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

.build/remove-snapshot-artifacts.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
22
echo "--------------------------------------------------------------------------------"
3-
echo ".... remove git tags"
3+
export PATTERN="SNAPSHOT"
4+
echo ".... remove git tags for pattern:$PATTERN"
45
git fetch --tags
5-
tags=$(git tag | grep SNAPSHOT)
6+
tags=$(git tag | grep $PATTERN)
67
echo $tags | xargs -n1 echo
78

89
if [[ "$1" == "-y" ]]; then
@@ -19,10 +20,10 @@ else
1920
exit 0
2021
fi
2122
echo "--------------------------------------------------------------------------------"
22-
echo "... remove old SNAPSHOT zip and installer files?"
23+
echo "... remove old $PATTERN zip and installer files?"
2324

24-
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.zip'
25-
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.jar'
25+
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.zip'
26+
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.jar'
2627

2728
if [[ "$1" == "-y" ]]; then
2829
CONT="y"
@@ -32,7 +33,7 @@ else
3233
fi
3334

3435
if [ "$CONT" = "y" ]; then
35-
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.zip' || echo "do not fail if nothing have changed"
36-
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.jar' || echo "do not fail if nothing have changed"
36+
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.zip' || echo "do not fail if nothing have changed"
37+
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.jar' || echo "do not fail if nothing have changed"
3738
fi
3839

.build/set-build-env-vars.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
#GIT_BRANCH=origin/feature/#219_sahi_error
44
#SAKULI_VERSION=v1-SNAPSHOT-219_sahi_error
55
#SAKULI_VERSION=v1-SNAPSHOT
6+
set -u
67

78
echo "branch= $GIT_BRANCH"
89
SAKULI_BRANCH=${GIT_BRANCH/origin\/}
910
echo "SAKULI_BRANCH=$SAKULI_BRANCH" > $WORKSPACE/myjob.properties
1011

11-
FEATURE_NAME=${GIT_BRANCH:$(expr index \"$GIT_BRANCH\" '#') -1 }
12-
echo "FEATURE_NAME=$FEATURE_NAME" >> $WORKSPACE/myjob.properties
13-
14-
SAKULI_VERSION="$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[')"
12+
SAKULI_VERSION="$(printf 'VER\t${project.version}' | mvn help:evaluate | grep '^VER' | cut -f2)"
1513
echo "SAKULI_VERSION=$SAKULI_VERSION" >> $WORKSPACE/myjob.properties
16-
VERSION_SURFIX=${SAKULI_VERSION:$(expr index \"$SAKULI_VERSION\" 'SNAPSHOT') +7 }
17-
echo "VERSION_SURFIX=$VERSION_SURFIX" >> $WORKSPACE/myjob.properties
18-
19-
echo "SAKULI_FEATURE_VERSION=$SAKULI_VERSION-$FEATURE_NAME" >> $WORKSPACE/myjob.properties
14+
#no difference since https://github.com/ConSol/sakuli/issues/317
15+
echo "SAKULI_FEATURE_VERSION=$SAKULI_VERSION" >> $WORKSPACE/myjob.properties
2016

2117
if [[ $SAKULI_BRANCH == dev ]] || [[ $SAKULI_BRANCH == feature* ]] ; then
2218
SAKULI_DOC_BRANCH=$SAKULI_BRANCH

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
*.png binary
1919
*.jpg binary
2020
*.pdf binary
21+
22+
# files with LF
23+
*.twig text eol=lf
24+
TestCase_*.txt eol=lf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ key3.db
1616
.gearman-cache
1717
.sakuli-steps-cache
1818
Dockerfile.local
19+
**/test-output/

README.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
image:./docs/images/sakuli_logo_small.png[sakuli-logo]
22

3-
:sakuli-latest-version: v1.1.0
3+
:sakuli-latest-version: v1.2.0
44
:sakuli-doc-base-url: http://consol.github.io/sakuli
55
:sakuli-doc-url: {sakuli-doc-base-url}/latest
66

@@ -70,6 +70,12 @@ The complete versions of our documentation you can find under:
7070
[link={sakuli-doc-url}/files/Sakuli_Short_Overview.pdf]
7171
image::./docs/images/Sakuli_Short_Overview.png[Sakuli Short Overview Presentation]
7272

73+
= Sakuli UI Introduction
74+
75+
video::5RJY_FD6YvQ[youtube]
76+
77+
https://github.com/ConSol/sakuli-ui[]
78+
7379
- - -
7480

7581
image::./docs/images/bmi_logo_eng.png[Supported by Federal Ministry for Economic Affairs and Energy]
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
#!/usr/bin/env bash
2+
3+
set -e -o pipefail
4+
5+
IMAGES=(
6+
"consol/sakuli-ubuntu-xfce"
7+
"consol/sakuli-ubuntu-xfce-java"
8+
"consol/sakuli-ubuntu-icewm"
9+
"consol/sakuli-ubuntu-icewm-java"
10+
"consol/sakuli-centos-xfce"
11+
"consol/sakuli-centos-xfce-java"
12+
"consol/sakuli-centos-icewm"
13+
"consol/sakuli-centos-icewm-java"
14+
"consol/sakuli-ui"
15+
"consol/omd-labs-ubuntu-sakuli"
16+
"consol/omd-labs-centos-sakuli"
17+
"consol/omd-labs-debian-sakuli"
18+
)
19+
PATTERN="SNAPSHOT"
20+
#PATTERN="v1.1.0-SNAPSHOT"
21+
22+
logfile="docker.delete.images.log"
23+
SAVEMODE=$1
24+
25+
echo "" > $logfile
26+
token=""
27+
function loginToDocker() {
28+
if [[ $HUB_USERNAME == "" ]] || [[ $HUB_PASSWORD == "" ]] ; then
29+
echo "please set dockerhub login credentials via env vars: 'HUB_USERNAME' and 'HUB_PASSWORD'"
30+
exit -1
31+
fi
32+
json=$(curl -s --fail -i -X POST \
33+
-H "Content-Type: application/json" \
34+
-H "Accept: application/json" \
35+
-d '{"username":"'${HUB_USERNAME}'","password":"'${HUB_PASSWORD}'"}' \
36+
https://hub.docker.com/v2/users/login/ | grep "{" )
37+
# echo $json
38+
# echo "--------------------"
39+
token=$(echo $json | jq --raw-output '.token' )
40+
41+
echo TOKEN: $token
42+
echo "logged in user: $HUB_USERNAME"
43+
echo "--------------------"
44+
}
45+
46+
function deleteTags () {
47+
if [[ $1 == "" ]] ; then
48+
echo "use function: deleteTag <user/repo>"
49+
exit -1
50+
fi
51+
52+
echo "getTags: ${1}"
53+
json=$(curl --fail -i -X GET \
54+
https://hub.docker.com/v2/repositories/${1}/tags/ | grep "{")
55+
# echo "$json"
56+
# echo "-------------------------"
57+
58+
### ensure continue if no tags are matching
59+
set +e +o pipefail
60+
tags=$( echo "$json" | jq --raw-output '.results[].name' | grep $PATTERN )
61+
set -e -o pipefail
62+
63+
echo "-------------------------"
64+
echo "TAGS:"
65+
echo "$tags"
66+
echo "-------------------------"
67+
68+
if [[ $tags == "" ]] ; then echo "no tags" && return ; fi
69+
70+
for tag in $tags ; do
71+
echo "delete ${1}:${tag}"
72+
echo "${1}:${tag}" >> $logfile
73+
74+
if [[ "$SAVEMODE" != "--save" ]] ; then
75+
curl --fail -i -X DELETE \
76+
-H "Accept: application/json" \
77+
-H "Authorization: JWT $token" \
78+
"https://hub.docker.com/v2/repositories/${1}/tags/${tag}/"
79+
fi
80+
echo "........................."
81+
done
82+
}
83+
84+
function logout() {
85+
echo "logout user: $HUB_USERNAME"
86+
curl -s -i --fail -X POST \
87+
-H "Accept: application/json" \
88+
-H "Authorization: JWT $token" \
89+
https://hub.docker.com/v2/logout/
90+
}
91+
92+
loginToDocker
93+
#deleteTags "consol/sakuli-ubuntu-xfce"
94+
#Loop
95+
for IMAGE in "${IMAGES[@]}" ; do
96+
deleteTags $IMAGE
97+
done
98+
logout
99+
echo "-----------> DONE!"

docker/.build/tag_image.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ set -e -o pipefail
44
SRC_TAG=$1
55
TARGET_TAG=$2
66
SAVEMODE=$3
7+
logfile="docker.tagged.images.log"
8+
79
echo "tag $SRC_TAG -> $TARGET_TAG"
810
if [[ $SRC_TAG == "" ]] || [[ $TARGET_TAG == "" ]] ; then
911
echo "ERROR: execute script like: tag_image.sh <src-tag> <target-tag> [--save]"
1012
exit -1
1113
fi
14+
echo "" > $logfile
1215

1316
IMAGES=(
1417
"consol/sakuli-ubuntu-xfce"
@@ -19,18 +22,24 @@ IMAGES=(
1922
"consol/sakuli-centos-xfce-java"
2023
"consol/sakuli-centos-icewm"
2124
"consol/sakuli-centos-icewm-java"
25+
"consol/sakuli-ui"
2226
)
2327

2428
#Loop
25-
for IMAGE in "${IMAGES[@]}"
26-
do
29+
for IMAGE in "${IMAGES[@]}"; do
2730
echo "IMAGE: $IMAGE:$SRC_TAG"
2831
docker pull $IMAGE:$SRC_TAG
29-
docker run -it -e TESTSUITE_BROWSER=firefox $IMAGE:$SRC_TAG
30-
docker run -it -e TESTSUITE_BROWSER=chrome $IMAGE:$SRC_TAG
32+
33+
# skip test of sakuli UI image
34+
if [[ $IMAGE != "consol/sakuli-ui" ]]; then
35+
docker run -it -p 6911:6901 -e TESTSUITE_BROWSER=firefox $IMAGE:$SRC_TAG
36+
docker run -it -p 6911:6901 -e TESTSUITE_BROWSER=chrome $IMAGE:$SRC_TAG
37+
fi
38+
3139
docker tag $IMAGE:$SRC_TAG $IMAGE:$TARGET_TAG
3240
if [[ "$SAVEMODE" != "--save" ]] ; then
3341
docker push $IMAGE:$TARGET_TAG
3442
fi
43+
echo "$IMAGE:$SRC_TAG" >> $logfile
3544
echo " - done!"
3645
done

docker/.build/trigger_dockerhub.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ echo "trigger dockerhub builds for Tag $GIT_TAG:"
44

55
URLS=(
66
"https://registry.hub.docker.com/u/consol/sakuli-ubuntu-xfce/trigger/76b9b474-97e7-472a-a807-fa1829ef4b93/"
7+
"https://registry.hub.docker.com/u/consol/sakuli-ui/trigger/afb8b1c4-66a9-43dd-8787-e30f1007e513/"
78
"https://registry.hub.docker.com/u/consol/omd-labs-ubuntu-sakuli/trigger/6cdc0a55-5926-4fd7-81ce-d97e97aee63c/"
89
"https://registry.hub.docker.com/u/consol/sakuli-ubuntu-xfce-java/trigger/62342ff8-d1cb-4111-b298-e43ffdf3d4f7/"
910
"https://registry.hub.docker.com/u/consol/sakuli-ubuntu-icewm/trigger/453572ea-3272-46b6-a8fb-9ef95c4e655d/"

docker/Dockerfile.sakuli.centos.icewm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This Dockerfile is used to build a sakuli image based on CentOS
22

3-
FROM consol/centos-icewm-vnc:1.2.3
3+
FROM consol/centos-icewm-vnc:1.3.0
44

55
MAINTAINER Tobias Schneck "[email protected]"
6-
ENV REFRESHED_AT 2017-12-18
6+
ENV REFRESHED_AT 2018-06-27
77

88
LABEL io.k8s.description="Sakuli headless testing container with Xfce window manager, firefox and chromium" \
99
io.k8s.display-name="Sakuli testing container based on Centos and Xfce" \
@@ -20,7 +20,7 @@ ENV VNC_PORT=5901 \
2020

2121
## Connection ports for controlling the UI:
2222
# VNC port:5901
23-
# noVNC webport, connect via http://IP:6901/vnc_auto.html?password=vncpassword
23+
# noVNC webport, connect via http://IP:6901/?password=sakuli
2424
EXPOSE $VNC_PORT $NO_VNC_PORT
2525

2626
# use root user for installation
@@ -38,7 +38,7 @@ RUN $INST_SCRIPTS/java_jre.sh
3838
RUN $INST_SCRIPTS/java_jce_test/jce_test.sh
3939

4040
### Install Sakuli
41-
ARG SAKULI_VERSION=1.1.0
41+
ARG SAKULI_VERSION=1.2.0
4242
# SAKULI_UMASK: Testsuite folder default permissions after text execution
4343
# SAKULI_EXAMPLE_TEST_SUITE: Define the example which will be used as default test
4444
# SAKULI_TEST_SUITE: Define Sakuli default startup testsuite
@@ -53,9 +53,9 @@ RUN $INST_SCRIPTS/sakuli.sh
5353

5454
### configure startup
5555
ADD ./sakuli-client/src/common/scripts $STARTUPDIR
56-
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME
56+
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR
5757
# use headless user for startup
58-
USER 1984
58+
USER 1000
5959

6060
### Sakuli startup script
6161
# no parameters:

0 commit comments

Comments
 (0)