~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/conn_test.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
// AddMetaCharm clones a testing charm, replaces its metadata with the
95
95
// given YAML string and adds it to the state, using the given revision.
96
 
func (s *ConnSuite) AddMetaCharm(c *gc.C, name, metaYaml string, revsion int) *state.Charm {
97
 
        return state.AddCustomCharm(c, s.State, name, "metadata.yaml", metaYaml, "quantal", revsion)
 
96
func (s *ConnSuite) AddMetaCharm(c *gc.C, name, metaYaml string, revision int) *state.Charm {
 
97
        return state.AddCustomCharm(c, s.State, name, "metadata.yaml", metaYaml, "quantal", revision)
98
98
}
99
99
 
100
100
// AddMetricsCharm clones a testing charm, replaces its metrics declaration with the
101
101
// given YAML string and adds it to the state, using the given revision.
102
 
func (s *ConnSuite) AddMetricsCharm(c *gc.C, name, metricsYaml string, revsion int) *state.Charm {
103
 
        return state.AddCustomCharm(c, s.State, name, "metrics.yaml", metricsYaml, "quantal", revsion)
 
102
func (s *ConnSuite) AddMetricsCharm(c *gc.C, name, metricsYaml string, revision int) *state.Charm {
 
103
        return state.AddCustomCharm(c, s.State, name, "metrics.yaml", metricsYaml, "quantal", revision)
104
104
}
105
105
 
106
106
// NewStateForModelNamed returns an new model with the given modelName, which