From 433c0f60d4d402b580daccd38d741c5db12aa1c1 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Wed, 6 Nov 2024 10:48:09 +0100 Subject: [PATCH] Fix tests --- test/integration/TestIM.py | 2 +- test/integration/TestREST.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/TestIM.py b/test/integration/TestIM.py index 73e37933..1b937d36 100755 --- a/test/integration/TestIM.py +++ b/test/integration/TestIM.py @@ -513,7 +513,7 @@ def test_45_stats(self): (success, res) = self.server.GetStats(None, None, self.auth_data) self.assertTrue( success, msg="ERROR calling GetStats: " + str(res)) - self.assertEqual(len(res), 1, msg="ERROR getting stats: Incorrect number of infrastructures") + self.assertEqual(len(res), 3, msg="ERROR getting stats: Incorrect number of infrastructures") def test_50_destroy(self): """ diff --git a/test/integration/TestREST.py b/test/integration/TestREST.py index 4076b873..96aad6e4 100755 --- a/test/integration/TestREST.py +++ b/test/integration/TestREST.py @@ -367,7 +367,7 @@ def test_58_stats(self): resp = self.create_request("GET", "/stats") self.assertEqual(resp.status_code, 200, msg="ERROR getting stats:" + resp.text) stats = resp.json()["stats"] - self.assertEqual(len(stats), 1, msg="Incorrect number of stats: " + resp.text) + self.assertEqual(len(stats), 2, msg="Incorrect number of stats: " + resp.text) def test_60_stop(self): time.sleep(10)