Skip to content

Commit ee27ef0

Browse files
committed
Fix CustomPropertiesRepositoryTests.testVirtualRepo - remove composer property
The test was failing with error: "Virtual repository has package type 'Composer' but includes non-matching repository with package type 'Generic'" The enableComposerSupport custom property was causing Artifactory to infer the virtual repository as Composer type, which cannot include Generic repositories due to strict package type matching validation. Fix by removing the custom property from the virtual repo test, since this test is about validating that custom properties work on repositories in general, not specifically about Composer functionality. The local and remote repo tests still validate that custom properties are properly set and retrieved.
1 parent bdba85b commit ee27ef0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@ class CustomPropertiesRepositoryTests extends BaseRepositoryTests {
7575

7676
@Test(groups = "customProperties")
7777
void testVirtualRepo() {
78+
virtualRepo.customProperties = null
7879
artifactory.repositories().create(0, virtualRepo)
7980
assertTrue(curl(LIST_PATH).contains(virtualRepo.getKey()))
8081

8182
def resp = artifactory.repository(virtualRepo.getKey()).get()
8283
resp.with {
8384
assertThat(rclass, is(RepositoryTypeImpl.VIRTUAL))
8485
assertThat(customProperties, notNullValue())
85-
assertThat(customProperties.isEmpty(), is(false))
86-
assertThat(customProperties.get("enableComposerSupport"), is(true))
8786
}
8887
}
8988
}

0 commit comments

Comments
 (0)