Skip to content

Commit

Permalink
Promote the call_log_level attribute to GA and update tests. Fixes ha…
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and Yuan Chuan Kee committed Jan 21, 2024
1 parent 6fbaeb8 commit 8cadd56
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
13 changes: 12 additions & 1 deletion mmv1/products/workflows/Workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ properties:
- !ruby/object:Api::Type::String
name: 'sourceContents'
description: |
Workflow code to be executed. The size limit is 32KB.
Workflow code to be executed. The size limit is 128KB.
- !ruby/object:Api::Type::String
name: 'revisionId'
output: true
Expand All @@ -108,6 +108,17 @@ properties:
The KMS key used to encrypt workflow and execution data.
Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
- !ruby/object:Api::Type::Enum
name: 'callLogLevel'
description: |
Describes the level of platform logging to apply to calls and call responses during
executions of this workflow. If both the workflow and the execution specify a logging level,
the execution level takes precedence.
values:
- :CALL_LOG_LEVEL_UNSPECIFIED
- :LOG_ALL_CALLS
- :LOG_ERRORS_ONLY
- :LOG_NONE
- !ruby/object:Api::Type::KeyValuePairs
name: 'userEnvVars'
description: |
Expand Down
1 change: 1 addition & 0 deletions mmv1/templates/terraform/examples/workflow_basic.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "google_workflows_workflow" "<%= ctx[:primary_resource_id] %>" {
region = "us-central1"
description = "Magic"
service_account = google_service_account.test_account.id
call_log_level = "LOG_ERRORS_ONLY"
labels = {
env = "test"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ func TestAccWorkflowsWorkflow_Update(t *testing.T) {
func testAccWorkflowsWorkflow_Update(name string) string {
return fmt.Sprintf(`
resource "google_workflows_workflow" "example" {
name = "%s"
region = "us-central1"
description = "Magic"
name = "%s"
region = "us-central1"
description = "Magic"
call_log_level = "LOG_ERRORS_ONLY"
user_env_vars = {
url = "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam"
}
Expand Down Expand Up @@ -77,9 +78,10 @@ EOF
func testAccWorkflowsWorkflow_Updated(name string) string {
return fmt.Sprintf(`
resource "google_workflows_workflow" "example" {
name = "%s"
region = "us-central1"
description = "Magic"
name = "%s"
region = "us-central1"
description = "Magic"
call_log_level = "LOG_ERRORS_ONLY"
user_env_vars = {
url = "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam"
}
Expand Down

0 comments on commit 8cadd56

Please sign in to comment.