From 11c12a766851f9ee40c71b45fe704478e513dd8b Mon Sep 17 00:00:00 2001 From: Daniel Banck Date: Fri, 27 Oct 2023 14:05:49 +0200 Subject: [PATCH] Fix test cases --- schema/variable_schema_test.go | 43 ---------------------------------- 1 file changed, 43 deletions(-) diff --git a/schema/variable_schema_test.go b/schema/variable_schema_test.go index 194e97b8..c4639334 100644 --- a/schema/variable_schema_test.go +++ b/schema/variable_schema_test.go @@ -94,49 +94,6 @@ func TestSchemaForVariables(t *testing.T) { }, }}, }, - { - "attribute with type from default value", - map[string]module.Variable{ - "name": { - Description: "name of the module", - Type: cty.DynamicPseudoType, - DefaultValue: cty.StringVal("default"), - }, - "id": { - Description: "id of the module", - Type: cty.NilType, - DefaultValue: cty.NumberIntVal(42), - }, - }, - &schema.BodySchema{Attributes: map[string]*schema.AttributeSchema{ - "name": { - Description: lang.MarkupContent{ - Value: "name of the module", - Kind: lang.PlainTextKind, - }, - IsOptional: true, - Constraint: schema.LiteralType{Type: cty.String}, - OriginForTarget: &schema.PathTarget{ - Address: schema.Address{schema.StaticStep{Name: "var"}, schema.AttrNameStep{}}, - Path: lang.Path{Path: "./local", LanguageID: "terraform"}, - Constraints: schema.Constraints{ScopeId: "variable", Type: cty.String}, - }, - }, - "id": { - Description: lang.MarkupContent{ - Value: "id of the module", - Kind: lang.PlainTextKind, - }, - Constraint: schema.LiteralType{Type: cty.Number}, - IsOptional: true, - OriginForTarget: &schema.PathTarget{ - Address: schema.Address{schema.StaticStep{Name: "var"}, schema.AttrNameStep{}}, - Path: lang.Path{Path: "./local", LanguageID: "terraform"}, - Constraints: schema.Constraints{ScopeId: "variable", Type: cty.Number}, - }, - }, - }}, - }, } modPath := "./local"