File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
LambdaRuntimeDockerfiles/SmokeTests/test Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ public ImageFunctionTests()
71
71
[ InlineData ( "ImageFunction::ImageFunction.Function::Ping" , "ping" , "pong" ) ]
72
72
[ InlineData ( "ImageFunction::ImageFunction.Function::HttpsWorksAsync" , "" , "SUCCESS" ) ]
73
73
[ InlineData ( "ImageFunction::ImageFunction.Function::VerifyLambdaContext" , "" , "SUCCESS" ) ]
74
+ [ InlineData ( "ImageFunction::ImageFunction.Function::VerifyTzData" , "" , "SUCCESS" ) ]
74
75
public async Task SuccessfulTests ( string handler , string input , string expectedResponse )
75
76
{
76
77
await UpdateHandlerAsync ( handler ) ;
@@ -170,6 +171,7 @@ await _lambdaClient.CreateFunctionAsync(new CreateFunctionRequest
170
171
MemorySize = 512 ,
171
172
Role = _executionRoleArn ,
172
173
PackageType = PackageType . Image ,
174
+ Timeout = 30 ,
173
175
Architectures = new List < string > { GetArchitecture ( ) }
174
176
} ) ;
175
177
break ;
Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ public string VerifyLambdaContext(ILambdaContext lambdaContext)
116
116
return GetResponse ( true ) ;
117
117
}
118
118
119
+ public string VerifyTzData ( ILambdaContext lambdaContext )
120
+ {
121
+ AssertTrue ( TimeZoneInfo . GetSystemTimeZones ( ) . Count > 0 , "No time zones were found" ) ;
122
+ AssertNotNull ( TimeZoneInfo . FindSystemTimeZoneById ( "Europe/London" ) , "Failed to find Europe/London timezone" ) ;
123
+
124
+ return SuccessResult ;
125
+ }
126
+
119
127
#endregion
120
128
121
129
#region Private methods
You can’t perform that action at this time.
0 commit comments