mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	simulator manager impl changes to handle SetMonitorServiceCommand This fixes some of the test cases in the integration test test_assign_vm.py when run against a simulator
Signed-off-by: Koushik Das <koushik@apache.org>
This commit is contained in:
		
							parent
							
								
									acfdd519be
								
							
						
					
					
						commit
						07365c3dab
					
				| @ -25,6 +25,7 @@ import javax.ejb.Local; | ||||
| import javax.inject.Inject; | ||||
| import javax.naming.ConfigurationException; | ||||
| 
 | ||||
| import com.cloud.agent.api.routing.SetMonitorServiceCommand; | ||||
| import org.apache.log4j.Logger; | ||||
| import org.springframework.stereotype.Component; | ||||
| 
 | ||||
| @ -367,8 +368,8 @@ public class SimulatorManagerImpl extends ManagerBase implements SimulatorManage | ||||
|             } else if (cmd instanceof PvlanSetupCommand) { | ||||
|                 return _mockNetworkMgr.setupPVLAN((PvlanSetupCommand)cmd); | ||||
|             } else if (cmd instanceof StorageSubSystemCommand) { | ||||
|                 return this.storageHandler.handleStorageCommands((StorageSubSystemCommand) cmd); | ||||
|             } else if (cmd instanceof VpnUsersCfgCommand || cmd instanceof RemoteAccessVpnCfgCommand) { | ||||
|                 return this.storageHandler.handleStorageCommands((StorageSubSystemCommand)cmd); | ||||
|             } else if (cmd instanceof VpnUsersCfgCommand || cmd instanceof RemoteAccessVpnCfgCommand || cmd instanceof SetMonitorServiceCommand) { | ||||
|                 return new Answer(cmd); | ||||
|             } else { | ||||
|                 s_logger.error("Simulator does not implement command of type " + cmd.toString()); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user