Fix test_repositories_operations integration test

Need to use admin key to get updates.
This commit is contained in:
mvdbeek
2019-11-19 09:07:07 +01:00
parent 0cc40d5ed9
commit 31aa2ee8d9
2 changed files with 7 additions and 2 deletions
@@ -78,7 +78,11 @@ class TestRepositoryInstallIntegrationTestCase(integration_util.IntegrationTestC
shed_text = shed_config.read().replace(REVISION_4, REVISION_3)
with open(self._app.config.shed_tool_config_file, 'w') as shed_config:
shed_config.write(shed_text)
self._get('/api/tool_shed_repositories/check_for_updates', data={'id': response['id']}).json()
self._get(
'/api/tool_shed_repositories/check_for_updates',
data={'id': response['id']},
admin=True
).json()
# At this point things should look like there is minor update available
repo_response = self._get("/api/tool_shed_repositories/%s" % response['id']).json()
assert repo_response['tool_shed_status']['revision_update'] == 'True'
+2 -1
View File
@@ -4,10 +4,11 @@ import string
import tempfile
import pytest
from galaxy.util import unicodify
from galaxy_test.base.populators import DEFAULT_TIMEOUT
from galaxy_test.driver.driver_util import FRAMEWORK_UPLOAD_TOOL_CONF
from galaxy.util import unicodify
# Needs a longer timeout because of the conda_auto_install.
CONDA_AUTO_INSTALL_JOB_TIMEOUT = DEFAULT_TIMEOUT * 3