Skip to content

Commit

Permalink
[MSITE-880] AbstractSiteDeployWebDavTest should not log
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Jan 15, 2022
1 parent 94e03e7 commit db0ed41
Showing 1 changed file with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @author Olivier Lamy
Expand All @@ -57,8 +55,6 @@ public abstract class AbstractSiteDeployWebDavTest

File siteTargetPath = new File( getBasedir() + File.separator + "target" + File.separator + "siteTargetDeploy" );

private Logger log = LoggerFactory.getLogger( getClass() );

@Before
public void setUp()
throws Exception
Expand Down Expand Up @@ -158,18 +154,12 @@ public void davDeployThruProxyWithoutAuthzInProxy()
assertContentInFiles();

assertTrue( requestsContainsProxyUse( simpleDavServerHandler.httpRequests ) );

for ( HttpRequest rq : simpleDavServerHandler.httpRequests )
{
log.info( rq.toString() );
}

}
finally
{
simpleDavServerHandler.stop();
}
}

}

@Test
Expand All @@ -184,7 +174,7 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception

AuthAsyncProxyServlet servlet = new AuthAsyncProxyServlet( authentications, siteTargetPath );

SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler( servlet );
SimpleDavServerHandler simpleDavServerHandler = new SimpleDavServerHandler( servlet );
try
{
File pluginXmlFile = getTestFile( "src/test/resources/unit/deploy-dav/pom.xml" );
Expand Down Expand Up @@ -242,16 +232,12 @@ public void davDeployThruProxyWitAuthzInProxy() throws Exception
assertContentInFiles();
assertTrue( requestsContainsProxyUse( servlet.httpRequests ) );
assertAtLeastOneRequestContainsHeader( servlet.httpRequests, "Proxy-Authorization" );
for ( HttpRequest rq : servlet.httpRequests )
{
log.info( rq.toString() );
}
}
finally
{
simpleDavServerHandler.stop();
}
}
}
}

private void assertContentInFiles()
throws Exception
Expand Down

0 comments on commit db0ed41

Please sign in to comment.