github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/api/controller_test.go (about)

     1  package api
     2  
     3  import (
     4  	"github.com/in4it/ecs-deploy/service"
     5  )
     6  
     7  type MockController struct {
     8  	ControllerIf
     9  	runningServices   []service.RunningService
    10  	getServicesOutput []*service.DynamoServicesElement
    11  }
    12  
    13  func (m *MockController) getServices() ([]*service.DynamoServicesElement, error) {
    14  	return m.getServicesOutput, nil
    15  }
    16  func (m *MockController) describeServices() ([]service.RunningService, error) {
    17  	return m.runningServices, nil
    18  }