Skip to content

Commit

Permalink
Advance the round when starting a process multiple times in eeagent test
Browse files Browse the repository at this point in the history
  • Loading branch information
oldpatricka committed Jun 21, 2013
1 parent a890383 commit f416419
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ion/agents/cei/test/test_eeagent.py
Expand Up @@ -628,6 +628,7 @@ def test_download_code(self):
assert "Unable to download" in response.result

parameters = {'name': proc_name, 'module': module, 'module_uri': module_uri, 'cls': cls}
round += 1
self.eea_client.launch_process(u_pid, round, run_type, parameters)

self.wait_for_state(u_pid, [500, 'RUNNING'])
Expand Down Expand Up @@ -665,6 +666,7 @@ def test_whitelist(self):
# Test no whitelist
self._enable_code_download()

round += 1
response = self.eea_client.launch_process(u_pid, round, run_type, parameters)

print response
Expand All @@ -674,6 +676,7 @@ def test_whitelist(self):
# Test not matching
self._enable_code_download(whitelist=['blork'])

round += 1
response = self.eea_client.launch_process(u_pid, round, run_type, parameters)

assert response.status == 401
Expand All @@ -682,6 +685,7 @@ def test_whitelist(self):
# Test exact matching
self._enable_code_download(whitelist=['localhost'])

round += 1
response = self.eea_client.launch_process(u_pid, round, run_type, parameters)

self.wait_for_state(u_pid, [500, 'RUNNING'])
Expand All @@ -693,6 +697,7 @@ def test_whitelist(self):
# Test wildcard
self._enable_code_download(whitelist=['*'])

round += 1
response = self.eea_client.launch_process(u_pid, round, run_type, parameters)

self.wait_for_state(u_pid, [500, 'RUNNING'])
Expand Down

0 comments on commit f416419

Please sign in to comment.