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.
Signed-off-by: Marek Aufart <maufart@redhat.com>
- Loading branch information
Showing
8 changed files
with
138 additions
and
15 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
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,109 @@ | ||
package analysis | ||
|
||
import ( | ||
"github.com/konveyor/go-konveyor-tests/hack/addon" | ||
"github.com/konveyor/tackle2-hub/api" | ||
) | ||
|
||
var TackleTestappPublic = TC{ | ||
Name: "Tackle Testapp public", | ||
Application: api.Application{ | ||
Name: "Tackle Testapp public", | ||
Repository: &api.Repository{ | ||
Kind: "git", | ||
URL: "https://github.com/konveyor/tackle-testapp-public", | ||
}, | ||
}, | ||
Task: Analyze, | ||
Labels: addon.Labels{ | ||
Included: []string{ | ||
"konveyor.io/target=linux", | ||
"konveyor.io/target=cloud-readiness", | ||
}, | ||
}, | ||
Analysis: api.Analysis{ | ||
Effort: 10, | ||
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: 0, | ||
Message: "When migrating environments, hard-coded IP addresses may need to be modified or eliminated.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/resources/persistence.properties", | ||
Line: 0, | ||
Message: "When migrating environments, hard-coded IP addresses may need to be modified or eliminated.", | ||
}, | ||
}, | ||
}, | ||
{ | ||
Category: "mandatory", | ||
Description: "File system - Java IO\nAn application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
Effort: 1, | ||
RuleSet: "openshift", | ||
Rule: "local-storage-00001", | ||
Incidents: []api.Incident{ | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
{ | ||
File: "/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java", | ||
Line: 0, | ||
Message: "An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache.", | ||
}, | ||
}, | ||
}, | ||
{ | ||
Category: "mandatory", | ||
Description: "Windows file system path\nThis file system path is Microsoft Windows platform dependent. It needs to be replaced with a Linux-style path.", | ||
Effort: 1, | ||
RuleSet: "os/windows", | ||
Rule: "os-specific-00001", | ||
Incidents: []api.Incident{ | ||
{ | ||
File: "/addon/source/tackle-testapp-public/.git/hooks/fsmonitor-watchman.sample", | ||
Line: 0, | ||
Message: "This file system path is Microsoft Windows platform dependent. It needs to be replaced with a Linux-style path.", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
// Tags are empty right now. | ||
AnalysisTags: []api.Tag{ | ||
}, | ||
} |
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
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