Skip to content

Terraform Test: Parallel Execution #1230

@rMaxiQp

Description

@rMaxiQp

On https://github.com/hashicorp/web-unified-docs/blob/main/content/terraform/v1.13.x/docs/language/tests/index.mdx, we have an example usage for Parallel Execution. The last run block is:

run "site_eight" {
  // This run block is entirely unrelated to the other run blocks, however, because `site_four`,
  // which is one of its preceding runs has the `parallel` attribute set to `false`,
  // it cannot run until site_four is completed. It can be executed in parallel with `site_five` and `site_six`.
  state_key = "unique_7"
  variables {
    input = "yet_another_external_db"
  }

  assert {
    condition = output.value == var.foo
    error_message = "double bad"
  }
}

site_eight has a state_key of unique_7, which is same as site_six and same_state. Is sounds like conflicting with the comment's claim and also previous documentation since these three run blocks share the same state. Is it intended to be unieuq_8 instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions