Commit 8db21184256f2d23e0dd26a52ae2fb7de2194431

Authored by Alexandre Chapellon
1 parent bd46e4d994
Exists in master

Add Selenium logfile and use urandom to avoid blocking on entropy exhaustion, al…

…so bump selenium minor version
... ... @@ -39,7 +39,7 @@ tomcat_version: "{{ tomcat_ver | default(7) }}"
39 39 tomcat_clean: "{{ tomcat_cln | default(False) }}"
40 40 tomcat_port: "{{ tomcat_prt | default(8080) }}"
41 41  
42   -selenium_version: "{{ selenium_ver | default('2.53.0') }}"
  42 +selenium_version: "{{ selenium_ver | default('2.53.1') }}"
43 43 selenium_release: "{{ selenium_version | regex_replace('\\.\\d+$','') }}"
44 44 selenium_url: "http://selenium-release.storage.googleapis.com/{{ selenium_release }}/selenium-server-standalone-{{ selenium_version }}.jar"
45 45  
... ...
yml/roles/selenium/templates/sysvinit-node
... ... @@ -14,7 +14,7 @@ XVFB_RUN=/usr/bin/xvfb-run
14 14  
15 15 MAX_MEMORY="-Xmx1G"
16 16  
17   -DAEMON_OPTS="$MAX_MEMORY -jar $JAR_FILE -log $LOG_FILE -role node -hub http://${SELENIUM_HUB}:${SELENIUM_PORT}/grid/register -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy"
  17 +DAEMON_OPTS="$MAX_MEMORY -Djava.security.egd=file:/dev/urandom -jar $JAR_FILE -log $LOG_FILE -role node -hub http://${SELENIUM_HUB}:${SELENIUM_PORT}/grid/register -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy"
18 18 XSERVER_ARGS="-screen 0 {{ xserver_res }}"
19 19  
20 20 NAME=selenium-node
... ...
yml/roles/selenium/templates/unit-file_hub
... ... @@ -6,7 +6,7 @@ After=syslog.target network.target
6 6 Type=simple
7 7 User=selenium
8 8  
9   -ExecStart=/usr/bin/java -jar /usr/local/share/selenium/selenium-server-standalone-{{ selenium_version }}.jar -role hub -newSessionWaitTimeout 5000 -timeout 300 -Xmx1G -port {{ selenium_hub_portnumber }}
  9 +ExecStart=/usr/bin/java -jar /usr/local/share/selenium/selenium-server-standalone-{{ selenium_version }}.jar -role hub -newSessionWaitTimeout 5000 -timeout 300 -Xmx1G -port {{ selenium_hub_portnumber }} -log /usr/local/share/selenium/selenium-hub.log
10 10  
11 11 [Install]
12 12 WantedBy=multi-user.target
... ...
yml/roles/selenium/templates/unit-file_node
... ... @@ -5,7 +5,7 @@ After=syslog.target network.target
5 5 [Service]
6 6 User=selenium
7 7  
8   -ExecStart=/usr/bin/xvfb-run -s "screen 0 {{ xserver_res }}" -a /usr/bin/java -jar /usr/local/share/selenium/selenium-server-standalone-{{ selenium_version }}.jar -role node -hub http://{{ groups['selenium-hub'][0] }}:{{ selenium_hub_portnumber }}/grid/register -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy
  8 +ExecStart=/usr/bin/xvfb-run -s "screen 0 {{ xserver_res }}" -a /usr/bin/java -Djava.security.egd=file:/dev/urandom -jar /usr/local/share/selenium/selenium-server-standalone-{{ selenium_version }}.jar -role node -hub http://{{ groups['selenium-hub'][0] }}:{{ selenium_hub_portnumber }}/grid/register -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy -log /usr/local/share/selenium/selenium-node.log
9 9  
10 10 [Install]
11 11 WantedBy=default.target
... ...