fix tests

This commit is contained in:
wh1te909
2022-08-09 21:35:23 +00:00
parent acc23ea7bb
commit 66bbcf0733

View File

@@ -84,7 +84,7 @@ class TestAgentUpdate(TacticalTestCase):
site=self.site1, site=self.site1,
monitoring_type=AgentMonType.SERVER, monitoring_type=AgentMonType.SERVER,
plat=AgentPlat.WINDOWS, plat=AgentPlat.WINDOWS,
version="2.3.0", version="2.1.1",
) )
r = agent_noarch.do_update(token="", force=True) r = agent_noarch.do_update(token="", force=True)
self.assertEqual(r, "noarch") self.assertEqual(r, "noarch")
@@ -106,7 +106,7 @@ class TestAgentUpdate(TacticalTestCase):
site=self.site1, site=self.site1,
monitoring_type=AgentMonType.SERVER, monitoring_type=AgentMonType.SERVER,
plat=AgentPlat.WINDOWS, plat=AgentPlat.WINDOWS,
version="2.3.0", version="2.1.1",
goarch=GoArch.AMD64, goarch=GoArch.AMD64,
) )
@@ -115,7 +115,7 @@ class TestAgentUpdate(TacticalTestCase):
site=self.site3, site=self.site3,
monitoring_type=AgentMonType.WORKSTATION, monitoring_type=AgentMonType.WORKSTATION,
plat=AgentPlat.LINUX, plat=AgentPlat.LINUX,
version="2.3.0", version="2.1.1",
goarch=GoArch.ARM32, goarch=GoArch.ARM32,
) )
@@ -193,7 +193,7 @@ class TestAgentUpdate(TacticalTestCase):
site=self.site2, site=self.site2,
monitoring_type=AgentMonType.SERVER, monitoring_type=AgentMonType.SERVER,
plat=AgentPlat.WINDOWS, plat=AgentPlat.WINDOWS,
version="2.3.0", version="2.1.1",
goarch=GoArch.AMD64, goarch=GoArch.AMD64,
_quantity=6, _quantity=6,
) )
@@ -215,7 +215,7 @@ class TestAgentUpdate(TacticalTestCase):
site=self.site2, site=self.site2,
monitoring_type=AgentMonType.SERVER, monitoring_type=AgentMonType.SERVER,
plat=AgentPlat.WINDOWS, plat=AgentPlat.WINDOWS,
version="2.3.0", version="2.1.1",
goarch=GoArch.AMD64, goarch=GoArch.AMD64,
_quantity=7, _quantity=7,
) )