Releases: cloudposse/test-helpers
v0.13.2
🐛 Bug Fixes
set COMPONENT_HELPER_STATE_DIR env var for atmos commands @mcalhoun (#48)
what
- Added
ATMOS_TEST_HELPER_STATE_DIR
environment variable to the Atmos options configuration, pointing to the temporary directory
why
- Allow the state directory to be set to a well known path via
--state-dir
and also work with the terraform-provider-utils provider.
v0.13.1
🐛 Bug Fixes
set ATMOS_BASE_PATH in test helper @mcalhoun (#47)
what
When running atmos
commands with the test-helper
, set the ATMOS_BASE_PATH
env variable
why
This is required for the terraform-provider-utils provider to work properly
v0.13.0
refactor test helpers @mcalhoun (#44)
what
- Refactor the
atmos/component-helper
package to better handle running suites of component tests
why
After multiple attempts at creating a set of helpers for running atmos
component tests while reducing the amount of boilerplate code we needed to write and balancing ease of use (simple API) for new Go developers, we arrived at the current version of the helpers. The previous version still required significant code, relied on TestMain (which although idiomatic, still was confusing for newer Go devs) and didn't handle concurrency well. This updated version should address those issues.
references
v0.12.0
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
toRandomIdentifier
in theTestSuite
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
- Cloud Posse's components are located in the https://github.com/cloudposse-terraform-components GitHub Org. Any AWS component that follows the same convention can be tested using this package.
v0.11.0
fix atmos pkg version @Cerebrovinny (#31)
what
- Fix breaking change in atmos version
why
- version pkg has been moved under version folder
references
v0.10.0
v0.9.1
v0.8.0
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 |
Release Notes
aws/aws-sdk-go (github.com/aws/aws-sdk-go)
v1.54.19
===
Service Client Updates
service/acm-pca
: Updates service API, documentation, waiters, and paginatorsservice/arc-zonal-shift
: Updates service API and documentationservice/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 APIservice/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
===
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 documentationservice/bedrock-agent
: Updates service API, documentation, and paginatorsservice/bedrock-agent-runtime
: Updates service API, documentation, and paginatorsservice/bedrock-runtime
: Updates service API and documentationservice/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 documentationservice/license-manager-linux-subscriptions
: Updates service API, documentation, and paginatorsservice/mediaconnect
: Updates service API and documentation
v1.54.17
===
Service Client Updates
service/datazone
: Updates service APIservice/fsx
: Updates service API and documentationservice/opensearch
: Updates service API and documentationservice/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
===
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 examplesservice/route53resolver
: Updates service API
v1.54.15
===
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 documentationservice/qbusiness
: Updates service API and documentation
v1.54.14
===
Service Client Updates
service/application-autoscaling
: Updates service documentationservice/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
===
Service Client Updates
service/ec2
: Updates service API and documentation- Documentation updates for Elastic Compute Cloud (EC2).
service/fms
: Updates service APIservice/s3
: Updates service API, documentation, and examples- Added response overrides to Head Object requests.
v1.54.12
===
Service Client Updates
service/apigateway
: Updates service API- Add v2 smoke tests and smithy smokeTests trait for SDK testing.
service/cognito-identity
: Updates service APIservice/connect
: Updates service API, documentation, and paginatorsservice/docdb
: Updates service API- Add v2 smoke tests and smithy smokeTests trait for SDK testing.
service/eks
: Updates service APIservice/payment-cryptography
: Updates service API and documentationservice/payment-cryptography-data
: Updates service API, documentation, and waitersservice/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
===
Service Client Updates
service/acm-pca
: Updates service APIservice/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 documentationservice/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...
v0.7.3
🚀 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 |
Release Notes
gruntwork-io/terratest (github.com/gruntwork-io/terratest)
v0.47.0
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
- https://github.com/gruntwork-io/terratest/pull/1395
- https://github.com/gruntwork-io/terratest/pull/1419
v0.46.16
Description
- Updated
github.com/hashicorp/go-getter
from 1.7.4 to 1.7.5.
Related links
v0.46.15
Description
- Updated golang.org/x/net from
0.17.0
to0.23.0
.
Related links
v0.7.2
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 |
Release Notes
aws/aws-sdk-go (github.com/aws/aws-sdk-go)
v1.51.31
===
Service Client Updates
service/amplify
: Updates service API and documentationservice/connectcases
: Updates service API and documentationservice/inspector2
: Updates service API and documentationservice/timestream-query
: Updates service API and documentationservice/transcribe
: Updates service API and documentationservice/trustedadvisor
: Updates service API and documentation
v1.51.30
===
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 documentationservice/connectcampaigns
: Updates service API and documentationservice/entitlement.marketplace
: Updates service APIservice/oam
: Updates service API and documentationservice/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
===
Service Client Updates
service/appsync
: Updates service APIservice/fms
: Updates service API and documentationservice/ivs
: Updates service API and documentationservice/ivs-realtime
: Updates service APIservice/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
===
Service Client Updates
service/datasync
: Updates service API and documentationservice/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 paginatorsservice/entityresolution
: Updates service API and documentationservice/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
===
Service Client Updates
service/bedrock
: Updates service API, documentation, and paginatorsservice/bedrock-agent
: Updates service API and documentationservice/bedrock-agent-runtime
: Updates service API and documentationservice/bedrock-runtime
: Updates service API and documentationservice/ce
: Updates service API and documentationservice/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 documentationservice/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
===
Service Client Updates
service/bedrock-agent
: Updates service API and documentationservice/bedrock-agent-runtime
: Updates service API and documentationservice/payment-cryptography
: Updates service API, documentation, and waitersservice/redshift-serverless
: Updates service documentationservice/route53profiles
: Adds new serviceservice/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 examplesservice/transfer
: Updates service API and documentation- Adding new API to support remote directory listing using SFTP connector
v1.51.25
===
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 paginatorsservice/personalize
: Updates service API and documentation
v1.51.24
===
Service Client Updates
service/drs
: Updates service API and documentationservice/emr-serverless
: Updates service API and documentationservice/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 documentationservice/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
===
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
===
Service Client Updates
service/bedrock-agent
: Updates service API and documentationservice/emr-serverless
: Updates service API and documentationservice/entityresolution
: Updates service API, documentation, and paginatorsservice/iotwireless
: Updates service API and documentationservice/lakeformation
: Updates service API and documentationservice/m2
: Updates service API and documentationservice/mediapackagev2
: Updates service API and documentationservice/outposts
: Updates service API, documentation, and paginatorsservice/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... |