Commit fa097604 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

software/headlesschrome-seleniumserver: set slot default quantity to 1

parent 12104bfe
......@@ -15,8 +15,8 @@
[template]
filename = instance.cfg.in
md5sum = 1aa63e67296099038953f64e11e8e985
md5sum = b9601afe9527dcddf126cb651d40fec0
[template-selenium]
filename = instance-selenium.cfg.jinja.in
md5sum = 20abd13afa2cea597bbfd1804abaa144
md5sum = 42c86c3a21f9d9ce0743fcd53e018de4
......@@ -8,7 +8,7 @@
"title": "Slot quantity",
"description": "Number of slot per selenium node",
"type": "integer",
"default": 3
"default": 1
}
}
}
......@@ -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
......
......@@ -26,7 +26,7 @@ context =
key partition_ipv6 slap-configuration:ipv6-random
default-parameters =
{
"slotQuantity": 3
"slotQuantity": 1
}
[slap-configuration]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment