diff --git a/test/integration/test_kubernetes_runner.py b/test/integration/test_kubernetes_runner.py
index 6546ac3a20a..2880f8e0e46 100644
--- a/test/integration/test_kubernetes_runner.py
+++ b/test/integration/test_kubernetes_runner.py
@@ -90,6 +90,12 @@ def job_config(jobs_directory):
$k8s_config_path
gx-short-id
+
+ jobs-directory-claim:$jobs_directory,tool-directory-claim:$tool_directory
+ $k8s_config_path
+ gx-short-id
+ 10
+
@@ -99,11 +105,19 @@ def job_config(jobs_directory):
busybox:ubuntu-14.04
42
+
+ 1.9
+ 10M
+ true
+ busybox:ubuntu-14.04
+ 42
+
+
""")
@@ -255,3 +269,19 @@ class BaseKubernetesIntegrationTestCase(BaseJobEnvironmentIntegrationTestCase, M
MEM = '10'
MEM_PER_SLOT = '5'
assert [CPU, MEM, MEM_PER_SLOT] == dataset_content.split('\n'), dataset_content
+
+ @skip_without_tool('create_2')
+ def test_walltime_limit(self):
+ running_response = self.dataset_populator.run_tool(
+ 'create_2',
+ {'sleep_time': 60},
+ self.history_id,
+ assert_ok=False
+ )
+ result = self.dataset_populator.wait_for_tool_run(run_response=running_response,
+ history_id=self.history_id,
+ assert_ok=False).json()
+ details = self.dataset_populator.get_job_details(result['jobs'][0]['id'], full=True).json()
+ assert details['state'] == 'error'
+ hda_details = self.dataset_populator.get_history_dataset_details(self.history_id, assert_ok=False)
+ assert hda_details['misc_info'] == 'Job was active longer than specified deadline'