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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/resource/cmd/upload_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:
89
89
        info := command.Info()
90
90
 
91
91
        c.Check(info, jc.DeepEquals, &jujucmd.Info{
92
 
                Name:    "push-resource",
 
92
                Name:    "attach",
93
93
                Args:    "service name=file",
94
94
                Purpose: "upload a file as a resource for a service",
95
95
                Doc: `
126
126
                "Close",
127
127
        )
128
128
        s.stub.CheckCall(c, 1, "OpenResource", "bar")
129
 
        s.stub.CheckCall(c, 2, "Upload", "svc", "foo", file)
 
129
        s.stub.CheckCall(c, 2, "Upload", "svc", "foo", "bar", file)
130
130
}
131
131
 
132
132
type stubUploadDeps struct {