Skip to content

Commit

Permalink
Merge pull request #473 from zebrunner/develop
Browse files Browse the repository at this point in the history
1.9 rc
  • Loading branch information
vdelendik committed Oct 26, 2021
2 parents be3585c + a9e822f commit 893ee29
Show file tree
Hide file tree
Showing 23 changed files with 4,027 additions and 267 deletions.
2 changes: 0 additions & 2 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .env.original
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ZBR_PORT=80
TAG_NGINX=1.17
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
*.bak
nginx/conf.d/default.conf
.disabled
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Enjoy using Zebrunner Reporting in your testing process! Feel free to support th
</p>

## Initial setup
Visit [Zebrunner Guide](https://zebrunner.github.io/zebrunner) for detailed installation and configuration instructions.
Visit [Zebrunner Guide](https://zebrunner.github.io/community-edition) for detailed installation and configuration instructions.

1. Clone [Zebrunner](https://github.com/zebrunner/zebrunner) recursive and launch setup procedure:
```
Expand All @@ -30,21 +30,21 @@ Visit [Zebrunner Guide](https://zebrunner.github.io/zebrunner) for detailed inst
2. After the startup, the following components might be available:
> Use your host address instead of `hostname`!
| Components | URL |
|--------------------- |--------------------------------------------------------------------------------------- |
| Zebrunner Reporting | [http://hostname](http://hostname) |
| Jenkins | [http://hostname/jenkins](http://hostname/jenkins) |
| SonarQube | [http://hostname/sonarqube](http://hostname/sonarqube) |
| Web Selenium Hub | [http://demo:demo@hostname/selenoid/wd/hub](http://demo:demo@hostname/selenoid/wd/hub) |
| Mobile Selenium Hub | [http://demo:demo@hostname/mcloud/wd/hub](http://demo:demo@hostname/mcloud/wd/hub) |
| Mobile SmartTest Farm | [http://hostname/stf](http://hostname/stf) |
| Components | URL |
|--------------------- | ------------------------------------------------------------------ |
| Zebrunner Reporting | [http://hostname](http://hostname) |
| Jenkins | [http://hostname/jenkins](http://hostname/jenkins) |
| SonarQube | [http://hostname/sonarqube](http://hostname/sonarqube) |
| Web Selenium Hub | [http://hostname/selenoid/wd/hub](http://hostname/selenoid/wd/hub) |
| Mobile Selenium Hub | [http://hostname/mcloud/wd/hub](http://hostname/mcloud/wd/hub) |
| Mobile SmartTest Farm | [http://hostname/stf](http://hostname/stf) |

> admin/changeit crendetials should be used for Reporting and Jenkins, admin/admin for SonarQube.

## Documentation and free support
* [Zebrunner PRO](https://zebrunner.com)
* [Zebrunner CE](https://zebrunner.github.io/zebrunner)
* [Zebrunner CE](https://zebrunner.github.io/community-edition)
* [Zebrunner Reporting](https://zebrunner.com/documentation)
* [Carina Guide](http://zebrunner.github.io/carina)
* [Demo Project](https://github.com/zebrunner/carina-demo)
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ services:
options:
max-size: "512m"
ports:
- "80:80"
- "${ZBR_PORT}:80"
restart: always
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Welcome to the Zebrunner Tutorial. This manual is designed to help you install,
> In short, the aim of this manual is to explain the tasks involved in administering Zebrunner (Community Edition)
## Audience
This guide is written for all levels of administrators, from those responsible for deployment and setup, to those who oversee the entire system and its usage. In addition, some information from [User Guide](https://zebrunner.github.io/zebrunner/user-guide/) is intended for TestOps engineers who want to build effective Test Automation process and follow best practices.
This guide is written for all levels of administrators, from those responsible for deployment and setup, to those who oversee the entire system and its usage. In addition, some information from [User Guide](https://zebrunner.github.io/community-edition/user-guide/) is intended for TestOps engineers who want to build effective Test Automation process and follow best practices.

## Assumed Knowledge
Installation and Configuration guides are for administrators who install, deploy and Manage Zebrunner products. It assumes the following knowledge:
Expand Down
16 changes: 8 additions & 8 deletions docs/install-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
2. After startup, the following components might be available:
> Use your host domain address or IP instead of `hostname`.
| Components | URL |
|--------------------- |---------------------------------------------------------------------------------------------------------- |
| Zebrunner Reporting | [http://hostname](http://hostname) |
| Jenkins | [http://hostname/jenkins](http://hostname/jenkins) |
| SonarQube | [http://hostname/sonarqube](http://hostname/sonarqube) |
| Web Selenium Hub | [http://demo:demo@hostname/selenoid/wd/hub](http://demo:demo@demo.zebrunner.com/selenoid/wd/hub) |
| Mobile Selenium Hub | [http://demo:demo@hostname/mcloud/wd/hub](http://demo:demo@demo.zebrunner.com/mcloud/wd/hub) |
| Mobile SmartTest Farm | [http://hostname/stf](http://hostname/stf) |
| Components | URL |
|--------------------- |------------------------------------------------------------------- |
| Zebrunner Reporting | [http://hostname](http://hostname) |
| Jenkins | [http://hostname/jenkins](http://hostname/jenkins) |
| SonarQube | [http://hostname/sonarqube](http://hostname/sonarqube) |
| Web Selenium Hub | [http://hostname/selenoid/wd/hub](http://hostname/selenoid/wd/hub) |
| Mobile Selenium Hub | [http://hostname/mcloud/wd/hub](http://hostname/mcloud/wd/hub) |
| Mobile SmartTest Farm | [http://hostname/stf](http://hostname/stf) |

> admin/changeit crendetials should be used for Reporting and Jenkins, admin/admin for SonarQube.
Expand Down
2 changes: 1 addition & 1 deletion jenkins
2 changes: 1 addition & 1 deletion mcloud
20 changes: 2 additions & 18 deletions nginx/conf.d/default.conf.original
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ server {
server_name localhost;

# Uncomment below block to setup SSL on this NGiNX instance. make sure to put ssl.crt and ssl.key to nginx/ssl shared folder
# listen 443 ssl;
# ssl_certificate /etc/nginx/ssl/ssl.crt;
# ssl_certificate_key /etc/nginx/ssl/ssl.key;
# ssl_session_timeout 5m;
Expand All @@ -34,8 +33,8 @@ server {

#workaround for static jenkins icon svg
location ~ /jenkins/static {
set $upstream_jenkins jenkins-master:8080;
proxy_pass http://$upstream_jenkins;
set $upstream_jenkins http://jenkins-master:8080;
proxy_pass $upstream_jenkins;
}

location ~ /jenkins.*.svg {
Expand All @@ -47,8 +46,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

#proxy_redirect off;
#proxy_redirect http:// https://;

if (!-f $request_filename) {
set $upstream_jenkins http://jenkins-master:8080;
Expand Down Expand Up @@ -118,18 +115,8 @@ server {
root /usr/share/nginx;
}

# IMPORTANT!!! make sure to generate secure Selenoid/MCloud credentials and put them into the nginx/htpasswd/selenoid.htpasswd and mcloud.htpasswd files
# 1. install htpasswd utility and regenerate default credentials in *.htpasswd, for example
# htpasswd -bc nginx/htpasswd/selenoid.htpasswd username password
# 2. Update appropriate Selenium/MCloud provider urls in Reporting and CI
# http://username:password/hostname/selenoid/wd/hub
# http://username:password/hostname/mcloud/wd/hub

# Selenoid Hub
location ~ ^/selenoid/(.*)$ {
auth_basic "Private Selenoid Hub";
auth_basic_user_file /usr/share/nginx/htpasswd/selenoid.htpasswd;

set $upstream_selenoid http://selenoid:4444;
proxy_pass $upstream_selenoid/$1;

Expand All @@ -153,9 +140,6 @@ server {
}

location /mcloud {
auth_basic "Private MCloud Selenium Hub";
auth_basic_user_file /usr/share/nginx/htpasswd/mcloud.htpasswd;

proxy_connect_timeout 60;
proxy_send_timeout 300;
proxy_read_timeout 300;
Expand Down
1 change: 0 additions & 1 deletion nginx/htpasswd/mcloud.htpasswd

This file was deleted.

1 change: 0 additions & 1 deletion nginx/htpasswd/selenoid.htpasswd

This file was deleted.

33 changes: 33 additions & 0 deletions nginx/ssl/ssl.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-----BEGIN CERTIFICATE-----
MIIFrzCCA5egAwIBAgIUdm5LjzUnY31xxP+cyfqkDSEFBjwwDQYJKoZIhvcNAQEL
BQAwZzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRIwEAYDVQQHDAlSb3Nldmls
bGUxFjAUBgNVBAoMDVplYnJ1bm5lciBJbmMxCzAJBgNVBAsMAlFBMRIwEAYDVQQD
DAlsb2NhbGhvc3QwHhcN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/HIa2BBRB
Dtn6fBWQDe4/EE03SfyVpFJk3/AzchMljBrnmhrvyRCrV8bESflCjwSgnSIsqBF/
iISnPjUIesrnM/mW5teIBgWP3Rt+C0TJnZgipWMakA5Ka/xWPSt8W8CZJ5o8Vuly
qGA4xT6w5RmX9Pe86GBHuzQo7n86SV6SZ4Z+vq4i+IKhbnIellTXsn0uruQ6Ij/E
G+1bblvsN/qKs+GK0xI6vCo38BZqleCbSmBQpusHp/I8pqVPkWK4GyVIsQunzfhO
oXP4z1gPHKRdQvcpVxBWdp6KtZ4xAJXXDwDTFgddTD8Nb8FD9leAWy9Gkx266bTP
ikfybm7P2w+/a8Y8nUVomh21xX3+joD+puhMQ0pt0Y13/bpYHxaIefnZUozR75IP
d5A+BWIy5Yhxqrp4rkqMKRPeLdtOUeBz1fNNA3a7F38mJEoeUh5Fe49sHxQhH/Vv
N3uhbBnkSZzYxgHewnaItlXnMZuzRAcF1POnuHx6FOF/EzQJ+9fh9jFf1DDE2YlL
I/7mhKe4ieLU2Z3xl7KRcrG3B85r57/qgDfGDffzKfE0ZS6U725Z/NaxQBgfxM/7
FIG3pLwOV3OzdUDEZz4sfvitzqprzBUzVSmfD2PbPapQwz6dvWanXjoSsMBMMZTt
BzZO47rvBFbQR0Es4v8f/dUq6Q==
-----END CERTIFICATE-----
52 changes: 52 additions & 0 deletions nginx/ssl/ssl.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDmCbP0gYzzQaIr
pJtByjAYLJknqxJsffbjI0SZ/fil4uptffITxEDo10JJbMT/bHUGDBUE8fSUxUPU
hrrjc6wKtp6ZJ3TaE+XM1jYm/4T3OsYOdLowZXboHB3zRNXp6savMrJbZHjd3M+d
IGrmCq6O43cwUVCsIQfgDh3Zr/0secB6UkziR7bweNCNf+QqJvsrLxt74aDbrqVB
NLHTrPE6nYKPH1uIGBZG/2tL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P3+nb+iUR8LeVpaaJEzhl23hSKGm70J
hrpqoyskUuz35u0DBjOLXb848bd8ljKP0w11UO5IXQKCAQA9bZZRJv5Iw452zfjh
UC7EKsgHwgAv3De4R9mhgbUASneof72lKbM4Pad2znIUUtwIk0gHixMicVHgooKL
c5/XDSMD18CwalEQh5B2ZXZ0uC5rGh+creFzJHpbgyXYIVMhGuUxX2OxR/E9TbDV
zz+7lJaitWTVK4YCiV2VcM8T0gI/+fbkncAsPTwiC9E3M8TeBeM3Ieq+Kd8QTYle
YJT8eoa8y6g2q3V1hwessXgKZrmiSxR/QG+/QJGqf0kZCsq0ewu2laQgIw3xH6KM
fBKe0naNb586Ju8QJUCE/KnLkb3EOztRnge0OZykZ4Pr8njkZ4hXjN5N5AXGllAk
BCrRAoIBAEuHAXf+BCWq29l4azAeL6h86Rvf8puFGl0f50rvTttXIuN9G/muO08K
ZCLMsJ5Z+IfgSsMZBzZh86FeIby4s0Fg0694w2aQw5PoinZHnsqS0553BbfUcFsp
MnDagb8NtbePPob8KNN6r8gZZuvPNjMXIdxNkKf6umxfCmqyuESe2XNJ0xDyuqdq
uzse7sAfxT963MmzLTIbNgHegI5CC+pwtcvyoa0vwzNzxu10qWdYddJ3/Ib/vuOG
hXLTCbSCu+KjA21QQqc5D1+OReT+p2PogCMu/uuPj4L4tsAxyt4n8kJxrzzqLgCU
i3gD47/Gq1yAhveMR3sGCBpJHZIXF/g=
-----END PRIVATE KEY-----
2 changes: 1 addition & 1 deletion patch/1.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ ! -f jenkins/.disabled ]] ; then
# regenerage variables.env to register new ZEBRUNNER_VERSION var
cp jenkins/variables.env.original jenkins/variables.env
replace jenkins/variables.env "http://localhost:8080/jenkins" "$ZBR_PROTOCOL://$ZBR_HOSTNAME:$ZBR_PORT/jenkins"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=${ZBR_INFRA_HOST}"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=$ZBR_HOSTNAME:$ZBR_PORT"

if [[ ! -z $ZBR_SONAR_URL ]]; then
replace jenkins/variables.env "SONAR_URL=" "SONAR_URL=${ZBR_SONAR_URL}"
Expand Down
2 changes: 1 addition & 1 deletion patch/1.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [[ ! -f jenkins/.disabled ]] ; then
# regenerage variables.env to register new ZEBRUNNER_VERSION var
cp jenkins/variables.env.original jenkins/variables.env
replace jenkins/variables.env "http://localhost:8080/jenkins" "$ZBR_PROTOCOL://$ZBR_HOSTNAME:$ZBR_PORT/jenkins"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=${ZBR_INFRA_HOST}"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=$ZBR_HOSTNAME:$ZBR_PORT"

if [[ ! -z $ZBR_SONAR_URL ]]; then
replace jenkins/variables.env "SONAR_URL=" "SONAR_URL=${ZBR_SONAR_URL}"
Expand Down
2 changes: 1 addition & 1 deletion patch/1.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ ! -f jenkins/.disabled ]] ; then
# regenerage variables.env to register new ZEBRUNNER_VERSION var
cp jenkins/variables.env.original jenkins/variables.env
replace jenkins/variables.env "http://localhost:8080/jenkins" "$ZBR_PROTOCOL://$ZBR_HOSTNAME:$ZBR_PORT/jenkins"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=${ZBR_INFRA_HOST}"
replace jenkins/variables.env "INFRA_HOST=localhost:8080" "INFRA_HOST=$ZBR_HOSTNAME:$ZBR_PORT"

if [[ ! -z $ZBR_SONAR_URL ]]; then
replace jenkins/variables.env "SONAR_URL=" "SONAR_URL=${ZBR_SONAR_URL}"
Expand Down
Loading

0 comments on commit 893ee29

Please sign in to comment.