specsuite: Initial test for top-level attribute handling
This commit is contained in:
parent
db04b3dffe
commit
65f9271b86
3
specsuite/tests/structure/attributes/expected.hcl
Normal file
3
specsuite/tests/structure/attributes/expected.hcl
Normal file
@ -0,0 +1,3 @@
|
||||
a = "a value"
|
||||
b = "b value"
|
||||
c = "c value"
|
11
specsuite/tests/structure/attributes/expected.hcldec
Normal file
11
specsuite/tests/structure/attributes/expected.hcldec
Normal file
@ -0,0 +1,11 @@
|
||||
object {
|
||||
attr "a" {
|
||||
type = string
|
||||
}
|
||||
attr "b" {
|
||||
type = string
|
||||
}
|
||||
attr "c" {
|
||||
type = string
|
||||
}
|
||||
}
|
10
specsuite/tests/structure/attributes/expected.t
Normal file
10
specsuite/tests/structure/attributes/expected.t
Normal file
@ -0,0 +1,10 @@
|
||||
result_type = object({
|
||||
a = string
|
||||
b = string
|
||||
c = string
|
||||
})
|
||||
result = {
|
||||
a = "a value"
|
||||
b = "b value"
|
||||
c = "c value"
|
||||
}
|
Loading…
Reference in New Issue
Block a user