-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetLocalTestEnvironment.sh
72 lines (69 loc) · 1.65 KB
/
setLocalTestEnvironment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
export DASHBOARD_CONFIG=$(cat <<EOF
{
"displays":[
{
"index":1,
"description": "Test Execution - VNC View",
"url":"http://sakuli-demo-sakuli-demo.192.168.99.107.nip.io/vnc.html?password=vncpassword",
"actionIdentifier":"7890eab9-6c5e-4e40-b39c-163900ea4834"
},
{
"index":2,
"description": "Service Monitoring",
"url":"https://ta-monitoring.aws-test.consol.de/demo/grafana/dashboard-solo/script/histou.js?orgId=1&host=sakuli_client&service=CM_Sakuli_Demo&theme=light&annotations=true&refresh=30s&var-Case=All&panelId=3"
}
]
}
EOF
)
export ACTION_CONFIG=$(cat <<EOF
{
"actions":[
{
"actionIdentifier":"7890eab9-6c5e-4e40-b39c-163900ea4834",
"action": {
"metadata": {
"labels": {
"app": "sakuli-demo"
},
"name":"sakuli-demo"
},
"spec": {
"containers": [
{
"name": "sakuli-demo",
"image": "172.30.1.1:5000/sakuli-demo/sakuli-demo"
}
]
}
},
"displayUpdate":{
"pollingInterval":2000
}
}
]
}
EOF
)
export CLUSTER_CONFIG=$(cat <<EOF
{
"cluster":{
"name":"cluster",
"server":"https://192.168.99.107:8443",
"skipTLSVerify":true
},
"user":{
"name":"developer",
"token":"IcgX0FmSitF6uUYgq1_hPOtFDRwZ40ONJjvQJfuG-PA"
},
"namespace":"sakuli-demo"
}
EOF
)
export CRONJOB_CONFIG=$(cat <<EOF
{
"schedule": "*/20 * * * *",
"actionIdentifier": "7890eab9-6c5e-4e40-b39c-163900ea4834"
}
EOF
)