Test that Fixers and FixerOrder are equal length
Signed-off-by: Brendan Devenney <brendan.devenney@form3.tech>
This commit is contained in:
parent
556492fb0d
commit
9f0bc29db5
|
@ -1,6 +1,7 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/hashicorp/packer/fix"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -61,3 +62,12 @@ func TestFix_invalidTemplateDisableValidation(t *testing.T) {
|
||||||
fatalCommand(t, c.Meta)
|
fatalCommand(t, c.Meta)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestFix_allFixersEnabled(t *testing.T) {
|
||||||
|
f := fix.Fixers
|
||||||
|
o := fix.FixerOrder
|
||||||
|
|
||||||
|
if len(f) != len(o) {
|
||||||
|
t.Fatalf("Fixers length (%d) does not match FixerOrder length (%d)", len(f), len(o))
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue