Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into huijbers/coverage-txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed Aug 25, 2023
2 parents 5227fe2 + 6227c94 commit 47bf4bd
Show file tree
Hide file tree
Showing 70 changed files with 2,037 additions and 249 deletions.
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"!{workspaceRoot}/**/tsconfig.json",
"!{workspaceRoot}/**/tsconfig.json",
"!{workspaceRoot}/tsconfig.base.json",
"!{workspaceRoot}/**/tsconfig.tsbuildinfo"
"!{workspaceRoot}/**/tsconfig.tsbuildinfo",
"!{workspaceRoot}/**/jest.config.js"
],
"outputs": [
"{projectRoot}/**/*.integ.*.js.snapshot/*",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"jsii-pacmak": "1.87.0",
"jsii-reflect": "1.87.0",
"jsii-rosetta": "~5.1.10",
"ts-jest": "^29.1.1",
"lerna": "^7.1.5",
"nx": "^16.7.3",
"patch-package": "^6.5.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { sleep } from '../lib';
import { ResourcePool } from '../lib/resource-pool';

jest.setTimeout(30_000);

const POOL_NAME = 'resource-pool.test';

test('take and dispose', async () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/@aws-cdk-testing/framework-integ/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ nyc.config.js

!**/*.snapshot/**/asset.*/**

**/*.ts.snapshot
**/*.ts.snapshot

!jest.config.js
14 changes: 14 additions & 0 deletions packages/@aws-cdk-testing/framework-integ/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
// Purposely only run .js files, not .ts files. This is so that the unit tests
// here will use the jsii-compiled version of `aws-cdk-lib`, and not the live-interpreted
// .ts files.
moduleFileExtensions: [
'js',
],
testMatch: [
'<rootDir>/test/**/?(*.)+(test).js',
],

testEnvironment: 'node',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"33.0.0"}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "33.0.0",
"files": {
"065ae19c4c6accff85009f33f18e0ec2e2ed000b2cd704aed4eaa1778b943256": {
"source": {
"path": "integ-realtime-config.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "065ae19c4c6accff85009f33f18e0ec2e2ed000b2cd704aed4eaa1778b943256.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"Resources": {
"Role1ABCC5F0": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "cloudfront.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"RoleDefaultPolicy5FFB7DAB": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"kinesis:DescribeStream",
"kinesis:DescribeStreamSummary",
"kinesis:PutRecord",
"kinesis:PutRecords"
],
"Effect": "Allow",
"Resource": {
"Fn::GetAtt": [
"stream19075594",
"Arn"
]
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "RoleDefaultPolicy5FFB7DAB",
"Roles": [
{
"Ref": "Role1ABCC5F0"
}
]
}
},
"stream19075594": {
"Type": "AWS::Kinesis::Stream",
"Properties": {
"RetentionPeriodHours": 24,
"StreamEncryption": {
"EncryptionType": "KMS",
"KeyId": "alias/aws/kinesis"
},
"StreamModeDetails": {
"StreamMode": "ON_DEMAND"
}
}
},
"RealtimeLog31F8FA14": {
"Type": "AWS::CloudFront::RealtimeLogConfig",
"Properties": {
"EndPoints": [
{
"KinesisStreamConfig": {
"RoleArn": {
"Fn::GetAtt": [
"Role1ABCC5F0",
"Arn"
]
},
"StreamArn": {
"Fn::GetAtt": [
"stream19075594",
"Arn"
]
}
},
"StreamType": "Kinesis"
}
],
"Fields": [
"timestamp"
],
"Name": "testing",
"SamplingRate": 1
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "33.0.0",
"testCases": {
"integ-realtime-config/realtime-log-config/DefaultTest": {
"stacks": [
"integ-realtime-config"
],
"assertionStack": "integ-realtime-config/realtime-log-config/DefaultTest/DeployAssert",
"assertionStackName": "integrealtimeconfigrealtimelogconfigDefaultTestDeployAssert02ABDB2F"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "33.0.0",
"files": {
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
"source": {
"path": "integrealtimeconfigrealtimelogconfigDefaultTestDeployAssert02ABDB2F.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}
Loading

0 comments on commit 47bf4bd

Please sign in to comment.