Skip to content

Commit

Permalink
Added comment for future RS endpoints
Browse files Browse the repository at this point in the history
Co-Authored-By: Sylvie <[email protected]>
Co-Authored-By: halprin <[email protected]>
Co-Authored-By: jcrichlake <[email protected]>
Co-Authored-By: Bella L. Quintero <[email protected]>
  • Loading branch information
5 people committed Jan 7, 2025
1 parent 00812a3 commit cadf54a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ DomainResponse handleResults(DomainRequest request) {
}

DomainResponse handleMetadata(DomainRequest request) {
// Any new endpoint that will call RS **must** include this check.
if (Boolean.parseBoolean(request.getHeaders().get("load-test"))
&& ApplicationContext.isPropertyPresent("REPORT_STREAM_URL_PREFIX")) {
// register the mock RS endpoint for this HTTP request because we don't want to call RS
Expand Down Expand Up @@ -234,6 +235,7 @@ protected DomainResponse handleMessageRequest(
boolean markMetadataAsFailed = false;
String errorMessage = "";

// Any new endpoint that will call RS **must** include this check.
if (Boolean.parseBoolean(request.getHeaders().get("load-test"))
&& ApplicationContext.isPropertyPresent("REPORT_STREAM_URL_PREFIX")) {
// register the mock RS endpoint for this HTTP request because we don't want to call RS
Expand Down

0 comments on commit cadf54a

Please sign in to comment.