Skip to content

Commit 62f6a33

Browse files
authored
Merge pull request #94 from port-labs/PORT-2943-automations-v-1-backend
fix tests and change omit fields to be computed
2 parents d004444 + f5b7416 commit 62f6a33

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

port/action/resource_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,8 @@ func TestAccPortActionAdvancedFormConfigurations(t *testing.T) {
498498
myStringIdentifier3 = {
499499
title = "myStringIdentifier3"
500500
required = false
501+
format = "entity"
502+
blueprint = port_blueprint.microservice.id
501503
dataset = {
502504
"combinator" : "and",
503505
"rules" : [

port/action/schema.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,14 @@ func ActionSchema() map[string]schema.Attribute {
184184
"omit_payload": schema.BoolAttribute{
185185
MarkdownDescription: "Omit the payload when invoking the action",
186186
Optional: true,
187+
Computed: true,
188+
Default: booldefault.StaticBool(false),
187189
},
188190
"omit_user_inputs": schema.BoolAttribute{
189191
MarkdownDescription: "Omit the user inputs when invoking the action",
190192
Optional: true,
193+
Computed: true,
194+
Default: booldefault.StaticBool(false),
191195
},
192196
"report_workflow_status": schema.BoolAttribute{
193197
MarkdownDescription: "Report the workflow status when invoking the action",
@@ -210,10 +214,14 @@ func ActionSchema() map[string]schema.Attribute {
210214
"omit_payload": schema.BoolAttribute{
211215
MarkdownDescription: "Omit the payload when invoking the action",
212216
Optional: true,
217+
Computed: true,
218+
Default: booldefault.StaticBool(false),
213219
},
214220
"omit_user_inputs": schema.BoolAttribute{
215221
MarkdownDescription: "Omit the user inputs when invoking the action",
216222
Optional: true,
223+
Computed: true,
224+
Default: booldefault.StaticBool(false),
217225
},
218226
"default_ref": schema.StringAttribute{
219227
MarkdownDescription: "The default ref of the action",

0 commit comments

Comments
 (0)