Skip to content

Releases: cloudposse/test-helpers

v0.12.0

26 Nov 16:31
c751907
Compare
Choose a tag to compare
allow skipping test runs @mcalhoun (#40)

what

  • allow skipping test runs with the -skip-tests flag

why

  • to give the developer more flexibility when iterating locally
allow multiple test suites @mcalhoun (#39)

what

  • Allow multiple test suites

why

  • To allow users to run multiple test suites at the same time
rename randomseed to randomidentifier @mcalhoun (#35)

what

  • Rename RandomSeed to RandomIdentifier in the TestSuite struct

why

  • As @Nuru pointed out, the seed term makes it confusion and indicates some kind of encryption is taking place, when it's literally just a random ID to prevent resource collision.
implement aws-component-helper @mcalhoun (#30)

what

  • Add a new aws-component-helper package to allow consumers to easily test Cloud Posse flavored AWS components (root modules) with atmos.

why

  • To allow components to be tested using atmos stacks, which is generally how they are deployed, especially when deployed within the Cloud Posse Reference Architecture.

how

The new package is meant to be used within go tests and allows a fairly simple way to test a component:

package test

import (
  "fmt"
  "testing"
  
  "github.com/cloudposse/test-helpers/pkg/atmos"
  helper "github.com/cloudposse/test-helpers/pkg/atmos/aws-component-helper"
  "github.com/stretchr/testify/require"
)

var suite *helper.TestSuite

// TestMain is the entry point for the test suite. It initializes the test
// suite and runs the tests.
func TestMain(m *testing.M) {
  var err error
  
  // Configure the test suite
  suite, err = helper.NewTestSuite("us-east-2", "bastion", "test")
  if err != nil {
  panic(err)
  }
  
  // Add dependencies for the component under test in the same stack. If you
  // want to add dependencies in different stacks, use AddCrossStackDependencies.
  //
  // Dependencies are deployed in serial in the order they are added.
  suite.AddDependencies([]string{"vpc"})
  
  
  // Create a new testing object since TestMain doesn't have one and we need
  // one to call the Setup and Teardown functions
  t := &testing.T{}
  
  defer suite.TearDown(t)
  suite.Setup(t)
  
  m.Run()
}

func TestBastion(t *testing.T) {
  additionalVars := map[string]interface{}{}
  defer suite.DestroyComponentUnderTest(t, additionalVars)
  
  _, err := suite.DeployComponentUnderTest(t, additionalVars)
  require.NoError(t, err)
  
  instanceProfile := atmos.Output(t, suite.AtmosOptions, "iam_instance_profile")
  require.Equal(t, instanceProfile, fmt.Sprintf("eg-cptest-ue2-test-bastion-%s", suite.RandomSeed))
}

references

v0.11.0

29 Oct 18:56
7cf3356
Compare
Choose a tag to compare
fix atmos pkg version @Cerebrovinny (#31)

what

  • Fix breaking change in atmos version

why

  • version pkg has been moved under version folder

references

rename package to test-helpers @mcalhoun (#29)

what

  • Rename from terratest-helpers to test-helpers

why

  • Make the repo name better reflect the broader scope of the package.

v0.10.0

10 Oct 17:27
e791235
Compare
Choose a tag to compare
add atmos vendor test helpers @mcalhoun (#28)

what

Add atmos vendor test helpers

why

To allow atmos vendor to be called from within component tests to vendor in dependent components.

v0.9.1

08 Oct 19:31
ec40239
Compare
Choose a tag to compare

Add a missing file from previous release

v0.8.0

16 Jul 14:22
fc93beb
Compare
Choose a tag to compare
Update module github.com/aws/aws-sdk-go to v1.54.19 @renovate (#21)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/aws/aws-sdk-go v1.51.31 -> v1.54.19 age adoption passing confidence

Release Notes

aws/aws-sdk-go (github.com/aws/aws-sdk-go)

v1.54.19

Compare Source

===

Service Client Updates
  • service/acm-pca: Updates service API, documentation, waiters, and paginators
  • service/arc-zonal-shift: Updates service API and documentation
  • service/autoscaling: Adds new service
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/codebuild: Adds new service
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/dynamodb: Updates service API, documentation, waiters, paginators, and examples
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/globalaccelerator: Updates service API
  • service/pinpoint: Updates service API and documentation
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/quicksight: Updates service API and documentation
    • Vega ally control options and Support for Reviewed Answers in Topics
  • service/rds: Updates service API, documentation, waiters, paginators, and examples
    • Update path for CreateDBCluster resource identifier, and Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/sns: Adds new service
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.

v1.54.18

Compare Source

===

Service Client Updates
  • service/batch: Updates service API and documentation
    • This feature allows AWS Batch Jobs with EKS container orchestration type to be run as Multi-Node Parallel Jobs.
  • service/bedrock: Updates service API and documentation
  • service/bedrock-agent: Updates service API, documentation, and paginators
  • service/bedrock-agent-runtime: Updates service API, documentation, and paginators
  • service/bedrock-runtime: Updates service API and documentation
  • service/ec2: Updates service API and documentation
    • Add parameters to enable provisioning IPAM BYOIPv4 space at a Local Zone Network Border Group level
  • service/glue: Updates service API and documentation
    • Add recipe step support for recipe node
  • service/groundstation: Updates service API and documentation
  • service/license-manager-linux-subscriptions: Updates service API, documentation, and paginators
  • service/mediaconnect: Updates service API and documentation

v1.54.17

Compare Source

===

Service Client Updates
  • service/datazone: Updates service API
  • service/fsx: Updates service API and documentation
  • service/opensearch: Updates service API and documentation
  • service/sagemaker: Updates service API, documentation, and paginators
    • This release 1/ enables optimization jobs that allows customers to perform Ahead-of-time compilation and quantization. 2/ allows customers to control access to Amazon Q integration in SageMaker Studio. 3/ enables AdditionalModelDataSources for CreateModel action.

v1.54.16

Compare Source

===

Service Client Updates
  • service/codedeploy: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/devicefarm: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/dms: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/elasticbeanstalk: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/email: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/es: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/firehose: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/gamelift: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/qapps: Updates service API, documentation, waiters, paginators, and examples
  • service/route53resolver: Updates service API

v1.54.15

Compare Source

===

Service Client Updates
  • service/acm: Updates service API and documentation
    • Documentation updates, including fixes for xml formatting, broken links, and ListCertificates description.
  • service/ecr: Updates service API
    • This release for Amazon ECR makes change to bring the SDK into sync with the API.
  • service/payment-cryptography-data: Updates service API and documentation
  • service/qbusiness: Updates service API and documentation

v1.54.14

Compare Source

===

Service Client Updates
  • service/application-autoscaling: Updates service documentation
  • service/directconnect: Updates service documentation
    • This update includes documentation for support of new native 400 GBps ports for Direct Connect.
  • service/organizations: Updates service API and documentation
    • Added a new reason under ConstraintViolationException in RegisterDelegatedAdministrator API to prevent registering suspended accounts as delegated administrator of a service.
  • service/rekognition: Updates service API and documentation
    • This release adds support for tagging projects and datasets with the CreateProject and CreateDataset APIs.
  • service/workspaces: Updates service API
    • Fix create workspace bundle RootStorage/UserStorage to accept non null values

v1.54.13

Compare Source

===

Service Client Updates
  • service/ec2: Updates service API and documentation
    • Documentation updates for Elastic Compute Cloud (EC2).
  • service/fms: Updates service API
  • service/s3: Updates service API, documentation, and examples
    • Added response overrides to Head Object requests.

v1.54.12

Compare Source

===

Service Client Updates
  • service/apigateway: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/cognito-identity: Updates service API
  • service/connect: Updates service API, documentation, and paginators
  • service/docdb: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/eks: Updates service API
  • service/payment-cryptography: Updates service API and documentation
  • service/payment-cryptography-data: Updates service API, documentation, and waiters
  • service/states: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/swf: Updates service API
    • Add v2 smoke tests and smithy smokeTests trait for SDK testing.
  • service/wafv2: Updates service API and documentation

v1.54.11

Compare Source

===

Service Client Updates
  • service/acm-pca: Updates service API
  • service/cloudhsmv2: Updates service API and documentation
    • Added 3 new APIs to support backup sharing: GetResourcePolicy, PutResourcePolicy, and DeleteResourcePolicy. Added BackupArn to the output of the DescribeBackups API. Added support for BackupArn in the CreateCluster API.
  • service/connect: Updates service API and documentation
  • service/elasticmapreduce: Updates service API and documentation
    • This release provides the support for new allocation strategies i.e. CAPACITY_OPTIMIZED_PRIORITIZED for Spot and PRIORITIZED for On-Demand by taking input of priority value for each instance type for instance fleet clusters.
  • service/glue: Updates service API and docum...
Read more

v0.7.3

15 Jul 19:32
84b65c1
Compare
Choose a tag to compare

🚀 Enhancements

Update module github.com/gruntwork-io/terratest to v0.47.0 @renovate (#23)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/gruntwork-io/terratest v0.46.14 -> v0.47.0 age adoption passing confidence

Release Notes

gruntwork-io/terratest (github.com/gruntwork-io/terratest)

v0.47.0

Compare Source

Modules affected

  • packer
  • aws
  • helm
  • azure

Description

  • Added support for Packer 1.10
  • Fixed error checking in Azure
  • Fixed tests and documentation for helm, aws, packer modules

Related links

v0.46.16

Compare Source

Description

  • Updated github.com/hashicorp/go-getter from 1.7.4 to 1.7.5.

Related links

v0.46.15

Compare Source

Description

Related links


v0.7.2

30 Apr 16:02
5812c5b
Compare
Choose a tag to compare
Update module github.com/aws/aws-sdk-go to v1.51.31 @renovate (#18)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/aws/aws-sdk-go v1.51.21 -> v1.51.31 age adoption passing confidence

Release Notes

aws/aws-sdk-go (github.com/aws/aws-sdk-go)

v1.51.31

Compare Source

===

Service Client Updates
  • service/amplify: Updates service API and documentation
  • service/connectcases: Updates service API and documentation
  • service/inspector2: Updates service API and documentation
  • service/timestream-query: Updates service API and documentation
  • service/transcribe: Updates service API and documentation
  • service/trustedadvisor: Updates service API and documentation

v1.51.30

Compare Source

===

Service Client Updates
  • service/codepipeline: Updates service API and documentation
    • Add ability to manually and automatically roll back a pipeline stage to a previously successful execution.
  • service/cognito-idp: Updates service API and documentation
  • service/connectcampaigns: Updates service API and documentation
  • service/entitlement.marketplace: Updates service API
  • service/oam: Updates service API and documentation
  • service/rds: Updates service API, documentation, waiters, paginators, and examples
    • SupportsLimitlessDatabase field added to describe-db-engine-versions to indicate whether the DB engine version supports Aurora Limitless Database.
  • service/support: Updates service API
    • Releasing minor endpoint updates.

v1.51.29

Compare Source

===

Service Client Updates
  • service/appsync: Updates service API
  • service/fms: Updates service API and documentation
  • service/ivs: Updates service API and documentation
  • service/ivs-realtime: Updates service API
  • service/rds: Updates service API, documentation, waiters, paginators, and examples
    • Updates Amazon RDS documentation for setting local time zones for RDS for Db2 DB instances.
  • service/states: Updates service API and documentation
    • Add new ValidateStateMachineDefinition operation, which performs syntax checking on the definition of a Amazon States Language (ASL) state machine.

v1.51.28

Compare Source

===

Service Client Updates
  • service/datasync: Updates service API and documentation
  • service/ec2: Updates service API and documentation
    • Launching capability for customers to enable or disable automatic assignment of public IPv4 addresses to their network interface
  • service/emr-containers: Updates service API, documentation, and paginators
  • service/entityresolution: Updates service API and documentation
  • service/gamelift: Updates service API, documentation, and paginators
    • Amazon GameLift releases container fleets support for public preview. Deploy Linux-based containerized game server software for hosting on Amazon GameLift.
  • service/ssm: Updates service API, documentation, and paginators
    • Add SSM DescribeInstanceProperties API to public AWS SDK.

v1.51.27

Compare Source

===

Service Client Updates
  • service/bedrock: Updates service API, documentation, and paginators
  • service/bedrock-agent: Updates service API and documentation
  • service/bedrock-agent-runtime: Updates service API and documentation
  • service/bedrock-runtime: Updates service API and documentation
  • service/ce: Updates service API and documentation
  • service/ec2: Updates service API and documentation
    • This release introduces EC2 AMI Deregistration Protection, a new AMI property that can be enabled by customers to protect an AMI against an unintended deregistration. This release also enables the AMI owners to view the AMI 'LastLaunchedTime' in DescribeImages API.
  • service/pi: Updates service documentation
  • service/rds: Updates service API, documentation, waiters, paginators, and examples
    • Fix the example ARN for ModifyActivityStreamRequest
  • service/workspaces-web: Updates service API and documentation

v1.51.26

Compare Source

===

Service Client Updates
  • service/bedrock-agent: Updates service API and documentation
  • service/bedrock-agent-runtime: Updates service API and documentation
  • service/payment-cryptography: Updates service API, documentation, and waiters
  • service/redshift-serverless: Updates service documentation
  • service/route53profiles: Adds new service
  • service/sagemaker: Updates service API and documentation
    • This release adds support for Real-Time Collaboration and Shared Space for JupyterLab App on SageMaker Studio.
  • service/servicediscovery: Updates service documentation and examples
  • service/transfer: Updates service API and documentation
    • Adding new API to support remote directory listing using SFTP connector

v1.51.25

Compare Source

===

Service Client Updates
  • service/glue: Updates service API and documentation
    • Adding RowFilter in the response for GetUnfilteredTableMetadata API
  • service/internetmonitor: Updates service API, documentation, and paginators
  • service/personalize: Updates service API and documentation

v1.51.24

Compare Source

===

Service Client Updates
  • service/drs: Updates service API and documentation
  • service/emr-serverless: Updates service API and documentation
  • service/guardduty: Updates service API and documentation
    • Added IPv6Address fields for local and remote IP addresses
  • service/quicksight: Updates service API and documentation
    • This release adds support for the Cross Sheet Filter and Control features, and support for warnings in asset imports for any permitted errors encountered during execution
  • service/rolesanywhere: Updates service API and documentation
  • service/sagemaker: Updates service API and documentation
    • Removed deprecated enum values and updated API documentation.
  • service/workspaces: Updates service API, documentation, and paginators
    • Adds new APIs for managing and sharing WorkSpaces BYOL configuration across accounts.

v1.51.23

Compare Source

===

Service Client Updates
  • service/ec2: Updates service documentation
    • Documentation updates for Elastic Compute Cloud (EC2).
  • service/qbusiness: Updates service API and documentation

v1.51.22

Compare Source

===

Service Client Updates
  • service/bedrock-agent: Updates service API and documentation
  • service/emr-serverless: Updates service API and documentation
  • service/entityresolution: Updates service API, documentation, and paginators
  • service/iotwireless: Updates service API and documentation
  • service/lakeformation: Updates service API and documentation
  • service/m2: Updates service API and documentation
  • service/mediapackagev2: Updates service API and documentation
  • service/outposts: Updates service API, documentation, and paginators
  • service/wellarchitected: Updates service API and documentation

🚀 Enhancements

Update module github.com/gruntwork-io/terratest to v0.46.14 @renovate (#19)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
[github.com/gruntwork-io/terratest](https://togithub.com/gru...
Read more

v0.7.1

30 Apr 15:56
512aa80
Compare
Choose a tag to compare
Update aws-actions/configure-aws-credentials action to v4 @renovate (#17)

This PR contains the following updates:

Package Type Update Change
aws-actions/configure-aws-credentials action major v1 -> v4

Release Notes

aws-actions/configure-aws-credentials (aws-actions/configure-aws-credentials)

v4

Compare Source

This tag tracks the latest v4.x.x release

v3

Compare Source

This tag tracks the latest v3.x.x release

v2

Compare Source

This tag tracks the latest v2.x.x release.


🚀 Enhancements

update tag format @mcalhoun (#20)

what

  • update the format of tags to have v at the beginning

why

  • go mod expects libraries to be published with this format

v0.7.0

15 Apr 21:07
bdf6fbc
Compare
Choose a tag to compare
Update actions/setup-go action to v5 @renovate (#16)

This PR contains the following updates:

Package Type Update Change
actions/setup-go action major v3 -> v5

Release Notes

actions/setup-go (actions/setup-go)

v5

Compare Source

v4

Compare Source


Update actions/checkout action to v4 @renovate (#15)

This PR contains the following updates:

Package Type Update Change
actions/checkout action major v2 -> v4
actions/checkout action major v3 -> v4

Release Notes

actions/checkout (actions/checkout)

v4

Compare Source

v3

Compare Source


Update mszostok/codeowners-validator action to v0.7.4 @renovate (#7)

This PR contains the following updates:

Package Type Update Change
mszostok/codeowners-validator action patch v0.7.1 -> v0.7.4

Release Notes

mszostok/codeowners-validator (mszostok/codeowners-validator)

v0.7.4

Compare Source

🎉 GitHub Codeowners Validator 0.7.4 is now available!

Highlights

✨ New functionality

First entry

 /build/logs/ @​octocat

Shadows - reported as error

 * @​s1
 /b*/logs @​s5

OK

 /b*/other @​o1
 /script/* @​o2
 ```

🔧 Bug Fixes

Changelog

v0.7.3

Compare Source

🎉 GitHub Codeowners Validator 0.7.3 is now available!

Highlights

✨ New functionality

  • not-owned-checker: Add git-ls-tree implementation with subdirectory support (#​141) (@​jeremycohen)
    Now you can specify against which subdirectories the not-owned check should be executed. To configure that, use the NOT_OWNED_CHECKER_SUBDIRECTORIES environment variable. In the default mode, it works as previously, where all files are checked.
  • Add GitHub token validation to get rid of misleading error checks (#​143)

🔧 Bug Fixes

  • Fix scope and internal error handling (#​145) (@​mszostok)
    The previous release informs the user about the internal error, but the exit code was not properly propagated. Now, besides the error message, the exit code is also set.

Changelog

v0.7.2

Compare Source

🎉 GitHub Codeowners Validator 0.7.2 is now available!

Highlights

🔧 Bug Fixes

✨ New checks

  • Add a flag to only allow teams as owners (#​127) (@​seveas)
    Now you can enable more strict rule and specify that only teams are allowed as owners of files.

🛡️ Security

Installation

See the [Installation](https://togithub.com/mszostok/codeowners-validato...

Read more

v0.6.0

15 Apr 20:51
c8016b4
Compare
Choose a tag to compare
Update module github.com/jinzhu/copier to v0.4.0 @renovate (#12)

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/jinzhu/copier v0.3.5 -> v0.4.0 age adoption passing confidence

Release Notes

jinzhu/copier (github.com/jinzhu/copier)

v0.4.0

Compare Source