- Fix tests to not hit remote Redis endpoint
- Fix convert organization to allow admin email address, in addition to username - Add test for the above
This commit is contained in:
parent
3ebdf2c062
commit
b0c4f5b2f5
4 changed files with 32 additions and 10 deletions
|
@ -42,11 +42,12 @@ class TestBuildLogs(RedisBuildLogs):
|
|||
'pull_completion': 0.0,
|
||||
}
|
||||
|
||||
def __init__(self, redis_host, namespace, repository, test_build_id):
|
||||
def __init__(self, redis_host, namespace, repository, test_build_id, allow_delegate=True):
|
||||
super(TestBuildLogs, self).__init__(redis_host)
|
||||
self.namespace = namespace
|
||||
self.repository = repository
|
||||
self.test_build_id = test_build_id
|
||||
self.allow_delegate = allow_delegate
|
||||
self.remaining_script = self._generate_script()
|
||||
logger.debug('Total script size: %s', len(self.remaining_script))
|
||||
self._logs = []
|
||||
|
@ -188,5 +189,7 @@ class TestBuildLogs(RedisBuildLogs):
|
|||
returnable_status = self._last_status
|
||||
self._last_status = self._status
|
||||
return returnable_status
|
||||
elif not self.allow_delegate:
|
||||
return None
|
||||
else:
|
||||
return super(TestBuildLogs, self).get_status(build_id)
|
||||
|
|
Reference in a new issue