Skip to content

Releases: cloudposse/test-helpers

v0.25.0

16 Sep 17:04
478f6ee

Choose a tag to compare

Use atmos instead of makefile @goruha (#74)

what

  • Use atmos instead of makefile

why

  • build-harness deprecated. Use atmos instead

v0.24.0

12 May 18:57
708f1ba

Choose a tag to compare

Examples helper @Benbentwo (#68)

what

  • Examples Helper library for testing cloudposse examples

why

  • trying to make this testing framework more accessible while also focusing on speed of development of tests.

v0.23.0

31 Mar 10:17
b1569fb

Choose a tag to compare

Added eks configs @goruha (#65)

what

  • Move the K8S config to a separate method
  • Added CleanDNSZoneID route53 zone
  • Define helm metadata struct

why

  • Allow the creation of dynamic clients for extensions API
  • Drop orphane DNS records to teardown DNS zones
  • Use metadata struct in terraform testing components that install helm charts

v0.22.0

19 Mar 09:02
0312739

Choose a tag to compare

Port EKS from cloudposse/terratest @goruha (#62)

what

  • add eks support and k8s node assertions
  • return atmos options on even if --skip-deploy-component flag is set
  • remove aws-nuke package

Why

  • Test EKS-related components
  • Allow to read outputs when component deployment skipped
  • The AWS nuke package is not used anywhere but has dependencies issues that affect tests run for all packages

Reference

v0.21.0

12 Mar 20:06
ed38e1c

Choose a tag to compare

add configurable destination path @mcalhoun (#55)

what

Allow the component destination directory to be specified

why

For some more advanced components, there are nested folders

usage

This feature can be utilized by specifying --component-dest-dir or by setting suite.Config.ComponentDestDir:

func TestRunExampleSuite(t *testing.T) {
	suite := new(ExampleTestSuite)
	suite.Config.ComponentDestDir = "components/terraform/foo/bar"

	suite.AddDependency(t, "component1", "test-use2-sandbox", nil)
	suite.AddDependency(t, "component3", "test-use2-sandbox", nil)
	helper.Run(t, suite)
}

v0.20.0

12 Mar 15:50
13635be

Choose a tag to compare

Fix outputs when workspace switched @goruha (#59)

what

  • Skip output string "Switch workspace"
  • Added AWS Waf helper functions

Why

  • Solve problems with outputs when reusing component for multiple configrations
  • Required to test WAF component

v0.19.0

06 Mar 13:28
d308d34

Choose a tag to compare

fix dependencies only flag bug @mcalhoun (#58)

what

Fix a bug where using the --only-deploy-dependencies flag was still running tests

v0.18.0

19 Feb 21:57
bc76a3f

Choose a tag to compare

Fix route53 zone @goruha (#56)

what

  • Remove if case in GetDNSZoneByNameE method

why

  • The if cases is useless

v0.17.0

18 Feb 23:42
b7c452d

Choose a tag to compare

Extend aws package @goruha (#54)

what

  • Added GetDNSZoneByNameE

why

  • Required for dns-delegated component tests

v0.16.0

13 Feb 14:09
2fd3da0

Choose a tag to compare

Added GetAtmosOptions method @goruha (#52)

what

  • Added GetAtmosOptions method
  • Added ATMOS_CLI_CONFIG_PATH env vars
  • Fix VerifyEnabledFlag
  • Add DriftTest
  • Moved helpers functions to pkg/aws

why

  • Allow to get options for dependencies
  • Fix remote state terraform read
  • OpenTofu and Terraform handle detailed exit codes differently
  • Test drifts
  • Consolidate helper functions

references