func (suite *InteractiveCommandsTestSuite) TestExecuteWithoutCommands() {
	suite.mockIohandler.On("SetExitCode", 1).Return(nil)
	suite.mockIohandler.On("SetStatus", contracts.ResultStatusFailed).Return()

	sessionPluginResultOutput := mgsContracts.SessionPluginResultOutput{}
	sessionPluginResultOutput.Output = fmt.Sprintf("Commands cannot be empty for session type %s", suite.plugin.name())
	suite.mockIohandler.On("SetOutput", sessionPluginResultOutput).Return()

	suite.plugin.Execute(suite.mockContext,
		contracts.Configuration{},
		suite.mockCancelFlag,
		suite.mockIohandler,
		suite.mockDataChannel)

	suite.mockIohandler.AssertExpectations(suite.T())
}
// Testing Execute without properties section in the input.
Testing Execute without properties section in the input.
// Testing Execute without properties section in the input .
func (suite *InteractiveCommandsTestSuite) TestExecuteWithoutCommands() {
	suite.mockIohandler.On("SetExitCode", 1).Return(nil)
	suite.mockIohandler.On("SetStatus", contracts.ResultStatusFailed).Return()
	sessionPluginResultOutput := mgsContracts.SessionPluginResultOutput{}
	sessionPluginResultOutput.Output = fmt.Sprintf("Commands cannot be empty for session type %s", suite.plugin.name())
	suite.mockIohandler.On("SetOutput", sessionPluginResultOutput).Return()
	suite.plugin.Execute(suite.mockContext,
		contracts.Configuration{},
		suite.mockCancelFlag,
		suite.mockIohandler,
		suite.mockDataChannel)
	suite.mockIohandler.AssertExpectations(suite.T())
}
func ( suite * InteractiveCommandsTestSuite ) TestExecuteWithoutCommands ( ) { suite . mockIohandler . On ( " " , 1 ) . Return ( nil ) suite . mockIohandler . On ( " " , contracts . ResultStatusFailed ) . Return ( ) sessionPluginResultOutput := mgsContracts . SessionPluginResultOutput { } sessionPluginResultOutput . Output = fmt . Sprintf ( " " , suite . plugin . name ( ) ) suite . mockIohandler . On ( " " , sessionPluginResultOutput ) . Return ( ) suite . plugin . Execute ( suite . mockContext , contracts . Configuration { } , suite . mockCancelFlag , suite . mockIohandler , suite . mockDataChannel ) suite . mockIohandler . AssertExpectations ( suite . T ( ) ) }
Testing Execute without properties section in the input.
Testing Execute without properties section in the input .