AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
48 stars 21 forks source link

InterpolatorTest fails on windows when PATH is the first environment variable #26

Closed Wonno closed 3 years ago

Wonno commented 3 years ago

When running tests with maven on windows InterpolatorTest fails when PATH is the first environment variable

Not sure if its a problem with the Interpolator or just the test setup.

[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.weareadaptive.nexus.casc.plugin.internal.InterpolatorTest
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.283 s <<< FAILURE! - in com.weareadaptive.nexus.casc.plugin.internal.InterpolatorTest
[ERROR] interpolateWithEnvVar  Time elapsed: 0.247 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <hello C:\Program Files\Amazon Corretto\jdk11.0.11_9\bin;C:\Program Files\[...]
    but was: <hello C:Program FilesAmazon Correttojdk11.0.11_9bin;C:Program Files[...]
    at com.weareadaptive.nexus.casc.plugin.internal.InterpolatorTest.interpolateWithEnvVar(InterpolatorTest.java:22)