File tree Expand file tree Collapse file tree
test/integration/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,25 +96,25 @@ def setUpClass(cls):
9696 raise Exception ("Warning: Exception in setup : %s" % e )
9797 return
9898
99- @ classmethod
100- def RestartServers (cls ):
99+
100+ def RestartServers (self ):
101101 """ Restart management server and usage server """
102102
103103 sshClient = SshClient (
104- cls .mgtSvrDetails ["mgtSvrIp" ],
104+ self .mgtSvrDetails ["mgtSvrIp" ],
105105 22 ,
106- cls .mgtSvrDetails ["user" ],
107- cls .mgtSvrDetails ["passwd" ]
106+ self .mgtSvrDetails ["user" ],
107+ self .mgtSvrDetails ["passwd" ]
108108 )
109109 command = "service cloudstack-management restart"
110110 sshClient .execute (command )
111111 return
112- @ classmethod
113- def updateConfigurAndRestart (cls ,name , value ):
114- Configurations .update (cls .api_client ,
112+
113+ def updateConfigurAndRestart (self ,name , value ):
114+ Configurations .update (self .api_client ,
115115 name ,value )
116- cls .RestartServers ()
117- time .sleep (cls .services ["sleep" ])
116+ self .RestartServers ()
117+ time .sleep (self .services ["sleep" ])
118118
119119
120120 def setUp (self ):
You can’t perform that action at this time.
0 commit comments