generated from konveyor/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 adding test case to make sure that the scopes work
- Loading branch information
1 parent
eaca27b
commit a52a90f
Showing
4 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package analysis | ||
|
||
import ( | ||
"github.com/konveyor/go-konveyor-tests/hack/addon" | ||
"github.com/konveyor/tackle2-hub/api" | ||
) | ||
|
||
var TackleTestAppPackageFilter = api.Application{ | ||
Name: "Tackle Testapp public", | ||
Repository: &api.Repository{ | ||
Kind: "git", | ||
URL: "https://github.com/konveyor/tackle-testapp-public", | ||
}, | ||
} | ||
|
||
var TackleTestappPublicPackageFilter = TC{ | ||
Name: "Tackle Testapp public", | ||
Application: TackleTestApp, | ||
Task: Analyze, | ||
WithDeps: false, | ||
Labels: addon.Labels{ | ||
Included: []string{ | ||
"konveyor.io/target=cloud-readiness", | ||
"konveyor.io/target=linux", | ||
}, | ||
}, | ||
Identities: []api.Identity{}, | ||
Scope: &addon.Scope{ | ||
Packages: struct { | ||
Included []string "json:\"included,omitempty\"" | ||
Excluded []string "json:\"excluded,omitempty\"" | ||
}{ | ||
Included: []string{"com.example"}, | ||
}, | ||
}, | ||
Analysis: api.Analysis{ | ||
Effort: 9, | ||
Issues: []api.Issue{ | ||
{ | ||
Category: "mandatory", | ||
Description: "Hardcoded IP Address\nWhen migrating environments, hard-coded IP addresses may need to be modified or eliminated.", | ||
Effort: 1, | ||
RuleSet: "discovery-rules", | ||
Rule: "hardcoded-ip-address", | ||
Incidents: []api.Incident{ | ||
{ | ||
File: "/addon/source/tackle-testapp-public/target/classes/persistence.properties", | ||
Line: 2, | ||
Message: "When migrating environments, hard-coded IP addresses may need to be modified or eliminated.", | ||
CodeSnip: "jdbc.url=jdbc:oracle:thin:@10.19.2.93:15", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/resources/persistence.properties", | ||
Line: 2, | ||
Message: "When migrating environments, hard-coded IP addresses may need to be modified or eliminated.", | ||
CodeSnip: "jdbc.url=jdbc:oracle:thin:@10.19.2.93:15", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
AnalysisTags: []api.Tag{ | ||
{Name: "EJB XML", Category: api.Ref{Name: "Bean"}}, | ||
{Name: "Servlet", Category: api.Ref{Name: "HTTP"}}, | ||
{Name: "Properties", Category: api.Ref{Name: "Other"}}, | ||
{Name: "Java EE Batch", Category: api.Ref{Name: "Processing"}}, | ||
{Name: "Java EE Batch", Category: api.Ref{Name: "Java EE"}}, | ||
{Name: "Servlet", Category: api.Ref{Name: "Java EE"}}, | ||
{Name: "EJB XML", Category: api.Ref{Name: "Java EE"}}, | ||
{Name: "Properties", Category: api.Ref{Name: "Sustain"}}, | ||
{Name: "Properties", Category: api.Ref{Name: "Embedded"}}, | ||
{Name: "Java EE Batch", Category: api.Ref{Name: "Execute"}}, | ||
{Name: "EJB XML", Category: api.Ref{Name: "Connect"}}, | ||
{Name: "Servlet", Category: api.Ref{Name: "Connect"}}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters