Skip to content

Commit 6d10375

Browse files
authored
Add tags to VPC created for acceptance tests (#258)
1 parent 5476467 commit 6d10375

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed
1515

1616
- Dynamically calculate CAPI and CAPA versions from go cache, so that we use the right path when installing the CRDs during tests.
17+
- Add tags to VPC created for acceptance tests.
1718

1819
### Fixed
1920

tests/acceptance/fixture/fixture.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,17 @@ func (f *Fixture) Teardown() error {
157157
func (f *Fixture) createNetwork() Network {
158158
createVpcOutput, err := f.EC2Client.CreateVpc(&ec2.CreateVpcInput{
159159
CidrBlock: awssdk.String(ClusterVCPCIDR),
160+
TagSpecifications: []*ec2.TagSpecification{
161+
{
162+
ResourceType: awssdk.String(ec2.ResourceTypeVpc),
163+
Tags: []*ec2.Tag{
164+
{
165+
Key: awssdk.String("aws-resolver-rules-operator.giantswarm.io/tests"),
166+
Value: awssdk.String("acceptance"),
167+
},
168+
},
169+
},
170+
},
160171
})
161172
Expect(err).NotTo(HaveOccurred())
162173

0 commit comments

Comments
 (0)