~ubuntu-branches/ubuntu/saucy/juju-core/saucy-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/cmd/juju/destroyrelation_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-07-11 17:18:27 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130711171827-vjqkg40r0dlf7ys2
Tags: 1.11.2-0ubuntu1
* New upstream release.
* Make juju-core the default juju (LP: #1190634):
  - d/control: Add virtual package juju -> juju-core.
  - d/juju-core.postinst.in: Bump priority of alternatives over that of
    python juju packages.
* Enable for all architectures (LP: #1172505):
  - d/control: Version BD on golang-go to >= 2:1.1.1 to ensure CGO
    support for non-x86 archs, make juju-core Arch: any.
  - d/README.source: Dropped - no longer required.
* d/watch: Updated for new upstream tarball naming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2012, 2013 Canonical Ltd.
 
2
// Licensed under the AGPLv3, see LICENCE file for details.
 
3
 
1
4
package main
2
5
 
3
6
import (
4
7
        . "launchpad.net/gocheck"
 
8
        jujutesting "launchpad.net/juju-core/juju/testing"
5
9
        "launchpad.net/juju-core/testing"
6
10
)
7
11
 
8
12
type DestroyRelationSuite struct {
9
 
        repoSuite
 
13
        jujutesting.RepoSuite
10
14
}
11
15
 
12
16
var _ = Suite(&DestroyRelationSuite{})
17
21
}
18
22
 
19
23
func (s *DestroyRelationSuite) TestDestroyRelation(c *C) {
20
 
        testing.Charms.BundlePath(s.seriesPath, "riak")
 
24
        testing.Charms.BundlePath(s.SeriesPath, "riak")
21
25
        err := runDeploy(c, "local:riak", "riak")
22
26
        c.Assert(err, IsNil)
23
 
        testing.Charms.BundlePath(s.seriesPath, "logging")
 
27
        testing.Charms.BundlePath(s.SeriesPath, "logging")
24
28
        err = runDeploy(c, "local:logging", "logging")
25
29
        c.Assert(err, IsNil)
26
30
        runAddRelation(c, "riak", "logging")