diff --git a/source/Stargate-API-Skeleton-Tests/StargateApplicationTest.class.st b/source/Stargate-API-Skeleton-Tests/StargateApplicationTest.class.st index e469f13..9a07e8a 100644 --- a/source/Stargate-API-Skeleton-Tests/StargateApplicationTest.class.st +++ b/source/Stargate-API-Skeleton-Tests/StargateApplicationTest.class.st @@ -292,39 +292,6 @@ StargateApplicationTest >> testGetPets [ assert: json links size equals: 1 ] -{ #category : 'tests - logs' } -StargateApplicationTest >> testLogIncomingAndOutgoingRequestsDuringSuccessfulGet [ - - | logRecords | - logger runDuring: [ - logIncomingHTTPRequests := logOutgoingHTTPRequests := true. - self testGetPets - ]. - - logRecords := ( logger recordings copyLast: 6 ) collect: [ :record | - NeoJSONObject fromString: - ( String streamContents: [ :stream | record printOneLineJsonOn: stream ] ) ]. - - self - assert: ( logRecords at: 1 ) message equals: 'Server accepted connection'; - assert: ( ( logRecords at: 1 ) process matchesRegex: 'ZnManagingMultiThreadedServer HTTP port (\d+)' ); - - assert: ( logRecords at: 2 ) message equals: 'Outgoing HTTP request sent'; - assert: ( logRecords at: 2 ) process equals: 'Launchpad CLI'; - - assert: ( logRecords at: 3 ) message equals: 'Incoming HTTP request received'; - assert: ( logRecords at: 3 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker'; - - assert: ( logRecords at: 4 ) message equals: 'Incoming HTTP request responded'; - assert: ( logRecords at: 4 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker'; - - assert: ( logRecords at: 5 ) message equals: 'Server closed connection'; - assert: ( logRecords at: 5 ) process equals: 'ZnManagingMultiThreadedServer HTTP worker'; - - assert: ( logRecords at: 6 ) message equals: 'Outgoing HTTP request responded'; - assert: ( logRecords at: 6 ) process equals: 'Launchpad CLI' -] - { #category : 'tests - logs' } StargateApplicationTest >> testLogIncomingRequestsDuringSuccessfulGet [