Skip to content

Commit

Permalink
Update test applications
Browse files Browse the repository at this point in the history
Consolidating samples Applications used for analysis tests to data pks
started by Maayan.

Most used `TackleTestApp` now explicitly uses main git branch, there is
also `gradle` branch expected for TackleTestAppGradle.

Signed-off-by: Marek Aufart <maufart@redhat.com>
  • Loading branch information
aufi committed Jun 7, 2024
1 parent 2423c5b commit 3b261da
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion analysis/tc_tackle_testapp_private_binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

var TackleTestappPrivateBinary = TC{
Name: "tackle-testapp-binary",
Application: data.TackleTestapp,
Application: data.TackleTestappBin,
Identities: []api.Identity{
identity.TackleTestappMaven,
},
Expand Down
11 changes: 2 additions & 9 deletions analysis/tc_tackle_testapp_public.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package analysis

import (
"github.com/konveyor/go-konveyor-tests/data"
"github.com/konveyor/go-konveyor-tests/hack/addon"
"github.com/konveyor/tackle2-hub/api"
)

var TackleTestApp = api.Application{
Name: "Tackle Testapp public",
Repository: &api.Repository{
Kind: "git",
URL: "https://github.com/konveyor/tackle-testapp-public",
},
}

var TackleTestappPublic = TC{
Name: "Tackle Testapp public",
Application: TackleTestApp,
Application: data.TackleTestApp,
Task: Analyze,
WithDeps: false,
Labels: addon.Labels{
Expand Down
3 changes: 2 additions & 1 deletion analysis/tc_tackle_testapp_public_deps.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package analysis

import (
"github.com/konveyor/go-konveyor-tests/data"
"github.com/konveyor/go-konveyor-tests/hack/addon"
"github.com/konveyor/tackle2-hub/api"
"github.com/konveyor/tackle2-hub/test/api/identity"
Expand All @@ -10,7 +11,7 @@ var MavenPublic = identity.Mvn

var TackleTestappPublicWithDeps = TC{
Name: "Tackle Testapp public with deps",
Application: TackleTestApp,
Application: data.TackleTestApp,
Task: Analyze,
WithDeps: true,
Labels: addon.Labels{
Expand Down
3 changes: 2 additions & 1 deletion analysis/tc_tackle_testapp_public_package_filter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package analysis

import (
"github.com/konveyor/go-konveyor-tests/data"
"github.com/konveyor/go-konveyor-tests/hack/addon"
"github.com/konveyor/tackle2-hub/api"
)
Expand All @@ -15,7 +16,7 @@ var TackleTestAppPackageFilter = api.Application{

var TackleTestappPublicPackageFilter = TC{
Name: "Tackle Testapp public with package filter",
Application: TackleTestApp,
Application: data.TackleTestApp,
Task: Analyze,
WithDeps: false,
Labels: addon.Labels{
Expand Down
23 changes: 21 additions & 2 deletions data/application_data.go → data/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
URL: "https://github.com/ibraginsky/book-server",
},
}
TackleTestapp = api.Application{
TackleTestappBin = api.Application{
Name: "tackle-testapp",
Repository: &api.Repository{
Kind: "subversion",
Expand All @@ -37,5 +37,24 @@ var (
UploadBinary = api.Application {
Name: "upload-binary",
}
ApplicationSamples = []api.Application{Minimal, PathfinderGit, BookServer, TackleTestapp, UploadBinary}

// Analysis Application samples based on TackleTestAppPublic
TackleTestApp = api.Application{
Name: "Tackle Testapp public",
Repository: &api.Repository{
Kind: "git",
URL: "https://github.com/konveyor/tackle-testapp-public",
Branch: "main",
},
}
TackleTestAppGradle = api.Application{
Name: "Tackle Testapp public gradle",
Repository: &api.Repository{
Kind: "git",
URL: "https://github.com/konveyor/tackle-testapp-public",
Branch: "gradle",
},
}

ApplicationSamples = []api.Application{Minimal, PathfinderGit, BookServer, TackleTestappBin, UploadBinary, TackleTestApp, TackleTestAppGradle}
)

0 comments on commit 3b261da

Please sign in to comment.