Skip to content

Commit

Permalink
fix unit tests for RucioConMon
Browse files Browse the repository at this point in the history
temporarily remove integration tag for unit tests

fix RucioConMon unit test
  • Loading branch information
amaltaro committed Aug 27, 2024
1 parent 97e5b4c commit e843c02
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/python/WMCore_t/Services_t/Rucio_t/RucioConMon_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import unittest

from nose.plugins.attrib import attr

from WMCore.Services.RucioConMon.RucioConMon import RucioConMon


Expand All @@ -17,17 +16,17 @@ class RucioConMonTest(unittest.TestCase):
Unit tests for RucioConMon Service module
"""

@attr("integration")
# @attr("integration")
def testGetRSEUnmerged(self):
"""
Test getRSEUnmerged method using both zipped and unzipped requests
This test uses specific rse name which can be changed to any other RSE.
"""
# url = "https://cmsweb.cern.ch/rucioconmon/WM/files?rse=T2_TR_METU&format=raw"
mgr = RucioConMon("https://cmsweb.cern.ch/rucioconmon")
rseName = "T2_TR_METU"
dataUnzipped = mgr.getRSEUnmerged(rseName, zipped=False)
dataZipped = mgr.getRSEUnmerged(rseName, zipped=True)
mgr = RucioConMon("https://cmsweb.cern.ch/rucioconmon/unmerged")
rseName = "T2_RU_ITEP"
dataUnzipped = [item for item in mgr.getRSEUnmerged(rseName, zipped=False)]
dataZipped = [item for item in mgr.getRSEUnmerged(rseName, zipped=True)]
self.assertTrue(dataUnzipped == dataZipped)


Expand Down

0 comments on commit e843c02

Please sign in to comment.