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

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/environs/imagemetadata/simplestreams_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-03 09:22:46 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20140203092246-e03vg402vztzo4qa
Tags: 1.17.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
                Series: []string{"precise"},
286
286
                Arches: []string{"amd64"},
287
287
        })
288
 
        ids, err := imageConstraint.Ids()
289
 
        c.Assert(err, gc.IsNil)
290
 
        c.Assert(ids, gc.DeepEquals, []string{"com.ubuntu.cloud:server:12.04:amd64"})
 
288
        for _, stream := range []string{"", "released"} {
 
289
                imageConstraint.Stream = stream
 
290
                ids, err := imageConstraint.Ids()
 
291
                c.Assert(err, gc.IsNil)
 
292
                c.Assert(ids, gc.DeepEquals, []string{"com.ubuntu.cloud:server:12.04:amd64"})
 
293
        }
291
294
}
292
295
 
293
296
func (s *productSpecSuite) TestId(c *gc.C) {