Changed the snapshot skip test property
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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", "+", ""))
|
||||
|
||||
Reference in New Issue
Block a user