Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Hmis updatehearing dev (#614)
Browse files Browse the repository at this point in the history
* changes added vh by user

* added crime destination

* added crime as supported

Co-authored-by: Manoj Ravipati <[email protected]>
  • Loading branch information
mjotichmcts and Ravipati89 authored Aug 8, 2022
1 parent 219d88f commit 15fd15d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions infrastructure/template/api-op-update-hearing-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
<set-header name="Ocp-Apim-Subscription-Key" exists-action="delete" />
<set-backend-service base-url="https://#{sAndLHost}#/rest/hmcts/resources/hearings" />
</when>
<when condition="@(context.Request.Headers.GetValueOrDefault("Destination-System","") == "CRIME")">
<rewrite-uri template="/sandl-in/hearings/{hearing-id}" copy-unmatched-params="true" />
<authentication-certificate certificate-id="hmicrimecert" />
<set-header name="Authorization" exists-action="delete" />
<set-backend-service base-url="https://#{crimeHost}#/" />
</when>
<when condition="@(context.Request.Headers.GetValueOrDefault("Destination-System","") == "MOCK")">
<return-response>
<set-status code="202" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package uk.gov.hmcts.futurehearings.hmi.acceptance.hearings;

import uk.gov.hmcts.futurehearings.hmi.Application;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.TestInstance;
import org.junit.platform.suite.api.IncludeTags;
Expand All @@ -13,6 +10,9 @@
import org.springframework.http.HttpStatus;
import org.springframework.test.context.ActiveProfiles;

import lombok.extern.slf4j.Slf4j;
import uk.gov.hmcts.futurehearings.hmi.Application;


@Slf4j
@SpringBootTest(classes = {Application.class})
Expand All @@ -34,7 +34,7 @@ public void initialiseValues() throws Exception {
this.setInputPayloadFileName("hearing-request-standard.json");
this.setHttpSuccessStatus(HttpStatus.ACCEPTED);
setCheckUnsupportedDestinations(true);
String[] supportedDestinations = {"CFT", "SNL"};
String[] supportedDestinations = {"CFT", "SNL", "CRIME"};
this.extractUnsupportedDestinations(supportedDestinations);
}
}

0 comments on commit 15fd15d

Please sign in to comment.