Skip to content

Commit

Permalink
Merge pull request #160 from brianhlin/support-xcache-1.0
Browse files Browse the repository at this point in the history
Support xcache 1.0
  • Loading branch information
matyasselmeci authored Feb 9, 2019
2 parents 7c67817 + 8aec749 commit 1a1b838
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion osgtest/tests/test_155_stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def _setcfg(key, val):
class TestStartStashCache(OSGTestCase):
@core.elrelease(7,8)
def setUp(self):
core.skip_ok_unless_installed("stashcache-origin-server", "stashcache-cache-server", "stashcache-client")
core.skip_ok_unless_installed("stashcache-origin-server",
"stashcache-cache-server",
"stashcache-client",
by_dependency=True)

def test_01_configure(self):
for key, val in [
Expand Down
13 changes: 11 additions & 2 deletions osgtest/tests/test_460_stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,17 @@ def skip_bad_unless_running(self, *services):

@core.elrelease(7,8)
def setUp(self):
core.skip_ok_unless_installed("stashcache-origin-server", "stashcache-cache-server", "stashcache-client")
self.skip_bad_unless_running("xrootd@stashcache-origin-server", "xrootd@stashcache-cache-server")
core.skip_ok_unless_installed("stashcache-origin-server",
"stashcache-cache-server",
"stashcache-client",
by_dependency=True)
if core.rpm_is_installed('xcache'):
origin_service = "xrootd@stash-origin"
cache_service = "xrootd@stash-cache"
else:
origin_service = "xrootd@stashcache-origin-server"
cache_service = "xrootd@stashcache-cache-server"
self.skip_bad_unless_running(origin_service, cache_service)

def test_01_create_files(self):
xrootd_user = pwd.getpwnam("xrootd")
Expand Down
5 changes: 4 additions & 1 deletion osgtest/tests/test_835_stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def _setcfg(key, val):
class TestStopStashCache(OSGTestCase):
@core.elrelease(7,8)
def setUp(self):
core.skip_ok_unless_installed("stashcache-origin-server", "stashcache-cache-server", "stashcache-client")
core.skip_ok_unless_installed("stashcache-origin-server",
"stashcache-cache-server",
"stashcache-client",
by_dependency=True)

def test_01_stop_origin(self):
service.check_stop("xrootd@stashcache-origin-server")
Expand Down

0 comments on commit 1a1b838

Please sign in to comment.