Changed the snapshot skip test property

This commit is contained in:
Marcin Grzejszczak
2018-02-16 14:06:33 +01:00
parent a2d866dd39
commit c8ec61c1c2
3 changed files with 3 additions and 3 deletions

View File

@@ -822,7 +822,7 @@ and failed the build.
For such cases we're introducing the property mechanism:
- via `stubrunner.snapshot-check.skip` system property
- via `stubrunner.snapshot-check-skip` system property
- via `STUBRUNNER_SNAPSHOT_CHECK_SKIP` environment variable
if either of these values is set to `true`, then the stub downloader will not

View File

@@ -72,7 +72,7 @@ public class AetherStubDownloader implements StubDownloader {
private static final String ARTIFACT_EXTENSION = "jar";
private static final String LATEST_ARTIFACT_VERSION = "(,]";
private static final String LATEST_VERSION_IN_IVY = "+";
private static final String STUBRUNNER_SNAPSHOT_CHECK_SKIP_SYSTEM_PROP = "stubrunner.snapshot-check.skip";
private static final String STUBRUNNER_SNAPSHOT_CHECK_SKIP_SYSTEM_PROP = "stubrunner.snapshot-check-skip";
private static final String STUBRUNNER_SNAPSHOT_CHECK_SKIP_ENV_VAR = "STUBRUNNER_SNAPSHOT_CHECK_SKIP";
private final List<RemoteRepository> remoteRepos;

View File

@@ -77,7 +77,7 @@ class AetherStubDownloaderSpec extends Specification {
AetherStubDownloader aetherStubDownloader = new AetherStubDownloader(stubRunnerOptions)
and:
System.properties.setProperty("stubrunner.snapshot-check.skip", "true")
System.properties.setProperty("stubrunner.snapshot-check-skip", "true")
when:
def jar = aetherStubDownloader.downloadAndUnpackStubJar(new StubConfiguration("org.springframework.cloud", "spring-cloud-contract-spec", "+", ""))