Skip to content

Commit 3fea129

Browse files
committed
"fix for the failed test cases"
1 parent 773e7c5 commit 3fea129

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

api/src/main/java/org/jfrog/artifactory/client/model/builder/RemoteRepositoryBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ public interface RemoteRepositoryBuilder extends NonVirtualRepositoryBuilder<Rem
102102
RemoteRepositoryBuilder clientTlsCertificate(String clientTlsCertificate);
103103

104104
String getClientTlsCertificate();
105+
106+
RemoteRepositoryBuilder fetchContentOnCreate(boolean fetchContentOnCreate);
107+
108+
boolean isFetchContentOnCreate();
105109
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ subprojects {
102102
implementation 'com.fasterxml.jackson.core:jackson-core:2.19.1'
103103
implementation 'com.fasterxml.jackson.core:jackson-databind:2.19.1'
104104
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.19.1'
105+
implementation 'org.slf4j:slf4j-simple:2.0.9'
105106
api 'org.jfrog.filespecs:file-specs-java:1.1.2'
106107
}
107108

services/src/test/groovy/org/jfrog/artifactory/client/BaseRepositoryTests.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ abstract class BaseRepositoryTests extends ArtifactoryTestsBase {
4747
protected XraySettings xraySettings
4848
protected Map<String, Object> customProperties
4949
protected Boolean storeArtifactsLocallyInRemoteRepo
50+
protected Boolean fetchContentOnCreate
5051
protected String remoteRepoUrl = "https://github.com"
5152

5253
public static final REPO_NAME_PREFIX = "rt-client-java"
@@ -141,6 +142,7 @@ abstract class BaseRepositoryTests extends ArtifactoryTestsBase {
141142
.shareConfiguration(rnd.nextBoolean())
142143
.socketTimeoutMillis(rnd.nextInt())
143144
.storeArtifactsLocally(ObjectUtils.defaultIfNull(storeArtifactsLocallyInRemoteRepo, rnd.nextBoolean()))
145+
.fetchContentOnCreate(ObjectUtils.defaultIfNull(fetchContentOnCreate, rnd.nextBoolean()))
144146
.synchronizeProperties(rnd.nextBoolean())
145147
.unusedArtifactsCleanupPeriodHours(Math.abs(rnd.nextInt()))
146148
.url(remoteRepoUrl)

services/src/test/groovy/org/jfrog/artifactory/client/GemsPackageTypeRepositoryTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.testng.annotations.Test
1414
class GemsPackageTypeRepositoryTests extends BaseRepositoryTests {
1515

1616
GemsPackageTypeRepositoryTests() {
17-
remoteRepoUrl = "https://rubygems.org"
17+
fetchContentOnCreate = false
1818
}
1919

2020
@Override

0 commit comments

Comments
 (0)