From c595526beffe2c043286f5427a87c11884024830 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Tue, 12 Dec 2023 15:05:14 +0200 Subject: [PATCH] Added test for gradle --- utils/tests/utils.go | 2 +- xray_test.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/tests/utils.go b/utils/tests/utils.go index 00d738513..0ab37af12 100644 --- a/utils/tests/utils.go +++ b/utils/tests/utils.go @@ -398,7 +398,7 @@ func GetNonVirtualRepositories() map[*string]string { TestPip: {&PypiRemoteRepo}, TestPipenv: {&PipenvRemoteRepo}, TestPlugins: {&RtRepo1}, - TestXray: {&NpmRemoteRepo, &NugetRemoteRepo, &YarnRemoteRepo}, + TestXray: {&NpmRemoteRepo, &NugetRemoteRepo, &YarnRemoteRepo, &GradleRemoteRepo}, TestAccess: {&RtRepo1}, TestTransfer: {&RtRepo1, &RtRepo2, &MvnRepo1, &MvnRemoteRepo, &DockerRemoteRepo}, TestLifecycle: {&RtDevRepo, &RtProdRepo}, diff --git a/xray_test.go b/xray_test.go index c70044f3e..7b544dfab 100644 --- a/xray_test.go +++ b/xray_test.go @@ -988,6 +988,12 @@ func TestDependencyResolutionFromArtifactory(t *testing.T) { cacheRepoName: tests.YarnRemoteRepo, projectType: artUtils.Yarn, }, + { + testProjectPath: []string{"gradle", "gradleproject"}, + resolveRepoName: tests.GradleRemoteRepo, + cacheRepoName: tests.GradleRemoteRepo, + projectType: artUtils.Gradle, + }, } createJfrogHomeConfig(t, true) defer cleanTestsHomeEnv()