github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/core/cache/application_test.go (about)

     1  // Copyright 2018 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  package cache_test
     4  
     5  import (
     6  	gc "gopkg.in/check.v1"
     7  
     8  	"github.com/juju/juju/core/cache"
     9  	"github.com/juju/juju/core/constraints"
    10  	"github.com/juju/juju/core/life"
    11  	"github.com/juju/juju/core/status"
    12  )
    13  
    14  type ApplicationSuite struct {
    15  	entitySuite
    16  }
    17  
    18  var _ = gc.Suite(&ApplicationSuite{})
    19  
    20  func (s *ApplicationSuite) SetUpTest(c *gc.C) {
    21  	s.entitySuite.SetUpTest(c)
    22  }
    23  
    24  var appChange = cache.ApplicationChange{
    25  	ModelUUID:   "model-uuid",
    26  	Name:        "application-name",
    27  	Exposed:     false,
    28  	CharmURL:    "www.charm-url.com",
    29  	Life:        life.Alive,
    30  	MinUnits:    0,
    31  	Constraints: constraints.Value{},
    32  	Config: map[string]interface{}{
    33  		"key":     "value",
    34  		"another": "foo",
    35  	},
    36  	Subordinate:     false,
    37  	Status:          status.StatusInfo{Status: status.Active},
    38  	WorkloadVersion: "666",
    39  }