Skip to content

Commit c263cba

Browse files
committed
"defining different artifactory home for all the os"
1 parent 6215d5c commit c263cba

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
uses: actions/checkout@v4
3030
with:
3131
ref: ${{ github.event.pull_request.head.sha }}
32+
33+
- name: Set unique Artifactory home
34+
run: echo "ARTIFACTORY_HOME=$(mktemp -d)" >> $GITHUB_ENV
35+
3236
- name: Setup Go with cache
3337
uses: jfrog/.github/actions/install-go-with-cache@main
3438

@@ -55,6 +59,6 @@ jobs:
5559
done
5660
echo "Artifactory did not start in time"
5761
exit 1
58-
62+
5963
- name: Run tests
6064
run: ./gradlew${{ matrix.gradlewSuffix }} clean test

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ class GemsPackageTypeRepositoryTests extends BaseRepositoryTests {
2222
RepositorySettings getRepositorySettings(RepositoryType repositoryType) {
2323
def settings = new GemsRepositorySettingsImpl()
2424

25-
// Only set listRemoteFolderItems for remote repositories such that no indexing happens
26-
if (repositoryType == org.jfrog.artifactory.client.model.impl.RepositoryTypeImpl.REMOTE) {
27-
settings.listRemoteFolderItems = false
25+
settings.with {
26+
// remote
27+
listRemoteFolderItems = rnd.nextBoolean()
2828
}
29+
2930
return settings
3031
}
3132

0 commit comments

Comments
 (0)