* Issue #6327 Ensure TempDirTest runs in envs other than CI Signed-off-by: Jan Bartel <janb@webtide.com> * pass sysproperty env=ci to surefire run Signed-off-by: Olivier Lamy <oliver.lamy@gmail.com> Co-authored-by: Olivier Lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
9f896c6390
commit
b2c420a124
|
@ -27,6 +27,7 @@ import org.junit.jupiter.api.AfterEach;
|
|||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
||||
|
@ -289,9 +290,11 @@ public class TempDirTest
|
|||
|
||||
/**
|
||||
* ServletContext.TEMPDIR has invalid <code>String</code> directory value (wrong permission to write into it)
|
||||
* IllegalStateException
|
||||
*
|
||||
* Note that if run in the CI environment, the test will fail, because it runs as root,
|
||||
* so we _will_ have permission to write to this directory.
|
||||
*/
|
||||
@Disabled("Jenkins will run as root so we do have permission to write to this directory.")
|
||||
@DisabledIfSystemProperty(named = "env", matches = "ci")
|
||||
@Test
|
||||
public void attributeWithInvalidPermissions()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue