-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIGENG-328 Added 'ReasonableDefaults' rules (#37)
* MIGENG-328 Added 'ReasonableDefaults' rules * MIGENG-328 Refactored tests * MIGENG-328 removed distributionManagement (#4) * MIGENG-328 Refactored tests Co-authored-by: Jonathan Vila <[email protected]>
- Loading branch information
1 parent
e84c302
commit 670af60
Showing
24 changed files
with
417 additions
and
942 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
34 changes: 34 additions & 0 deletions
34
...main/resources/org/jboss/xavier/analytics/rules/workload/inventory/ReasonableDefaults.drl
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,34 @@ | ||
package org.jboss.xavier.analytics.rules.workload.inventory; | ||
|
||
import org.jboss.xavier.analytics.pojo.output.workload.inventory.WorkloadInventoryReportModel | ||
|
||
dialect "java" | ||
agenda-group "ReasonableDefaults" | ||
auto-focus true | ||
|
||
rule "Fill 'datacenter' field with reasonable default" | ||
when | ||
workloadInventoryReport : WorkloadInventoryReportModel( | ||
datacenter == null | ||
) | ||
then | ||
workloadInventoryReport.setDatacenter(WorkloadInventoryReportModel.DATACENTER_DEFAULT_VALUE); | ||
end | ||
|
||
rule "Fill 'cluster' field with reasonable default" | ||
when | ||
workloadInventoryReport : WorkloadInventoryReportModel( | ||
cluster == null | ||
) | ||
then | ||
workloadInventoryReport.setCluster(WorkloadInventoryReportModel.CLUSTER_DEFAULT_VALUE); | ||
end | ||
|
||
rule "Fill 'host_name' field with reasonable default" | ||
when | ||
workloadInventoryReport : WorkloadInventoryReportModel( | ||
host_name == null | ||
) | ||
then | ||
workloadInventoryReport.setHost_name(WorkloadInventoryReportModel.HOST_NAME_DEFAULT_VALUE); | ||
end |
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
Oops, something went wrong.