Skip to content

Commit 3a67351

Browse files
committed
Update testdata
1 parent b8a5b77 commit 3a67351

15 files changed

+166
-148
lines changed

cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_generic_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RenderedProviderName: terraform-provider-scaffolding
4949
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
5050
## Schema
5151

52-
### Optional
52+
### Optional Attributes
5353

5454
- `configurable_attribute` (String) Example configurable attribute
5555

@@ -102,7 +102,7 @@ RenderedProviderName: terraform-provider-scaffolding
102102
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
103103
## Schema
104104

105-
### Optional
105+
### Optional Attributes
106106

107107
- `endpoint` (String) Example provider attribute
108108

@@ -149,7 +149,7 @@ RenderedProviderName: terraform-provider-scaffolding
149149
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
150150
## Schema
151151

152-
### Optional
152+
### Optional Attributes
153153

154154
- `configurable_attribute` (String) Example configurable attribute
155155
- `defaulted` (String) Example configurable attribute with default value

cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_named_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ RenderedProviderName: terraform-provider-scaffolding
4949
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
5050
## Schema
5151

52-
### Optional
52+
### Optional Attributes
5353

5454
- `configurable_attribute` (String) Example configurable attribute
5555

@@ -102,7 +102,7 @@ RenderedProviderName: terraform-provider-scaffolding
102102
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
103103
## Schema
104104

105-
### Optional
105+
### Optional Attributes
106106

107107
- `endpoint` (String) Example provider attribute
108108

@@ -149,7 +149,7 @@ RenderedProviderName: terraform-provider-scaffolding
149149
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
150150
## Schema
151151

152-
### Optional
152+
### Optional Attributes
153153

154154
- `configurable_attribute` (String) Example configurable attribute
155155
- `defaulted` (String) Example configurable attribute with default value

cmd/tfplugindocs/testdata/scripts/provider-build/generate/framework_provider_success_no_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ data "scaffolding_example" "example" {
5656
<!-- schema generated by tfplugindocs -->
5757
## Schema
5858

59-
### Optional
59+
### Optional Attributes
6060

6161
- `configurable_attribute` (String) Example configurable attribute
6262

@@ -87,7 +87,7 @@ provider "scaffolding" {
8787
<!-- schema generated by tfplugindocs -->
8888
## Schema
8989

90-
### Optional
90+
### Optional Attributes
9191

9292
- `endpoint` (String) Example provider attribute
9393
-- expected-resource.md --
@@ -114,7 +114,7 @@ resource "scaffolding_example" "example" {
114114
<!-- schema generated by tfplugindocs -->
115115
## Schema
116116

117-
### Optional
117+
### Optional Attributes
118118

119119
- `configurable_attribute` (String) Example configurable attribute
120120
- `defaulted` (String) Example configurable attribute with default value

cmd/tfplugindocs/testdata/scripts/provider-build/generate/null_provider_success.txtar

+6-6
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class MyConvertedCode(TerraformStack):
228228
<!-- schema generated by tfplugindocs -->
229229
## Schema
230230

231-
### Optional
231+
### Optional Attributes
232232

233233
- `has_computed_default` (String) If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use.
234234
- `inputs` (Map of String) A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.
@@ -339,7 +339,7 @@ class MyConvertedCode(TerraformStack):
339339
<!-- schema generated by tfplugindocs -->
340340
## Schema
341341

342-
### Optional
342+
### Optional Attributes
343343

344344
- `triggers` (Map of String) A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
345345

@@ -456,7 +456,7 @@ class MyConvertedCode extends TerraformStack {
456456
<!-- schema generated by tfplugindocs -->
457457
## Schema
458458

459-
### Optional
459+
### Optional Attributes
460460

461461
- `hasComputedDefault` (String) If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use.
462462
- `inputs` (Map of String) A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.
@@ -577,7 +577,7 @@ class MyConvertedCode extends TerraformStack {
577577
<!-- schema generated by tfplugindocs -->
578578
## Schema
579579

580-
### Optional
580+
### Optional Attributes
581581

582582
- `triggers` (Map of String) A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
583583

@@ -663,7 +663,7 @@ output "all_server_ips" {
663663
<!-- schema generated by tfplugindocs -->
664664
## Schema
665665

666-
### Optional
666+
### Optional Attributes
667667

668668
- `has_computed_default` (String) If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use.
669669
- `inputs` (Map of String) A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.
@@ -758,7 +758,7 @@ resource "null_resource" "cluster" {
758758
<!-- schema generated by tfplugindocs -->
759759
## Schema
760760

761-
### Optional
761+
### Optional Attributes
762762

763763
- `triggers` (Map of String) A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
764764

cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_all_framework_types.txtar

+45-39
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Example provider
4545
<!-- schema generated by tfplugindocs -->
4646
## Schema
4747

48-
### Optional
48+
### Optional Attributes
4949

5050
- `endpoint` (String) Example provider attribute
5151
-- expected-resource.md --
@@ -66,14 +66,12 @@ example resource
6666
<!-- schema generated by tfplugindocs -->
6767
## Schema
6868

69-
### Optional
69+
### Optional Attributes
7070

7171
- `bool_attribute` (Boolean) example bool attribute
7272
- `float64_attribute` (Number) example float64 attribute
7373
- `int64_attribute` (Number) example int64 attribute
7474
- `list_attribute` (List of String) example list attribute
75-
- `list_nested_block` (Block List) example list nested block (see [below for nested schema](#nestedblock--list_nested_block))
76-
- `list_nested_block_sensitive_nested_attribute` (Block List) (see [below for nested schema](#nestedblock--list_nested_block_sensitive_nested_attribute))
7775
- `map_attribute` (Map of String) example map attribute
7876
- `number_attribute` (Number) example number attribute
7977
- `object_attribute` (Object) example object attribute (see [below for nested schema](#nestedatt--object_attribute))
@@ -88,63 +86,41 @@ example resource
8886
- `sensitive_set_attribute` (Set of String, Sensitive) example sensitive set attribute
8987
- `sensitive_string_attribute` (String, Sensitive) example sensitive string attribute
9088
- `set_attribute` (Set of String) example set attribute
89+
- `string_attribute` (String) example string attribute
90+
91+
### Blocks
92+
93+
- `list_nested_block` (Block List) example list nested block (see [below for nested schema](#nestedblock--list_nested_block))
94+
- `list_nested_block_sensitive_nested_attribute` (Block List) (see [below for nested schema](#nestedblock--list_nested_block_sensitive_nested_attribute))
9195
- `set_nested_block` (Block Set) example set nested block (see [below for nested schema](#nestedblock--set_nested_block))
9296
- `single_nested_block` (Block, Optional) example single nested block (see [below for nested schema](#nestedblock--single_nested_block))
9397
- `single_nested_block_sensitive_nested_attribute` (Block, Optional) example sensitive single nested block (see [below for nested schema](#nestedblock--single_nested_block_sensitive_nested_attribute))
94-
- `string_attribute` (String) example string attribute
9598

9699
### Read-Only
97100

98101
- `id` (String) The ID of this resource.
99102
- `set_nested_block_sensitive_nested_attribute` (Block Set) example sensitive set nested block (see [below for nested schema](#nestedblock--set_nested_block_sensitive_nested_attribute))
100103

101-
<a id="nestedblock--list_nested_block"></a>
102-
### Nested Schema for `list_nested_block`
103-
104-
Optional:
105-
106-
- `list_nested_block_attribute` (String) example list nested block attribute
107-
- `list_nested_block_attribute_with_default` (String) example list nested block attribute with default
108-
- `nested_list_block` (Block List) (see [below for nested schema](#nestedblock--list_nested_block--nested_list_block))
109-
110-
<a id="nestedblock--list_nested_block--nested_list_block"></a>
111-
### Nested Schema for `list_nested_block.nested_list_block`
112-
113-
Optional:
114-
115-
- `nested_block_string_attribute` (String) example nested block string attribute
116-
117-
118-
119-
<a id="nestedblock--list_nested_block_sensitive_nested_attribute"></a>
120-
### Nested Schema for `list_nested_block_sensitive_nested_attribute`
121-
122-
Optional:
123-
124-
- `list_nested_block_attribute` (String) example list nested block attribute
125-
- `list_nested_block_sensitive_attribute` (String, Sensitive) example sensitive list nested block attribute
126-
127-
128104
<a id="nestedatt--object_attribute"></a>
129105
### Nested Schema for `object_attribute`
130106

131-
Optional:
107+
Optional Attributes:
132108

133109
- `object_attribute_attribute` (String)
134110

135111

136112
<a id="nestedatt--object_attribute_with_nested_object_attribute"></a>
137113
### Nested Schema for `object_attribute_with_nested_object_attribute`
138114

139-
Optional:
115+
Optional Attributes:
140116

141117
- `nested_object` (Object) (see [below for nested schema](#nestedobjatt--object_attribute_with_nested_object_attribute--nested_object))
142118
- `object_attribute_attribute` (String)
143119

144120
<a id="nestedobjatt--object_attribute_with_nested_object_attribute--nested_object"></a>
145121
### Nested Schema for `object_attribute_with_nested_object_attribute.nested_object`
146122

147-
Optional:
123+
Optional Attributes:
148124

149125
- `nested_object_attribute` (String)
150126

@@ -153,31 +129,61 @@ Optional:
153129
<a id="nestedatt--sensitive_object_attribute"></a>
154130
### Nested Schema for `sensitive_object_attribute`
155131

156-
Optional:
132+
Optional Attributes:
157133

158134
- `object_attribute_attribute` (String)
159135

160136

137+
<a id="nestedblock--list_nested_block"></a>
138+
### Nested Schema for `list_nested_block`
139+
140+
Optional Attributes:
141+
142+
- `list_nested_block_attribute` (String) example list nested block attribute
143+
- `list_nested_block_attribute_with_default` (String) example list nested block attribute with default
144+
145+
Blocks:
146+
147+
- `nested_list_block` (Block List) (see [below for nested schema](#nestedblock--list_nested_block--nested_list_block))
148+
149+
<a id="nestedblock--list_nested_block--nested_list_block"></a>
150+
### Nested Schema for `list_nested_block.nested_list_block`
151+
152+
Optional Attributes:
153+
154+
- `nested_block_string_attribute` (String) example nested block string attribute
155+
156+
157+
158+
<a id="nestedblock--list_nested_block_sensitive_nested_attribute"></a>
159+
### Nested Schema for `list_nested_block_sensitive_nested_attribute`
160+
161+
Optional Attributes:
162+
163+
- `list_nested_block_attribute` (String) example list nested block attribute
164+
- `list_nested_block_sensitive_attribute` (String, Sensitive) example sensitive list nested block attribute
165+
166+
161167
<a id="nestedblock--set_nested_block"></a>
162168
### Nested Schema for `set_nested_block`
163169

164-
Optional:
170+
Optional Attributes:
165171

166172
- `set_nested_block_attribute` (String) example set nested block attribute
167173

168174

169175
<a id="nestedblock--single_nested_block"></a>
170176
### Nested Schema for `single_nested_block`
171177

172-
Optional:
178+
Optional Attributes:
173179

174180
- `single_nested_block_attribute` (String) example single nested block attribute
175181

176182

177183
<a id="nestedblock--single_nested_block_sensitive_nested_attribute"></a>
178184
### Nested Schema for `single_nested_block_sensitive_nested_attribute`
179185

180-
Optional:
186+
Optional Attributes:
181187

182188
- `single_nested_block_attribute` (String) example single nested block attribute
183189
- `single_nested_block_sensitive_attribute` (String, Sensitive) example sensitive single nested block attribute

cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_generic_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RenderedProviderName: terraform-provider-scaffolding
4848
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
4949
## Schema
5050

51-
### Optional
51+
### Optional Attributes
5252

5353
- `configurable_attribute` (String) Example configurable attribute
5454

@@ -148,7 +148,7 @@ RenderedProviderName: terraform-provider-scaffolding
148148
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
149149
## Schema
150150

151-
### Optional
151+
### Optional Attributes
152152

153153
- `endpoint` (String) Example provider attribute
154154

@@ -195,7 +195,7 @@ RenderedProviderName: terraform-provider-scaffolding
195195
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
196196
## Schema
197197

198-
### Optional
198+
### Optional Attributes
199199

200200
- `configurable_attribute` (String) Example configurable attribute
201201
- `defaulted` (String) Example configurable attribute with default value

cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_named_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ RenderedProviderName: terraform-provider-scaffolding
4747
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
4848
## Schema
4949

50-
### Optional
50+
### Optional Attributes
5151

5252
- `configurable_attribute` (String) Example configurable attribute
5353

@@ -147,7 +147,7 @@ RenderedProviderName: terraform-provider-scaffolding
147147
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
148148
## Schema
149149

150-
### Optional
150+
### Optional Attributes
151151

152152
- `endpoint` (String) Example provider attribute
153153

@@ -194,7 +194,7 @@ RenderedProviderName: terraform-provider-scaffolding
194194
SchemaMarkdown: <!-- schema generated by tfplugindocs -->
195195
## Schema
196196

197-
### Optional
197+
### Optional Attributes
198198

199199
- `configurable_attribute` (String) Example configurable attribute
200200
- `defaulted` (String) Example configurable attribute with default value

cmd/tfplugindocs/testdata/scripts/schema-json/generate/framework_provider_success_no_templates.txtar

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ data "scaffolding_example" "example" {
5454
<!-- schema generated by tfplugindocs -->
5555
## Schema
5656

57-
### Optional
57+
### Optional Attributes
5858

5959
- `configurable_attribute` (String) Example configurable attribute
6060

@@ -119,7 +119,7 @@ provider "scaffolding" {
119119
<!-- schema generated by tfplugindocs -->
120120
## Schema
121121

122-
### Optional
122+
### Optional Attributes
123123

124124
- `endpoint` (String) Example provider attribute
125125
-- expected-resource.md --
@@ -146,7 +146,7 @@ resource "scaffolding_example" "example" {
146146
<!-- schema generated by tfplugindocs -->
147147
## Schema
148148

149-
### Optional
149+
### Optional Attributes
150150

151151
- `configurable_attribute` (String) Example configurable attribute
152152
- `defaulted` (String) Example configurable attribute with default value

0 commit comments

Comments
 (0)