~rogpeppe/juju-core/050-juju-provisioning-service

« back to all changes in this revision

Viewing changes to cmd/jujud/provisioning_test.go

  • Committer: Roger Peppe
  • Date: 2012-09-07 10:11:04 UTC
  • Revision ID: roger.peppe@canonical.com-20120907101104-v09v03081ndq8en8
state: add AddAgentService; cmd/jujud: add provisioning agent setup

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        op := make(chan dummy.Operation, 200)
34
34
        dummy.Listen(op)
35
35
 
36
 
        charm := s.AddTestingCharm(c, "dummy")
37
 
        psvc, err := s.Conn.AddService("juju_provisioning", charm)
 
36
        psvc, err := s.Conn.State.AddAgentService("provisioning")
38
37
        c.Assert(err, IsNil)
39
38
        punits, err := s.Conn.AddUnits(psvc, 1)
40
39
        a := &ProvisioningAgent{
55
54
 
56
55
        // Add one unit to a service; it should get allocated a machine
57
56
        // and then its ports should be opened.
 
57
        charm := s.AddTestingCharm(c, "dummy")
58
58
        svc, err := s.Conn.AddService("test-service", charm)
59
59
        c.Assert(err, IsNil)
60
60
        err = svc.SetExposed()