File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/test/java/software/amazon/lambda/powertools/logging Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 186186 <configuration >
187187 <environmentVariables >
188188 <AWS_LAMBDA_LOG_FORMAT >JSON</AWS_LAMBDA_LOG_FORMAT >
189+ <POWERTOOLS_SERVICE_NAME >testService</POWERTOOLS_SERVICE_NAME >
189190 </environmentVariables >
190191 </configuration >
191192 </plugin >
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ void initializeLogging_withContextOnly_shouldSetLambdaFields() {
245245 .containsEntry (PowertoolsLoggedFields .FUNCTION_NAME .getName (), "test-function" )
246246 .containsEntry (PowertoolsLoggedFields .FUNCTION_VERSION .getName (), "1" )
247247 .containsEntry (PowertoolsLoggedFields .FUNCTION_COLD_START .getName (), "true" )
248- .containsEntry (PowertoolsLoggedFields .SERVICE .getName (), "service_undefined " );
248+ .containsEntry (PowertoolsLoggedFields .SERVICE .getName (), "testService " );
249249 }
250250
251251 @ Test
You can’t perform that action at this time.
0 commit comments