generated from konveyor/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 14
/
tc_tackle_testapp_private_binary.go
102 lines (100 loc) · 3.89 KB
/
tc_tackle_testapp_private_binary.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package analysis
import (
"github.com/konveyor/go-konveyor-tests/data"
"github.com/konveyor/go-konveyor-tests/data/identity"
"github.com/konveyor/go-konveyor-tests/hack/addon"
"github.com/konveyor/tackle2-hub/api"
)
var TackleTestappPrivateBinary = TC{
Name: "tackle-testapp-binary",
Application: data.TackleTestapp,
Identities: []api.Identity{
identity.TackleTestappMaven,
},
Task: Analyze,
Labels: addon.Labels{
Included: []string{
"konveyor.io/target=cloud-readiness",
},
},
Binary: true,
Analysis: api.Analysis{
Effort: 15,
Issues: []api.Issue{
{
Category: "mandatory",
Description: "Java native libraries (JNI, JNA)",
Effort: 7,
RuleSet: "cloud-readiness",
Rule: "jni-native-code-00000",
Incidents: []api.Incident{
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/config/ApplicationConfiguration.java",
Line: 17,
Message: "Java native libraries might not run in a cloud or container environment.",
},
},
},
{
Category: "mandatory",
Description: "File system - Java IO",
Effort: 1,
RuleSet: "cloud-readiness",
Rule: "local-storage-00001",
Incidents: []api.Incident{
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/config/ApplicationConfiguration.java",
Line: 8,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 39,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 40,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 41,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 42,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 61,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java",
Line: 62,
Message: "An application running inside a container could lose access to a file in local storage.",
},
{
File: "/shared/bin/maven/java-project/src/main/java/io/konveyor/demo/ordermanagement/exception/handler/ExceptionHandlingController.java",
Line: 20,
Message: "An application running inside a container could lose access to a file in local storage.",
},
},
},
},
},
AnalysisTags: []api.Tag{
{Name: "Servlet", Category: api.Ref{Name: "HTTP"}},
{Name: "JNI", Category: api.Ref{Name: "Other"}},
{Name: "Servlet", Category: api.Ref{Name: "Connect"}},
{Name: "JNI", Category: api.Ref{Name: "Connect"}},
{Name: "Servlet", Category: api.Ref{Name: "Java EE"}},
{Name: "JNI", Category: api.Ref{Name: "Java EE"}},
{Name: "JPA named queries", Category: api.Ref{Name: "Persistence"}},
{Name: "JPA named queries", Category: api.Ref{Name: "Java EE"}},
{Name: "JPA named queries", Category: api.Ref{Name: "Store"}},
},
}