File tree Expand file tree Collapse file tree 2 files changed +0
-38
lines changed
services/src/test/groovy/org/jfrog/artifactory/client Expand file tree Collapse file tree 2 files changed +0
-38
lines changed Original file line number Diff line number Diff line change 3737 uses : jfrog/.github/actions/install-local-artifactory@main
3838 with :
3939 RTLIC : ${{ secrets.RTLIC }}
40- env :
41- # Pin Artifactory version to match working environment
42- RT_VERSION : ' 7.120.3'
43- ARTIFACTORY_VERSION : ' 7.120.3'
44- JF_PRODUCT_VERSION : ' 7.120.3'
45- PRODUCT_VERSION : ' 7.120.3'
4640
4741 - name : Install Java
4842 uses : actions/setup-java@v4
6357 echo "Artifactory did not start in time"
6458 exit 1
6559
66- - name : Print Artifactory version details
67- run : |
68- echo "Fetching Artifactory version JSON..."
69- curl -sf http://localhost:8081/artifactory/api/system/version | tee artifactory-version.json | cat
70-
7160 - name : Run tests
7261 run : ./gradlew${{ matrix.gradlewSuffix }} clean test
Original file line number Diff line number Diff line change @@ -75,31 +75,4 @@ public void testHuggingFaceFederatedRepo() {
7575 assertEquals (federatedRepoFromServer .getDescription (), "new federated huggingface repo" );
7676 assertEquals (federatedRepoFromServer .getNotes (), "some notes" );
7777 }
78-
79- @ Test
80- public void testHuggingFaceVirtualRepo () {
81- HuggingFaceRepositorySettings settings = new HuggingFaceRepositorySettingsImpl ();
82- RepositoryBuilders repositoryBuilders = artifactory .repositories ().builders ();
83- // Ensure we have at least one backing repo to include in the virtual
84- Repository localForVirtual = repositoryBuilders .localRepositoryBuilder ()
85- .key (localRepo )
86- .description ("local for virtual huggingface repo" )
87- .notes ("some notes" )
88- .repositorySettings (settings )
89- .build ();
90- artifactory .repositories ().create (0 , localForVirtual );
91- Repository virtualRepository = repositoryBuilders .virtualRepositoryBuilder ()
92- .key (virtualRepo )
93- .description ("new virtual huggingface repo" )
94- .notes ("some notes" )
95- .repositorySettings (settings )
96- .repositories (java .util .Collections .singletonList (localRepo ))
97- .build ();
98-
99- Repository virtualRepoFromServer = artifactory .repository (virtualRepo ).get ();
100- assertNotNull (virtualRepoFromServer );
101- assertEquals (virtualRepoFromServer .getKey (), virtualRepo );
102- assertEquals (virtualRepoFromServer .getDescription (), "new virtual huggingface repo" );
103- assertEquals (virtualRepoFromServer .getNotes (), "some notes" );
104- }
10578}
You can’t perform that action at this time.
0 commit comments