Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option to use Terraform Configuration in TestStep #153

Merged
merged 59 commits into from
Aug 31, 2023

Commits on Jul 17, 2023

  1. Configuration menu
    Copy the full SHA
    0b590e7 View commit details
    Browse the repository at this point in the history
  2. Add teststep.Config interface so that logic that examines the content…

    …s of TestStep.Config or TestStep.Directory can be encapsulated in teststep.config struct (#150)
    bendbennett committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    91b0ce7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3937312 View commit details
    Browse the repository at this point in the history
  4. Switching to using a teststep.ConfigurationRequest struct for use in …

    …instantiating implementations of teststep.Config (#150)
    bendbennett committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    6838303 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5634313 View commit details
    Browse the repository at this point in the history
  6. Refactoring testStepNewImportState() to use type implementing testste…

    …p.Config interface for applied configuration (#150)
    bendbennett committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    18a3602 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f9f0b1b View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Moved TestStep.configHasProviderBlock(), TestStep.configHasTerraformB…

    …lock and TestStep.mergedConfig() to configuration.HasProviderBlock(), configuration.hasTerraformBlock and configuration.MergedConfig(), respectively (#150)
    bendbennett committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    1e1b53c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da96c02 View commit details
    Browse the repository at this point in the history
  3. Added testCaseProviderConfig and testStepProviderConfig as fields on …

    …configuration struct to simplify processing during GetRaw() and the equivalent function(s) for processing Directory and File (#150)
    bendbennett committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    4230bb1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d46d517 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. Switch to using WriteDirectory() method on configuration to make mana…

    …gement of writing test case provider config or test step provider config simpler when handling copying of files from configuration.directory (#150)
    bendbennett committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    80c09f5 View commit details
    Browse the repository at this point in the history
  2. Adding tests to verify that the ExternalProviders specified in a Test…

    …Case or TestStep are being used when TestStep.ConfigDirectory is specified (#150)
    bendbennett committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    516e68b View commit details
    Browse the repository at this point in the history
  3. Extending implementation of HasProviderBlock() to include detection o…

    …f provider blocks in configuration files within the configuration directory (#150)
    bendbennett committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    6a8f3da View commit details
    Browse the repository at this point in the history
  4. Moving writing of raw config or copy of config directory files intern…

    …ally to configuration struct. (#150)
    bendbennett committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    6e04f0c View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Removing writing of configuration files for external providers (conta…

    …ined within testCaseProviderConfig and testStepProvider config fields) when processing config directory as the expectation is that external providers will be specified directly in the terraform configuration files within the config directory (#150)
    bendbennett committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    a258bfa View commit details
    Browse the repository at this point in the history
  2. Adding HasConfigurationFiles() func to Config interface to be able to…

    … validate that when ConfigDirectory is defined that ExternalProviders cannot be specified for either TestCase or TestStep (#150)
    bendbennett committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    0966142 View commit details
    Browse the repository at this point in the history
  3. Reinstating TestStep.mergedConfig() method as terraform and provider …

    …blocks are only written when using TestStep.Config. The expectation is that when using TestStep.ConfigDirectoy, the terraform files within the configuration directory will specify the terraform and/or provider blocks as necessary (#150)
    bendbennett committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    ce6b5a3 View commit details
    Browse the repository at this point in the history
  4. Adding a couple of tests to verify behaviour when using multiple terr…

    …aform configuration files in TestStep.ConfigDirectory (#150)
    bendbennett committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    a800d8e View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. Configuration menu
    Copy the full SHA
    f07f6aa View commit details
    Browse the repository at this point in the history
  2. Adding acceptance test coverage for StaticDirectory(), TestNameDirect…

    …ory() and TestStepDirectory() (#150)
    bendbennett committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    2877b6b View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Configuration menu
    Copy the full SHA
    ea3044c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b0ac16 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4aa11b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    136e47e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a98a036 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    88066ac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    36409db View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Apply suggestions from code review

    Co-authored-by: Brian Flad <[email protected]>
    bendbennett and bflad authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    3f6a544 View commit details
    Browse the repository at this point in the history
  2. Adding TestName to TestStepConfigRequest and updating TestStepDirecto…

    …ry() func to use TestName (#150)
    bendbennett committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    5a59a64 View commit details
    Browse the repository at this point in the history
  3. Switching to supplying t.Name() to TestStepConfigRequest (#150)

      * Moving all test fixtures for ConfigDirectory to resource/testdata
    bendbennett committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    f7ce370 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d0524a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c84a366 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa4af4e View commit details
    Browse the repository at this point in the history
  7. Changing ConfigurationRequest fields Directory and Raw to *string to …

    …make it clear that they are optional (#150)
    bendbennett committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    90907b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Configuration menu
    Copy the full SHA
    647801c View commit details
    Browse the repository at this point in the history
  2. Adding configurationDirectory and configurationString types (#150)

      * Configuration() now returns the Config interface to accommodate the different types that could be returned (e.g., configurationDirectory, configurationString)
    bendbennett committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    2155db2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ab7111 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    e395077 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9e3014 View commit details
    Browse the repository at this point in the history
  3. Adding documentation into teststep/config.go and tests for exported m…

    …ethods/funcs in teststep/config.go (#150)
    
      * Includes refactoring of Configuration func to remove error returned as this was always nil and the returned Config interface needs to be checked for nil in any case.
    bendbennett committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    3cfc6c9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0c4a1fe View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Adding checks for absolute filepath in configurationDirectory and con…

    …figurationFile HasProviderBlock, HasTerraformBlock and Write methods (#150)
    
      * Adding test coverage for configurationDirectory and configurationFile HasProviderBlock method
    bendbennett committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    36dd090 View commit details
    Browse the repository at this point in the history
  2. Adding tests configurationDirectory, configurationFile and configurat…

    …ionString HasTerraformBlock methods (#150)
    bendbennett committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    28af0cc View commit details
    Browse the repository at this point in the history
  3. Adding test coverage for error conditions and configurationDirectory,…

    … configurationFile and configurationString Write methods (#150)
    bendbennett committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    6fbfd10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5da5a2a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5cab687 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    51576a0 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Adding test to demonstrate that the TestStep number is being used dyn…

    …amically to determine the directory containing the Terraform configuration (#150)
    bendbennett committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    a95efe7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    711dac6 View commit details
    Browse the repository at this point in the history
  3. Updating docs (#150)

    bendbennett committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    3197257 View commit details
    Browse the repository at this point in the history
  4. Removing any configuration or variables files from previous test step…

    …s prior to copy configuration and variables for current test step (#150)
    bendbennett committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    a8cab58 View commit details
    Browse the repository at this point in the history
  5. Updating docs (#150)

    bendbennett committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    48fabe2 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Configuration menu
    Copy the full SHA
    cba81dc View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Apply suggestions from code review

    Co-authored-by: Brian Flad <[email protected]>
    bendbennett and bflad authored Aug 29, 2023
    Configuration menu
    Copy the full SHA
    2117343 View commit details
    Browse the repository at this point in the history
  2. Update .changes/unreleased/FEATURES-20230728-152822.yaml

    Co-authored-by: Brian Flad <[email protected]>
    bendbennett and bflad authored Aug 29, 2023
    Configuration menu
    Copy the full SHA
    29dec70 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76b0526 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9f31393 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19c39ec View commit details
    Browse the repository at this point in the history