fix: linter
parent
ab94124bab
commit
a18af39da8
|
@ -4,7 +4,6 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"path"
|
"path"
|
||||||
"reflect"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -111,15 +110,6 @@ func runTest(t *testing.T, cases TestCases) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func matchByAttributes(input, attrs map[string]interface{}) bool {
|
|
||||||
for k, v := range attrs {
|
|
||||||
if value, ok := input[k]; !ok || !reflect.DeepEqual(value, v) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestDriftctlRun_BasicBehavior(t *testing.T) {
|
func TestDriftctlRun_BasicBehavior(t *testing.T) {
|
||||||
|
|
||||||
cases := TestCases{
|
cases := TestCases{
|
||||||
|
@ -1591,8 +1581,3 @@ func TestDriftctlRun_TestResourcesNormalization(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSchema(repo dctlresource.SchemaRepositoryInterface, resourceType string) *resource.Schema {
|
|
||||||
sch, _ := repo.GetSchema(resourceType)
|
|
||||||
return sch
|
|
||||||
}
|
|
||||||
|
|
|
@ -260,7 +260,7 @@ func IsResourceTypeSupported(ty string) bool {
|
||||||
|
|
||||||
func GetSupportedTypes() []string {
|
func GetSupportedTypes() []string {
|
||||||
types := make([]string, 0, len(supportedTypes))
|
types := make([]string, 0, len(supportedTypes))
|
||||||
for k, _ := range supportedTypes {
|
for k := range supportedTypes {
|
||||||
types = append(types, k)
|
types = append(types, k)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue