Skip to content

Commit b766a83

Browse files
authored
chore(pipes-targets): update integration tests to use SqsSource (#31588)
This incorporates feedback from #30756 so all integration tests are uniform. Related to #31589.
1 parent 17b12f2 commit b766a83

30 files changed

+3623
-4227
lines changed

packages/@aws-cdk/aws-pipes-targets-alpha/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare const targetQueue: sqs.Queue;
4747
const pipeTarget = new targets.SqsTarget(targetQueue);
4848

4949
const pipe = new pipes.Pipe(this, 'Pipe', {
50-
source: new SomeSource(sourceQueue),
50+
source: new SqsSource(sourceQueue),
5151
target: pipeTarget
5252
});
5353
```
@@ -68,7 +68,7 @@ const pipeTarget = new targets.SqsTarget(targetQueue,
6868
);
6969

7070
const pipe = new pipes.Pipe(this, 'Pipe', {
71-
source: new SomeSource(sourceQueue),
71+
source: new SqsSource(sourceQueue),
7272
target: pipeTarget
7373
});
7474
```
@@ -84,7 +84,7 @@ declare const targetStateMachine: sfn.IStateMachine;
8484
const pipeTarget = new targets.SfnStateMachine(targetStateMachine,{});
8585

8686
const pipe = new pipes.Pipe(this, 'Pipe', {
87-
source: new SomeSource(sourceQueue),
87+
source: new SqsSource(sourceQueue),
8888
target: pipeTarget
8989
});
9090
```
@@ -102,7 +102,7 @@ const pipeTarget = new targets.SfnStateMachine(targetStateMachine,
102102
);
103103

104104
const pipe = new pipes.Pipe(this, 'Pipe', {
105-
source: new SomeSource(sourceQueue),
105+
source: new SqsSource(sourceQueue),
106106
target: pipeTarget
107107
});
108108
```
@@ -121,7 +121,7 @@ const pipeTarget = new targets.SfnStateMachine(targetStateMachine,
121121
);
122122

123123
const pipe = new pipes.Pipe(this, 'Pipe', {
124-
source: new SomeSource(sourceQueue),
124+
source: new SqsSource(sourceQueue),
125125
target: pipeTarget
126126
});
127127
```
@@ -137,7 +137,7 @@ declare const targetFunction: lambda.IFunction;
137137
const pipeTarget = new targets.LambdaFunction(targetFunction,{});
138138

139139
const pipe = new pipes.Pipe(this, 'Pipe', {
140-
source: new SomeSource(sourceQueue),
140+
source: new SqsSource(sourceQueue),
141141
target: pipeTarget
142142
});
143143
```
@@ -153,7 +153,7 @@ const pipeTarget = new targets.LambdaFunction(targetFunction, {
153153
});
154154

155155
const pipe = new pipes.Pipe(this, 'Pipe', {
156-
source: new SomeSource(sourceQueue),
156+
source: new SqsSource(sourceQueue),
157157
target: pipeTarget
158158
});
159159
```
@@ -169,7 +169,7 @@ const pipeTarget = new targets.LambdaFunction(targetFunction, {
169169
});
170170

171171
const pipe = new pipes.Pipe(this, 'Pipe', {
172-
source: new SomeSource(sourceQueue),
172+
source: new SqsSource(sourceQueue),
173173
target: pipeTarget
174174
});
175175
```

packages/@aws-cdk/aws-pipes-targets-alpha/test/integ.api-destination.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Pipe } from '@aws-cdk/aws-pipes-alpha';
2-
// eslint-disable-next-line import/no-extraneous-dependencies
32
import { SqsSource } from '@aws-cdk/aws-pipes-sources-alpha';
43
import { ExpectedResult, IntegTest } from '@aws-cdk/integ-tests-alpha';
54
import * as cdk from 'aws-cdk-lib';

packages/@aws-cdk/aws-pipes-targets-alpha/test/integ.kinesis.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Pipe } from '@aws-cdk/aws-pipes-alpha';
2-
// eslint-disable-next-line import/no-extraneous-dependencies
32
import { SqsSource } from '@aws-cdk/aws-pipes-sources-alpha';
43
import { IntegTest } from '@aws-cdk/integ-tests-alpha';
54
import * as cdk from 'aws-cdk-lib';

0 commit comments

Comments
 (0)