Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Nov 1, 2023
1 parent 492821f commit 11c12a7
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions schema/variable_schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 11c12a7

Please sign in to comment.