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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/lxd/environ_policy_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:
6
6
package lxd_test
7
7
 
8
8
import (
9
 
        "sort"
10
9
        "strings"
11
10
 
12
11
        jc "github.com/juju/testing/checkers"
120
119
                "instance-type=some-type",
121
120
                "cpu-cores=2",
122
121
                "cpu-power=250",
 
122
                "virt-type=kvm",
123
123
        }, " "))
124
124
        unsupported, err := validator.Validate(cons)
125
125
        c.Assert(err, jc.ErrorIsNil)
129
129
                "instance-type",
130
130
                "cpu-cores",
131
131
                "cpu-power",
 
132
                "virt-type",
132
133
        }
133
 
        sort.Strings(expected)
134
 
        sort.Strings(unsupported)
135
 
        c.Check(unsupported, jc.DeepEquals, expected)
 
134
        c.Check(unsupported, jc.SameContents, expected)
136
135
}
137
136
 
138
137
func (s *environPolSuite) TestConstraintsValidatorVocabArchKnown(c *gc.C) {