github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formationtemplateconstraintreferences/fixtures_test.go (about)

     1  package formationtemplateconstraintreferences_test
     2  
     3  import (
     4  	"github.com/kyma-incubator/compass/components/director/internal/domain/formationtemplateconstraintreferences"
     5  	"github.com/kyma-incubator/compass/components/director/internal/domain/formationtemplateconstraintreferences/automock"
     6  	"github.com/kyma-incubator/compass/components/director/internal/model"
     7  	"github.com/kyma-incubator/compass/components/director/pkg/graphql"
     8  )
     9  
    10  const (
    11  	constraintID     = "constraint_id"
    12  	templateID       = "template_id"
    13  	templateIDSecond = "template_id_2"
    14  )
    15  
    16  func fixColumns() []string {
    17  	return []string{"formation_template_id", "formation_constraint_id"}
    18  }
    19  
    20  var (
    21  	gqlConstraintReference = &graphql.ConstraintReference{
    22  		ConstraintID:        constraintID,
    23  		FormationTemplateID: templateID,
    24  	}
    25  	constraintReference = &model.FormationTemplateConstraintReference{
    26  		ConstraintID:        constraintID,
    27  		FormationTemplateID: templateID,
    28  	}
    29  	nilModel *model.FormationTemplateConstraintReference
    30  	entity   = &formationtemplateconstraintreferences.Entity{
    31  		ConstraintID:        constraintID,
    32  		FormationTemplateID: templateID,
    33  	}
    34  )
    35  
    36  func unusedConstraintReferenceService() *automock.ConstraintReferenceService {
    37  	return &automock.ConstraintReferenceService{}
    38  }
    39  
    40  func unusedConstraintReferenceConverter() *automock.ConstraintReferenceConverter {
    41  	return &automock.ConstraintReferenceConverter{}
    42  }