From e843c0298d44a6891fc0ae897fcff0fa7ef84ba7 Mon Sep 17 00:00:00 2001 From: Alan Malta Rodrigues Date: Wed, 31 Jul 2024 11:33:21 -0400 Subject: [PATCH] fix unit tests for RucioConMon temporarily remove integration tag for unit tests fix RucioConMon unit test --- .../WMCore_t/Services_t/Rucio_t/RucioConMon_t.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/python/WMCore_t/Services_t/Rucio_t/RucioConMon_t.py b/test/python/WMCore_t/Services_t/Rucio_t/RucioConMon_t.py index 77343c42f62..98607cf5992 100644 --- a/test/python/WMCore_t/Services_t/Rucio_t/RucioConMon_t.py +++ b/test/python/WMCore_t/Services_t/Rucio_t/RucioConMon_t.py @@ -8,7 +8,6 @@ import unittest from nose.plugins.attrib import attr - from WMCore.Services.RucioConMon.RucioConMon import RucioConMon @@ -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)