Skip to content

Commit

Permalink
[plugin-web-app-to-rest-api] Avoid request sub-steps reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
EDbarvinsky committed Apr 13, 2023
1 parent 2e37c80 commit a94e945
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Loggers>
<Logger name="org.vividus.http.client.WebAppToRestApiHttpClient" level="INFO" additivity="false">
<AppenderRef ref="console" />
<AppenderRef ref="file" />
</Logger>
</Loggers>
</Configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@

<bean id="resourceCheckSteps" class="org.vividus.steps.integration.ResourceCheckSteps" init-method="init">
<property name="uriToIgnoreRegex" value="${resource-checker.uri-to-ignore-regex}" />
<constructor-arg name="httpRequestExecutor">
<bean class="org.vividus.http.HttpRequestExecutor">
<constructor-arg>
<bean class="org.vividus.http.client.HttpClient"
factory-bean="httpClientFactory"
factory-method="buildHttpClient">
<constructor-arg>
<bean parent="restApiHttpClientConfig">
<property name="firstRequestInterceptor">
<bean class="org.vividus.http.client.LoggingHttpRequestInterceptor">
<constructor-arg value="org.vividus.http.client.WebAppToRestApiHttpClient" />
</bean>
</property>
</bean>
</constructor-arg>
</bean>
</constructor-arg>
<constructor-arg ref="httpTestContext" />
<constructor-arg ref="softAssert" />
</bean>
</constructor-arg>
</bean>

<bean id="httpRedirectsProvider" class="org.vividus.http.HttpRedirectsProvider">
Expand All @@ -21,6 +42,11 @@
<constructor-arg>
<bean parent="httpClientConfig">
<property name="circularRedirectsAllowed" value="${http.redirects-provider.circular-redirects-allowed}" />
<property name="firstRequestInterceptor">
<bean class="org.vividus.http.client.LoggingHttpRequestInterceptor">
<constructor-arg value="org.vividus.http.client.WebAppToRestApiHttpClient" />
</bean>
</property>
</bean>
</constructor-arg>
</bean>
Expand All @@ -46,6 +72,11 @@
<constructor-arg value="sitemap.parser.http.header." />
</bean>
</property>
<property name="firstRequestInterceptor">
<bean class="org.vividus.http.client.LoggingHttpRequestInterceptor">
<constructor-arg value="org.vividus.http.client.WebAppToRestApiHttpClient" />
</bean>
</property>
</bean>
</constructor-arg>
</bean>
Expand Down

0 comments on commit a94e945

Please sign in to comment.