Releases: cloudposse/test-helpers
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... |
v0.7.1
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
This tag tracks the latest v4.x.x release
v3
This tag tracks the latest v3.x.x release
v2
This tag tracks the latest v2.x.x release.
🚀 Enhancements
v0.7.0
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
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
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
🎉 GitHub Codeowners Validator 0.7.4 is now available!
Highlights
✨ New functionality
-
Support GitHub App authentication (#146) (@julienduchesne)
Now, you can use the GitHub App auth instead of private token. Read more here: https://github.com/mszostok/codeowners-validator/blob/main/docs/gh-token.md#github-app. -
New experimental check: Avoid shadowing (#149) (@julienduchesne)
Reports if entries go from least specific to most specific. Otherwise, earlier entries are completely ignored.For example:
First entry
/build/logs/ @​octocat
Shadows - reported as error
* @​s1
/b*/logs @​s5
OK
/b*/other @​o1
/script/* @​o2
```
🔧 Bug Fixes
- Apply hot fix to resolve issue with untrusted git repository for
not-owned
checker (#148) (@mszostok)
Added to solve problem whttps://github.com/actions/checkout/issues/766/766.
Changelog
7dfc6dc
: Support Github App authentication (#146) (@julienduchesne)0e995bc
: New experimental check: Avoid shadowing (#149) (@julienduchesne)d1be488
: Apply hot fix to resolve issue with untrusted git repository fornot-owned
checker (#148) (@mszostok)cfa4033
: Update main README.md (#153) (@mszostok)7f3f5e2
: Adjust docs and GitHub action for v0.7.4 release (#154) (@mszostok)
v0.7.3
🎉 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 thenot-owned
check should be executed. To configure that, use theNOT_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
a16e4b9
: not-owned-checker: Add git-ls-tree implementation with subdirectory support (#141) (@jeremycohen)2ae5a4b
: Add token validation when necessary, fmt shell code, enable 'gocritics' (#143) (@mszostok)4e0aa9d
: Prepare for release v0.7.3 (#144) (@mszostok)436c7ac
: Fix scope and internal error handling (#145) (@mszostok)
v0.7.2
🎉 GitHub Codeowners Validator 0.7.2 is now available!
Highlights
🔧 Bug Fixes
- Handle internal err, return issue with empty codeowners or git dirty state (#130)
This fixes a tech debt wherecodeowners-validator
only logged the internal error and excited with0
status code. Now, if there is any error, a proper exit code is returned. - Allow comments in pattern line, update golangci-lint (#129) (@mszostok)
Recently, GitHub allowed comments in CODEOWNERS files to appear at the end of a line, not just on their own line. As a result, a validation rule was removed to conform with a new syntax.
✨ 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
- Bump dependencies (#135) (@mszostok)
- Bump alpine from 3.15.3 to 3.15.4 (#136) (@dependabot[bot])
Installation
See the [Installation](https://togithub.com/mszostok/codeowners-validato...
v0.6.0
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 |