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 14, 2023
1 parent 42a1cc5 commit e636dcf
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Loggers>
<Logger name="org.vividus.http.HttpRequestExecutor" level="INFO" additivity="false">
<AppenderRef ref="console" />
<AppenderRef ref="file" />
</Logger>
<Logger name="org.vividus.http.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.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.WebAppToRestApiHttpClient" />
</bean>
</property>
</bean>
</constructor-arg>
</bean>
Expand Down

0 comments on commit e636dcf

Please sign in to comment.