Skip to content

Commit da057e2

Browse files
author
Ubuntu
committed
Splitting aws cli and pytest cases and adding Debug commands
1 parent 40585f5 commit da057e2

File tree

12 files changed

+381
-2197
lines changed

12 files changed

+381
-2197
lines changed

python-test-samples/step-functions-local-helloworld/README.md

Lines changed: 73 additions & 1606 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AWS_ACCESS_KEY_ID=DUMMYIDEXAMPLE
2+
AWS_SECRET_ACCESS_KEY=DUMMYEXAMPLEKEY
3+
AWS_DEFAULT_REGION=us-east-1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
boto3>=1.26.79
22
pytest>=7.2.1
33
pathlib
4-
testcontainers
4+
testcontainers

python-test-samples/step-functions-local-lambda/README.md

Lines changed: 129 additions & 235 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,10 @@
1-
{
2-
"Comment": "This state machine is called: MathOperationsStateMachine",
3-
"StartAt": "Lambda Sum State",
1+
{
2+
"Comment": "Hello World State Machine of the Amazon States Language using a Pass state",
3+
"StartAt": "HelloWorld",
44
"States": {
5-
"Lambda Sum State": {
6-
"Type": "Task",
7-
"Resource": "arn:aws:states:::lambda:invoke",
8-
"Parameters": {
9-
"FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:StepFunctionExampleSumLambda",
10-
"Payload.$": "$"
11-
},
12-
"InputPath": "$",
13-
"OutputPath": "$.Payload",
14-
"Next": "Wait State"
15-
},
16-
"Wait State": {
17-
"Type": "Wait",
18-
"Seconds": 3,
19-
"Next": "Lambda Square State"
20-
},
21-
"Lambda Square State": {
22-
"Type": "Task",
23-
"Resource": "arn:aws:states:::lambda:invoke",
24-
"Parameters": {
25-
"FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:StepFunctionExampleSquareLambda",
26-
"Payload.$": "$"
27-
},
28-
"InputPath": "$.Payload",
29-
"OutputPath": "$.Payload",
5+
"HelloWorld": {
6+
"Type": "Pass",
307
"End": true
318
}
32-
},
33-
"TimeoutSeconds": 300
34-
}
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"data": {
3+
},
4+
"comments": ""
5+
}
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AWS_ACCESS_KEY_ID=DUMMYIDEXAMPLE
2+
AWS_SECRET_ACCESS_KEY=DUMMYEXAMPLEKEY
3+
AWS_DEFAULT_REGION=us-east-1
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
pytest==8.3.5
2-
boto3==1.34.25
3-
testcontainers==3.7.1
4-
botocore==1.34.25
5-
pytest-timeout==2.3.1
6-
pytest-xdist==3.5.0
7-
python-dotenv==1.0.1
8-
requests>=2.31.0
1+
boto3>=1.26.79
2+
pytest>=7.2.1
3+
pathlib
4+
testcontainers

0 commit comments

Comments
 (0)