Skip to content

Commit

Permalink
Eliminated depedency on sfdx, upgraded sf CLI to v2, fixed some depen…
Browse files Browse the repository at this point in the history
…dabot alerts
  • Loading branch information
jongpie committed Aug 7, 2023
1 parent d972e19 commit 1a6f002
Show file tree
Hide file tree
Showing 4 changed files with 30,092 additions and 25,238 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ public class LoggerMockDataCreator {
response.setBody(this.responseBody);
}
response.setStatusCode(this.statusCode);
response.setStatus(this.statusMessage);
if (String.isNotBlank(this.statusMessage) == true) {
response.setStatus(this.statusMessage);
}
return response;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7825,7 +7825,7 @@ private class Logger_Tests {
String errorStatusMessage = 'Oops, did not understand request, or something... IDK.... it\'s broken ¯\\_(ツ)_/¯';
System.Test.setMock(
System.HttpCalloutMock.class,
LoggerMockDataCreator.createHttpCallout().setStatusCode(errorStatusCode).setResponseBody(mockErrorMessage)
LoggerMockDataCreator.createHttpCallout().setStatusCode(errorStatusCode).setStatus(errorStatusMessage).setResponseBody(mockErrorMessage)
);
System.Assert.areEqual(0, LoggerMockDataStore.getEventBus().getPublishedPlatformEvents().size());

Expand All @@ -7846,7 +7846,7 @@ private class Logger_Tests {
errorStatusCode +
', status message: ' +
errorStatusMessage;
System.Assert.isTrue(logEntryEvent.ExceptionMessage__c.startsWith('Callout failed for https://api.status.salesforce.com/v1/instances/'));
System.Assert.areEqual(expectedExceptionMessage, logEntryEvent.ExceptionMessage__c);
}

@IsTest
Expand Down
Loading

0 comments on commit 1a6f002

Please sign in to comment.