github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/actor/v7pushaction/actor_test.go (about)

     1  package v7pushaction_test
     2  
     3  import (
     4  	. "code.cloudfoundry.org/cli/actor/v7pushaction"
     5  	"code.cloudfoundry.org/cli/cf/util/testhelpers/matchers"
     6  	. "github.com/onsi/ginkgo"
     7  	. "github.com/onsi/gomega"
     8  )
     9  
    10  var _ = Describe("Actor", func() {
    11  	var (
    12  		actor *Actor
    13  	)
    14  
    15  	BeforeEach(func() {
    16  		actor, _, _ = getTestPushActor()
    17  	})
    18  
    19  	Describe("PreparePushPlanSequence", func() {
    20  		It("is a list of functions for preparing the push plan", func() {
    21  			Expect(actor.PreparePushPlanSequence).To(matchers.MatchFuncsByName(
    22  				SetDefaultBitsPathForPushPlan,
    23  				SetupDropletPathForPushPlan,
    24  				actor.SetupAllResourcesForPushPlan,
    25  				SetupDeploymentStrategyForPushPlan,
    26  				SetupNoStartForPushPlan,
    27  				SetupNoWaitForPushPlan,
    28  				SetupTaskAppForPushPlan,
    29  			))
    30  		})
    31  	})
    32  })