Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
4d8940ff
Commit
4d8940ff
authored
Jul 05, 2021
by
Lisa Casino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seleniumserver: switch to switch-softwaretype
parent
9646cba9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
21 deletions
+24
-21
software/seleniumserver/buildout.hash.cfg
software/seleniumserver/buildout.hash.cfg
+2
-2
software/seleniumserver/instance-selenium.cfg.in
software/seleniumserver/instance-selenium.cfg.in
+6
-6
software/seleniumserver/instance.cfg.in
software/seleniumserver/instance.cfg.in
+16
-10
software/seleniumserver/software.cfg
software/seleniumserver/software.cfg
+0
-3
No files found.
software/seleniumserver/buildout.hash.cfg
View file @
4d8940ff
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
c4ac5de141ae6a64848309af03e51d88
md5sum =
0084214fae4ee1aad2c878aa393757af
[template-selenium]
[template-selenium]
filename = instance-selenium.cfg.in
filename = instance-selenium.cfg.in
md5sum =
973a43eb3cb4b663476987b7e64aae11
md5sum =
884196ea35de35fa9159517912441ce6
software/seleniumserver/instance-selenium.cfg.in
View file @
4d8940ff
...
@@ -61,7 +61,7 @@ command-line =
...
@@ -61,7 +61,7 @@ command-line =
# newSessionWaitTimeout: let clients wait in the queue when no node are available
# newSessionWaitTimeout: let clients wait in the queue when no node are available
# maxSession: to accept enough clients
# maxSession: to accept enough clients
hostname = $${
instance-parameter
:ipv4-random}
hostname = $${
slap-configuration
:ipv4-random}
port = 4444
port = 4444
base-url = http://$${:hostname}:$${:port}
base-url = http://$${:hostname}:$${:port}
url = $${:base-url}/wd/hub
url = $${:base-url}/wd/hub
...
@@ -94,7 +94,7 @@ environment =
...
@@ -94,7 +94,7 @@ environment =
XORG_LOCK_DIR=$${directory:tmp}
XORG_LOCK_DIR=$${directory:tmp}
DISPLAY=$${xvfb-instance:display}
DISPLAY=$${xvfb-instance:display}
FONTCONFIG_FILE=$${fontconfig-conf:rendered}
FONTCONFIG_FILE=$${fontconfig-conf:rendered}
hostname = $${
instance-parameter
:ipv4-random}
hostname = $${
slap-configuration
:ipv4-random}
[selenium-server-node-instance-firefox-52]
[selenium-server-node-instance-firefox-52]
...
@@ -164,7 +164,7 @@ template = inline:
...
@@ -164,7 +164,7 @@ template = inline:
$${:path-hub}
$${:path-hub}
}
}
}
}
ip = $${
instance-parameter
:ipv6-random}
ip = $${
slap-configuration
:ipv6-random}
hostname = [$${:ip}]
hostname = [$${:ip}]
port = 9443
port = 9443
path-admin = /grid/console
path-admin = /grid/console
...
@@ -192,7 +192,7 @@ recipe = slapos.cookbook:userinfo
...
@@ -192,7 +192,7 @@ recipe = slapos.cookbook:userinfo
recipe = slapos.cookbook:free_port
recipe = slapos.cookbook:free_port
minimum = 22222
minimum = 22222
maximum = 22231
maximum = 22231
ip = $${slap-
network-information:global-ipv6
}
ip = $${slap-
configuration:ipv6-random
}
hostname = $${:ip}
hostname = $${:ip}
[ssh-keygen-base]
[ssh-keygen-base]
...
@@ -263,7 +263,7 @@ recipe = plone.recipe.command
...
@@ -263,7 +263,7 @@ recipe = plone.recipe.command
stop-on-error = true
stop-on-error = true
location = $${buildout:directory}/.ssh
location = $${buildout:directory}/.ssh
authorized-keys-file = $${:location}/authorized_keys
authorized-keys-file = $${:location}/authorized_keys
command = mkdir -p $${:location} && echo '$${
instance-parameter
:configuration.ssh-authorized-key}' > $${:authorized-keys-file}
command = mkdir -p $${:location} && echo '$${
slap-configuration
:configuration.ssh-authorized-key}' > $${:authorized-keys-file}
[promises]
[promises]
...
@@ -371,7 +371,7 @@ ssh-fingerprint = $${ssh-key-fingerprint:fingerprint}
...
@@ -371,7 +371,7 @@ ssh-fingerprint = $${ssh-key-fingerprint:fingerprint}
run-node-command = PORT=7999 bash -c 'trap '"'"'kill -TERM $SSHPID; wait $SSHPID '"'"' TERM INT; ssh -L 4444:$${selenium-server-hub-instance:hostname}:$${selenium-server-hub-instance:port} -R $PORT:127.0.0.1:$PORT -p $${sshd-service:port} $${sshd-service:username}@$${sshd-service:ip} & SSHPID=$!; java -jar selenium-server-standalone-3.14.0.jar -role node -host 127.0.0.1 -port $PORT ; wait "$SSHPID"'
run-node-command = PORT=7999 bash -c 'trap '"'"'kill -TERM $SSHPID; wait $SSHPID '"'"' TERM INT; ssh -L 4444:$${selenium-server-hub-instance:hostname}:$${selenium-server-hub-instance:port} -R $PORT:127.0.0.1:$PORT -p $${sshd-service:port} $${sshd-service:username}@$${sshd-service:ip} & SSHPID=$!; java -jar selenium-server-standalone-3.14.0.jar -role node -host 127.0.0.1 -port $PORT ; wait "$SSHPID"'
[
instance-parameter
]
[
slap-configuration
]
recipe = slapos.cookbook:slapconfiguration
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
partition = $${slap-connection:partition-id}
...
...
software/seleniumserver/instance.cfg.in
View file @
4d8940ff
...
@@ -6,15 +6,21 @@ eggs-directory = ${buildout:eggs-directory}
...
@@ -6,15 +6,21 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
offline = true
[dynamic-template-selenium]
recipe = slapos.recipe.template:jinja2
template = ${template-selenium:output}
rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
filename = instance-selenium.cfg
context =
key partition_ipv6 slap-configuration:ipv6-random
[switch-softwaretype]
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:switch-softwaretype
default = ${template-selenium:output}
RootSoftwareInstance = $${:default}
default = dynamic-template-selenium:rendered
[slap-connection]
[slap-configuration]
# part to migrate to new - separated words
recipe = slapos.cookbook:slapconfiguration
computer-id = $${slap_connection:computer_id}
computer = $${slap-connection:computer-id}
partition-id = $${slap_connection:partition_id}
partition = $${slap-connection:partition-id}
server-url = $${slap_connection:server_url}
url = $${slap-connection:server-url}
software-release-url = $${slap_connection:software_release_url}
key-file = $${slap_connection:key_file}
cert-file = $${slap_connection:cert_file}
software/seleniumserver/software.cfg
View file @
4d8940ff
...
@@ -76,6 +76,3 @@ post-install =
...
@@ -76,6 +76,3 @@ post-install =
[firefox-78]
[firefox-78]
post-install =
post-install =
${symlink-extra-fonts-to-firefox-fonts-dir:install}
${symlink-extra-fonts-to-firefox-fonts-dir:install}
[versions]
plone.recipe.command = 1.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment