-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API-7747 - Updating to use HttpClientV2 (#515)
- Loading branch information
1 parent
6c035ee
commit 6b2f185
Showing
17 changed files
with
102 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ import scala.concurrent.ExecutionContext.Implicits.global | |
import com.github.tomakehurst.wiremock.client.WireMock._ | ||
|
||
import play.api.http.Status._ | ||
import uk.gov.hmrc.http.{HeaderCarrier, HttpClient} | ||
import uk.gov.hmrc.http.HeaderCarrier | ||
import uk.gov.hmrc.http.test.HttpClientV2Support | ||
|
||
import uk.gov.hmrc.apiplatform.modules.common.domain.models.LaxEmailAddress.StringSyntax | ||
import uk.gov.hmrc.apiplatform.modules.common.domain.models.{Actors, ApplicationId} | ||
|
@@ -45,14 +46,12 @@ class ApiPlatformEventsConnectorSpec extends ConnectorSpec { | |
requestingAdminEmail = "[email protected]".toLaxEmail | ||
) | ||
|
||
abstract class Setup(enabled: Boolean = true) { | ||
abstract class Setup(enabled: Boolean = true) extends HttpClientV2Support { | ||
import uk.gov.hmrc.apiplatform.modules.events.applications.domain.services.EventsInterServiceCallJsonFormatters._ | ||
|
||
val http: HttpClient = app.injector.instanceOf[HttpClient] | ||
|
||
val config: ApiPlatformEventsConnector.Config = ApiPlatformEventsConnector.Config(wireMockUrl, enabled) | ||
|
||
val underTest = new ApiPlatformEventsConnector(http, config) | ||
lazy val underTest = new ApiPlatformEventsConnector(httpClientV2, config) | ||
|
||
def apiApplicationEventWillReturnCreated(request: ApplicationEvent) = | ||
stubFor( | ||
|
Oops, something went wrong.