File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ def test_attribute_values(self, bigip):
5959 fl .exec_cmd ('run' , online = False , offline = False )
6060
6161 def test_exec_cmd (self , bigip ):
62+ fl = bigip .sys .failover .load ()
6263 f = bigip .sys .failover
6364 f .exec_cmd ('run' , offline = True )
64- fl = bigip .sys .failover .load ()
65+ time .sleep (4 )
66+ fl .refresh ()
6567 assert 'Failover forced_offline' in fl .apiRawValues ['apiAnonymous' ]
6668 f .exec_cmd ('run' , offline = False , online = True )
6769 # We need this 2 sec delay as sometimes the status does not change
@@ -71,9 +73,11 @@ def test_exec_cmd(self, bigip):
7173 assert 'Failover active' in fl .apiRawValues ['apiAnonymous' ]
7274
7375 def test_exec_cmd_cmdargs (self , bigip ):
76+ fl = bigip .sys .failover .load ()
7477 f = bigip .sys .failover
7578 f .exec_cmd ('run' , utilCmdArgs = 'offline' )
76- fl = bigip .sys .failover .load ()
79+ time .sleep (4 )
80+ fl .refresh ()
7781 assert 'Failover forced_offline' in fl .apiRawValues ['apiAnonymous' ]
7882 f .exec_cmd ('run' , utilCmdArgs = 'online' )
7983 # We need this 2 sec delay as sometimes the status does not change
You can’t perform that action at this time.
0 commit comments