mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
py3: Fix mules test cases
We're now just copying the current python path. Also the handler names have actually changed, I think this hasn't been updated after a late change (it is now as it should be, based on the documentation).
This commit is contained in:
@@ -411,10 +411,11 @@ def wait_for_http_server(host, port, sleep_amount=0.1, sleep_tries=150):
|
||||
conn = http_client.HTTPConnection(host, port)
|
||||
try:
|
||||
conn.request("GET", "/")
|
||||
if conn.getresponse().status == 200:
|
||||
response = conn.getresponse()
|
||||
if response.status == 200:
|
||||
break
|
||||
except socket.error as e:
|
||||
if e[0] not in [61, 111]:
|
||||
if e.errno not in [61, 111]:
|
||||
raise
|
||||
time.sleep(sleep_amount)
|
||||
else:
|
||||
@@ -670,8 +671,6 @@ def launch_uwsgi(kwargs, tempdir, prefix=DEFAULT_CONFIG_PREFIX, config_object=No
|
||||
"uwsgi",
|
||||
"--http",
|
||||
"%s:%s" % (host, port),
|
||||
"--pythonpath",
|
||||
os.path.join(galaxy_root, "lib"),
|
||||
"--yaml",
|
||||
yaml_config_path,
|
||||
"--module",
|
||||
@@ -679,6 +678,9 @@ def launch_uwsgi(kwargs, tempdir, prefix=DEFAULT_CONFIG_PREFIX, config_object=No
|
||||
"--enable-threads",
|
||||
"--die-on-term",
|
||||
]
|
||||
for p in sys.path:
|
||||
uwsgi_command.append('--pythonpath')
|
||||
uwsgi_command.append(p)
|
||||
|
||||
handle_uwsgi_cli_command = getattr(
|
||||
config_object, "handle_uwsgi_cli_command", None
|
||||
|
||||
@@ -13,10 +13,11 @@ class _BaseMulesIntegrationTestCase(integration_util.IntegrationTestCase):
|
||||
|
||||
framework_tool_and_types = True
|
||||
require_uwsgi = True
|
||||
expected_server_name = 'main.web'
|
||||
|
||||
def test_runs_on_mule(self):
|
||||
tool_id = 'config_vars'
|
||||
expect_server_name = 'main.mule'
|
||||
expect_server_name = self.expected_server_name
|
||||
dataset_populator = DatasetPopulator(self.galaxy_interactor)
|
||||
history_id = dataset_populator.new_history()
|
||||
payload = dataset_populator.run_tool(
|
||||
@@ -38,6 +39,8 @@ class _BaseMulesIntegrationTestCase(integration_util.IntegrationTestCase):
|
||||
@integration_util.skip_if_jenkins
|
||||
class SingleMuleAsJobHandlersIntegrationTestCase(_BaseMulesIntegrationTestCase):
|
||||
|
||||
expected_server_name = 'main.job-handlers'
|
||||
|
||||
@classmethod
|
||||
def handle_uwsgi_cli_command(cls, command):
|
||||
command.extend([
|
||||
@@ -50,6 +53,8 @@ class SingleMuleAsJobHandlersIntegrationTestCase(_BaseMulesIntegrationTestCase):
|
||||
@integration_util.skip_if_jenkins
|
||||
class MultipleMulesAsJobHandlersIntegrationTestCase(_BaseMulesIntegrationTestCase):
|
||||
|
||||
expected_server_name = 'main.job-handlers'
|
||||
|
||||
@classmethod
|
||||
def handle_uwsgi_cli_command(cls, command):
|
||||
command.extend([
|
||||
|
||||
Reference in New Issue
Block a user