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)
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)
106
106
// NewStateForModelNamed returns an new model with the given modelName, which