Skip to content

Commit da9b228

Browse files
authored
Test dirien work (#59)
1 parent e653f89 commit da9b228

File tree

7 files changed

+257
-24
lines changed

7 files changed

+257
-24
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
restore-keys: |
4949
${{ runner.os }}-go-
5050
- name: Run dialect tests
51-
run: make acctest
51+
run: make acctest PORT_CLIENT_ID=${{ secrets.PORT_CLIENT_ID }} PORT_CLIENT_SECRET=${{ secrets.PORT_CLIENT_SECRET }}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ setup:
4040
cd tools && go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
4141

4242
acctest:
43-
TF_ACC=1 go test ./...
43+
TF_ACC=1 PORT_CLIENT_ID=$(PORT_CLIENT_ID) PORT_CLIENT_SECRET=$(PORT_CLIENT_SECRET) go test ./...
4444

4545
gen-docs:
46-
tfplugindocs
46+
tfplugindocs

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ description: |-
1616

1717
### Required
1818

19-
- `client_id` (String) Client ID for Port-labs
20-
- `secret` (String, Sensitive) Client Secret for Port-labs
19+
- `client_id` (String) Client ID for Port-labs (environment: `PORT_CLIENT_ID`)
20+
- `secret` (String, Sensitive) Client Secret for Port-labs (environment: `PORT_CLIENT_SECRET`)
2121

2222
### Optional
2323

24-
- `base_url` (String)
24+
- `base_url` (String) Base URL for Port-labs (environment: `PORT_BASE_URL`)
2525
- `token` (String, Sensitive) Token for Port-labs

docs/resources/port_action.md

Lines changed: 204 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Action resource
2929
- `azure_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--azure_method))
3030
- `description` (String) Description
3131
- `github_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--github_method))
32+
- `gitlab_method` (Attributes) The invocation method of the action (see [below for nested schema](#nestedatt--gitlab_method))
3233
- `icon` (String) Icon
3334
- `kafka_method` (Object) The invocation method of the action (see [below for nested schema](#nestedatt--kafka_method))
3435
- `required_approval` (Boolean) Require approval before invoking the action
@@ -70,13 +71,29 @@ Required:
7071

7172
- `org` (String) Required when selecting type GITHUB. The GitHub org that the workflow belongs to
7273
- `repo` (String) Required when selecting type GITHUB. The GitHub repo that the workflow belongs to
74+
- `workflow` (String) The GitHub workflow that the action belongs to
7375

7476
Optional:
7577

7678
- `omit_payload` (Boolean) Omit the payload when invoking the action
7779
- `omit_user_inputs` (Boolean) Omit the user inputs when invoking the action
7880
- `report_workflow_status` (Boolean) Report the workflow status when invoking the action
79-
- `workflow` (String) The GitHub workflow that the action belongs to
81+
82+
83+
<a id="nestedatt--gitlab_method"></a>
84+
### Nested Schema for `gitlab_method`
85+
86+
Required:
87+
88+
- `group_name` (String) Required when selecting type GITLAB. The GitLab group name that the workflow belongs to
89+
- `project_name` (String) Required when selecting type GITLAB. The GitLab project name that the workflow belongs to
90+
91+
Optional:
92+
93+
- `agent` (Boolean) Use the agent to invoke the action
94+
- `default_ref` (String) The default ref of the action
95+
- `omit_payload` (Boolean) Omit the payload when invoking the action
96+
- `omit_user_inputs` (Boolean) Omit the user inputs when invoking the action
8097

8198

8299
<a id="nestedatt--kafka_method"></a>
@@ -103,11 +120,18 @@ Optional:
103120
Optional:
104121

105122
- `boolean_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--boolean_items))
123+
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--array_props--dataset))
124+
- `default_jq_query` (String) The default jq query of the array property
125+
- `depends_on` (List of String) The properties that this property depends on
126+
- `description` (String) The description of the property
127+
- `icon` (String) The icon of the property
106128
- `max_items` (Number) The max items of the array property
107129
- `min_items` (Number) The min items of the array property
108130
- `number_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--number_items))
109131
- `object_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--object_items))
132+
- `required` (Boolean) Whether the property is required
110133
- `string_items` (Attributes) The items of the array property (see [below for nested schema](#nestedatt--user_properties--array_props--string_items))
134+
- `title` (String) The title of the property
111135

112136
<a id="nestedatt--user_properties--array_props--boolean_items"></a>
113137
### Nested Schema for `user_properties.array_props.boolean_items`
@@ -117,6 +141,37 @@ Optional:
117141
- `default` (List of Boolean) The default of the items
118142

119143

144+
<a id="nestedatt--user_properties--array_props--dataset"></a>
145+
### Nested Schema for `user_properties.array_props.dataset`
146+
147+
Required:
148+
149+
- `combinator` (String) The combinator of the dataset
150+
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--array_props--dataset--rules))
151+
152+
<a id="nestedatt--user_properties--array_props--dataset--rules"></a>
153+
### Nested Schema for `user_properties.array_props.dataset.rules`
154+
155+
Required:
156+
157+
- `operator` (String) The operator of the rule
158+
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--array_props--dataset--rules--value))
159+
160+
Optional:
161+
162+
- `blueprint` (String) The blueprint identifier of the rule
163+
- `property` (String) The property identifier of the rule
164+
165+
<a id="nestedatt--user_properties--array_props--dataset--rules--value"></a>
166+
### Nested Schema for `user_properties.array_props.dataset.rules.value`
167+
168+
Optional:
169+
170+
- `jq_query` (String)
171+
172+
173+
174+
120175
<a id="nestedatt--user_properties--array_props--number_items"></a>
121176
### Nested Schema for `user_properties.array_props.number_items`
122177

@@ -138,6 +193,7 @@ Optional:
138193

139194
Optional:
140195

196+
- `blueprint` (String) The blueprint identifier the property relates to
141197
- `default` (List of String) The default of the items
142198
- `format` (String) The format of the items
143199

@@ -148,43 +204,156 @@ Optional:
148204

149205
Optional:
150206

207+
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset))
151208
- `default` (Boolean) The default of the boolean property
209+
- `default_jq_query` (String) The default jq query of the boolean property
210+
- `depends_on` (List of String) The properties that this property depends on
211+
- `description` (String) The description of the property
212+
- `icon` (String) The icon of the property
213+
- `required` (Boolean) Whether the property is required
214+
- `title` (String) The title of the property
215+
216+
<a id="nestedatt--user_properties--boolean_props--dataset"></a>
217+
### Nested Schema for `user_properties.boolean_props.dataset`
218+
219+
Required:
220+
221+
- `combinator` (String) The combinator of the dataset
222+
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset--rules))
223+
224+
<a id="nestedatt--user_properties--boolean_props--dataset--rules"></a>
225+
### Nested Schema for `user_properties.boolean_props.dataset.rules`
226+
227+
Required:
228+
229+
- `operator` (String) The operator of the rule
230+
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--boolean_props--dataset--rules--value))
231+
232+
Optional:
233+
234+
- `blueprint` (String) The blueprint identifier of the rule
235+
- `property` (String) The property identifier of the rule
236+
237+
<a id="nestedatt--user_properties--boolean_props--dataset--rules--value"></a>
238+
### Nested Schema for `user_properties.boolean_props.dataset.rules.value`
239+
240+
Optional:
241+
242+
- `jq_query` (String)
243+
244+
245+
152246

153247

154248
<a id="nestedatt--user_properties--number_props"></a>
155249
### Nested Schema for `user_properties.number_props`
156250

157251
Optional:
158252

159-
- `blueprint` (String) The blueprint identifier the property relates to
253+
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--number_props--dataset))
160254
- `default` (Number) The default of the number property
255+
- `default_jq_query` (String) The default jq query of the number property
256+
- `depends_on` (List of String) The properties that this property depends on
161257
- `description` (String) The description of the property
162258
- `enum` (List of Number) The enum of the number property
163-
- `format` (String) The format of the string property
259+
- `enum_jq_query` (String) The enum jq query of the string property
164260
- `icon` (String) The icon of the property
165261
- `maximum` (Number) The min of the number property
166262
- `minimum` (Number) The max of the number property
167263
- `required` (Boolean) Whether the property is required
168264
- `title` (String) The title of the property
169265

266+
<a id="nestedatt--user_properties--number_props--dataset"></a>
267+
### Nested Schema for `user_properties.number_props.dataset`
268+
269+
Required:
270+
271+
- `combinator` (String) The combinator of the dataset
272+
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--number_props--dataset--rules))
273+
274+
<a id="nestedatt--user_properties--number_props--dataset--rules"></a>
275+
### Nested Schema for `user_properties.number_props.dataset.rules`
276+
277+
Required:
278+
279+
- `operator` (String) The operator of the rule
280+
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--number_props--dataset--rules--value))
281+
282+
Optional:
283+
284+
- `blueprint` (String) The blueprint identifier of the rule
285+
- `property` (String) The property identifier of the rule
286+
287+
<a id="nestedatt--user_properties--number_props--dataset--rules--value"></a>
288+
### Nested Schema for `user_properties.number_props.dataset.rules.value`
289+
290+
Optional:
291+
292+
- `jq_query` (String)
293+
294+
295+
296+
170297

171298
<a id="nestedatt--user_properties--object_props"></a>
172299
### Nested Schema for `user_properties.object_props`
173300

174301
Optional:
175302

303+
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--object_props--dataset))
176304
- `default` (String) The default of the object property
305+
- `default_jq_query` (String) The default jq query of the object property
306+
- `depends_on` (List of String) The properties that this property depends on
307+
- `description` (String) The description of the property
308+
- `icon` (String) The icon of the property
309+
- `required` (Boolean) Whether the property is required
310+
- `title` (String) The title of the property
311+
312+
<a id="nestedatt--user_properties--object_props--dataset"></a>
313+
### Nested Schema for `user_properties.object_props.dataset`
314+
315+
Required:
316+
317+
- `combinator` (String) The combinator of the dataset
318+
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--object_props--dataset--rules))
319+
320+
<a id="nestedatt--user_properties--object_props--dataset--rules"></a>
321+
### Nested Schema for `user_properties.object_props.dataset.rules`
322+
323+
Required:
324+
325+
- `operator` (String) The operator of the rule
326+
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--object_props--dataset--rules--value))
327+
328+
Optional:
329+
330+
- `blueprint` (String) The blueprint identifier of the rule
331+
- `property` (String) The property identifier of the rule
332+
333+
<a id="nestedatt--user_properties--object_props--dataset--rules--value"></a>
334+
### Nested Schema for `user_properties.object_props.dataset.rules.value`
335+
336+
Optional:
337+
338+
- `jq_query` (String)
339+
340+
341+
177342

178343

179344
<a id="nestedatt--user_properties--string_props"></a>
180345
### Nested Schema for `user_properties.string_props`
181346

182347
Optional:
183348

184-
- `blueprint` (String) The blueprint identifier the property relates to
349+
- `blueprint` (String) The blueprint identifier the string property relates to
350+
- `dataset` (Attributes) The dataset of the property (see [below for nested schema](#nestedatt--user_properties--string_props--dataset))
185351
- `default` (String) The default of the string property
352+
- `default_jq_query` (String) The default jq query of the string property
353+
- `depends_on` (List of String) The properties that this property depends on
186354
- `description` (String) The description of the property
187355
- `enum` (List of String) The enum of the string property
356+
- `enum_jq_query` (String) The enum jq query of the string property
188357
- `format` (String) The format of the string property
189358
- `icon` (String) The icon of the property
190359
- `max_length` (Number) The max length of the string property
@@ -193,6 +362,37 @@ Optional:
193362
- `required` (Boolean) Whether the property is required
194363
- `title` (String) The title of the property
195364

365+
<a id="nestedatt--user_properties--string_props--dataset"></a>
366+
### Nested Schema for `user_properties.string_props.dataset`
367+
368+
Required:
369+
370+
- `combinator` (String) The combinator of the dataset
371+
- `rules` (Attributes List) The rules of the dataset (see [below for nested schema](#nestedatt--user_properties--string_props--dataset--rules))
372+
373+
<a id="nestedatt--user_properties--string_props--dataset--rules"></a>
374+
### Nested Schema for `user_properties.string_props.dataset.rules`
375+
376+
Required:
377+
378+
- `operator` (String) The operator of the rule
379+
- `value` (Object) The value of the rule (see [below for nested schema](#nestedatt--user_properties--string_props--dataset--rules--value))
380+
381+
Optional:
382+
383+
- `blueprint` (String) The blueprint identifier of the rule
384+
- `property` (String) The property identifier of the rule
385+
386+
<a id="nestedatt--user_properties--string_props--dataset--rules--value"></a>
387+
### Nested Schema for `user_properties.string_props.dataset.rules.value`
388+
389+
Optional:
390+
391+
- `jq_query` (String)
392+
393+
394+
395+
196396

197397

198398
<a id="nestedatt--webhook_method"></a>

docs/resources/port_blueprint.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
page_title: "port_blueprint Resource - terraform-provider-port-labs"
44
subcategory: ""
55
description: |-
6-
Group resource
6+
Blueprint Resource
77
---
88

99
# port_blueprint (Resource)
1010

11-
Group resource
11+
Blueprint Resource
1212

1313

1414

@@ -18,6 +18,7 @@ Group resource
1818
### Required
1919

2020
- `identifier` (String) The identifier of the blueprint
21+
- `title` (String) The display name of the blueprint
2122

2223
### Optional
2324

@@ -29,7 +30,6 @@ Group resource
2930
- `properties` (Attributes) The properties of the blueprint (see [below for nested schema](#nestedatt--properties))
3031
- `relations` (Attributes Map) The relations of the blueprint (see [below for nested schema](#nestedatt--relations))
3132
- `team_inheritance` (Attributes) The team inheritance of the blueprint (see [below for nested schema](#nestedatt--team_inheritance))
32-
- `title` (String) The display name of the blueprint
3333
- `webhook_changelog_destination` (Attributes) The webhook changelog destination of the blueprint (see [below for nested schema](#nestedatt--webhook_changelog_destination))
3434

3535
### Read-Only
@@ -213,11 +213,14 @@ Required:
213213
<a id="nestedatt--relations"></a>
214214
### Nested Schema for `relations`
215215

216+
Required:
217+
218+
- `target` (String) The target of the relation
219+
216220
Optional:
217221

218222
- `many` (Boolean) The many of the relation
219223
- `required` (Boolean) The required of the relation
220-
- `target` (String) The target of the relation
221224
- `title` (String) The title of the relation
222225

223226

0 commit comments

Comments
 (0)