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
Léo-Paul Géneau
slapos
Commits
fa097604
Commit
fa097604
authored
Aug 21, 2024
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/headlesschrome-seleniumserver: set slot default quantity to 1
parent
12104bfe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
software/headlesschrome-seleniumserver/buildout.hash.cfg
software/headlesschrome-seleniumserver/buildout.hash.cfg
+2
-2
software/headlesschrome-seleniumserver/instance-input-schema.json
.../headlesschrome-seleniumserver/instance-input-schema.json
+1
-1
software/headlesschrome-seleniumserver/instance-selenium.cfg.jinja.in
...dlesschrome-seleniumserver/instance-selenium.cfg.jinja.in
+5
-2
software/headlesschrome-seleniumserver/instance.cfg.in
software/headlesschrome-seleniumserver/instance.cfg.in
+1
-1
No files found.
software/headlesschrome-seleniumserver/buildout.hash.cfg
View file @
fa097604
...
...
@@ -15,8 +15,8 @@
[template]
filename = instance.cfg.in
md5sum =
1aa63e67296099038953f64e11e8e985
md5sum =
b9601afe9527dcddf126cb651d40fec0
[template-selenium]
filename = instance-selenium.cfg.jinja.in
md5sum =
20abd13afa2cea597bbfd1804abaa14
4
md5sum =
42c86c3a21f9d9ce0743fcd53e018de
4
software/headlesschrome-seleniumserver/instance-input-schema.json
View file @
fa097604
...
...
@@ -8,7 +8,7 @@
"title"
:
"Slot quantity"
,
"description"
:
"Number of slot per selenium node"
,
"type"
:
"integer"
,
"default"
:
3
"default"
:
1
}
}
}
software/headlesschrome-seleniumserver/instance-selenium.cfg.jinja.in
View file @
fa097604
...
...
@@ -57,7 +57,6 @@ capabilities =
port =
java-args =
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
command-line =
${java-re-8:location}/bin/java $${:java-args}
...
...
@@ -85,6 +84,7 @@ ip = $${selenium-server-node-instance:hostname}
[selenium-server-node-instance-chromium-120]
<= selenium-server-node-instance
recipe = slapos.cookbook:wrapper
capabilities = browserName=chrome,maxInstances={{ parameter_dict['slotQuantity'] }},platform=LINUX,version=${chromium-120:version},chrome_binary=${chromium-wrapper-120:location}
java-args = -Dwebdriver.chrome.driver=${chromedriver-wrapper-120:location}
port = $${chromium-address:port}
...
...
@@ -227,7 +227,10 @@ inline =
api_url = sys.argv[1]
expected_node_count = int(sys.argv[2])
actual_node_count = json.load(urllib.request.urlopen(api_url))['slotCounts']['total']
sys.exit(0 if expected_node_count == actual_node_count else 1)
if expected_node_count != actual_node_count:
print('expect %s nodes but found %s' % (expected_node_count, actual_node_count))
sys.exit(1)
sys.exit(0)
[selenium-server-node-instance-chromium-120-listen-promise]
<= check-port-listening-promise
...
...
software/headlesschrome-seleniumserver/instance.cfg.in
View file @
fa097604
...
...
@@ -26,7 +26,7 @@ context =
key partition_ipv6 slap-configuration:ipv6-random
default-parameters =
{
"slotQuantity":
3
"slotQuantity":
1
}
[slap-configuration]
...
...
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