From ae7a76acc09dce9e95d4c1b271ee7ab0a180b78a Mon Sep 17 00:00:00 2001 From: gquadrati Date: Sun, 18 Jun 2023 21:42:39 +0200 Subject: [PATCH] small update --- .../client/simple/AssertionSimpleClientTestUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assertion-rest-client-native/src/test/java/it/pagopa/tech/lollipop/consumer/assertion/client/simple/AssertionSimpleClientTestUtils.java b/assertion-rest-client-native/src/test/java/it/pagopa/tech/lollipop/consumer/assertion/client/simple/AssertionSimpleClientTestUtils.java index 48b2ef3d..1f93160a 100644 --- a/assertion-rest-client-native/src/test/java/it/pagopa/tech/lollipop/consumer/assertion/client/simple/AssertionSimpleClientTestUtils.java +++ b/assertion-rest-client-native/src/test/java/it/pagopa/tech/lollipop/consumer/assertion/client/simple/AssertionSimpleClientTestUtils.java @@ -264,6 +264,8 @@ public static void createExpectationAssertionFound() { .withPath("/assertions/{assertion}") .withPathParameter("assertion", ASSERTION_REF) .withHeaders( + new Header( + "Ocp-Apim-Subscription-Key", "FakeSubscriptionKey"), new Header("Accept", "application/json"), new Header("x-pagopa-lollipop-auth", JWT))) .respond(response().withStatusCode(200).withBody(RESPONSE_STRING)); @@ -277,6 +279,8 @@ public static void createExpectationAssertionNotFound() { .withPath("/assertions/{assertion}") .withPathParameter("assertion", WRONG_ASSERTION_REF) .withHeaders( + new Header( + "Ocp-Apim-Subscription-Key", "FakeSubscriptionKey"), new Header("Accept", "application/json"), new Header("x-pagopa-lollipop-auth", JWT))) .respond(response().withStatusCode(404).withBody("{}"));