-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test to make sure built-in rules can be loaded
- Loading branch information
Larry Hitchon
committed
Apr 14, 2018
1 parent
fa7d283
commit d150611
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestLoadTerraformRules(t *testing.T) { | ||
_, err := loadBuiltInRuleSet("assets/terraform.yml") | ||
if err != nil { | ||
t.Errorf("Cannot load built-in Terraform rules") | ||
} | ||
} | ||
|
||
func TestLoadValidateRules(t *testing.T) { | ||
_, err := loadBuiltInRuleSet("assets/lint-rules.yml") | ||
if err != nil { | ||
t.Errorf("Cannot load built-in rules for -validate option") | ||
} | ||
} |