Skip to content

Commit b8ce357

Browse files
authored
Added Eiffel Versions to Extraction rules files. (#271)
1 parent 6d6d6ac commit b8ce357

21 files changed

+1425
-17
lines changed

src/integrationtests/java/com/ericsson/ei/integrationtests/ArtifactFlowRunnerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void before() {
2121
System.setProperty("missedNotificationCollectionName", "missed_notification_artifact_flow");
2222
System.setProperty("sessions.collection.name", "sessions_artifact_flow");
2323

24-
System.setProperty("rules.path", "/ArtifactRules.json");
24+
System.setProperty("rules.path", "/rules/ArtifactRules-Eiffel-Agen-Version.json");
2525
System.setProperty("rabbitmq.consumerName", "artifact_queue");
2626
}
2727
}

src/integrationtests/java/com/ericsson/ei/integrationtests/SourceChangeFlowRunnerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void before() {
2121
System.setProperty("missedNotificationCollectionName", "missed_notification_source_change_flow");
2222
System.setProperty("sessions.collection.name", "sessions_source_change_flow");
2323

24-
System.setProperty("rules.path", "/SourceChangeObjectRules.json");
24+
System.setProperty("rules.path", "/rules/SourceChangeObjectRules-Eiffel-Agen-Version.json");
2525
System.setProperty("rabbitmq.consumerName", "source_change_queue");
2626
}
2727
}

src/integrationtests/java/com/ericsson/ei/integrationtests/TestExecutionRunnerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void before() {
2121
System.setProperty("missedNotificationCollectionName", "missed_notification_test_execution_change_flow");
2222
System.setProperty("sessions.collection.name", "sessions_test_execution_flow");
2323

24-
System.setProperty("rules.path", "/TestExecutionObjectRules.json");
24+
System.setProperty("rules.path", "/rules/TestExecutionObjectRules-Eiffel-Agen-Version.json");
2525
System.setProperty("rabbitmq.consumerName", "test_execution_queue");
2626
}
2727
}

src/integrationtests/resources/features/ArtifactFlowIT.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Feature: Artifact flow Integrationtest
2323
on mail subscriptions
2424

2525
# Setup Eiffel Intelligence
26-
Given the rules "src/main/resources/ArtifactRules.json"
26+
Given the rules "src/main/resources/rules/ArtifactRules-Eiffel-Agen-Version.json"
2727
And the events "src/test/resources/ArtifactFlowTestEvents.json"
2828
And the resulting aggregated object "src/test/resources/AggregatedDocumentInternalCompositionLatestIT.json";
2929
And the upstream input "src/test/resources/upStreamInput.json"

src/integrationtests/resources/features/SourceChangeFlowIT.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Feature: Source change flow integrationtest
2323
REST-POST subscriptions using buildWithParameters and JMESPATH extracted correct
2424
data to add to parameter
2525

26-
Given the rules "src/main/resources/SourceChangeObjectRules.json"
26+
Given the rules "src/main/resources/rules/SourceChangeObjectRules-Eiffel-Agen-Version.json"
2727
And the events "src/test/resources/TestSourceChangeObjectEvents.json"
2828
And the upstream input "src/test/resources/UpstreamEventsForSourceChange.json"
2929
And the resulting aggregated object "src/test/resources/aggregatedSourceChangeObject.json";
@@ -55,7 +55,7 @@ Feature: Source change flow integrationtest
5555
REST-POST subscriptions using buildWithParameters and JMESPATH extracted correct
5656
data to add to parameter
5757

58-
Given the rules "src/main/resources/SourceChangeObjectRules.json"
58+
Given the rules "src/main/resources/rules/SourceChangeObjectRules-Eiffel-Agen-Version.json"
5959
And the events "src/test/resources/TestSourceChangeObjectEvents.json"
6060
And the upstream input "src/test/resources/UpstreamEventsForSourceChange.json"
6161
And the resulting aggregated object "src/test/resources/aggregatedSourceChangeObject.json";

src/integrationtests/resources/features/TestExecutionFlowIT.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Test execution flow integrationtest
2424
data to add to parameter
2525

2626
# Setup Eiffel Intelligence
27-
Given the rules "src/main/resources/TestExecutionObjectRules.json"
27+
Given the rules "src/main/resources/rules/TestExecutionObjectRules-Eiffel-Agen-Version.json"
2828
And the events "src/test/resources/TestExecutionTestEvents.json"
2929
And the resulting aggregated object "src/test/resources/aggregatedTestActivityObject.json";
3030
Then the expected aggregated object ID is "e46ef12d-25gb-4d7y-b9fd-8763re66de47"
@@ -55,7 +55,7 @@ Feature: Test execution flow integrationtest
5555
data to add as a json parameter in the body. This with multiple parameters.
5656

5757
# Setup Eiffel Intelligence
58-
Given the rules "src/main/resources/TestExecutionObjectRules.json"
58+
Given the rules "src/main/resources/rules/TestExecutionObjectRules-Eiffel-Agen-Version.json"
5959
And the events "src/test/resources/TestExecutionTestEvents.json"
6060
And the resulting aggregated object "src/test/resources/aggregatedTestActivityObject.json";
6161
Then the expected aggregated object ID is "e46ef12d-25gb-4d7y-b9fd-8763re66de47"

src/main/resources/ArtifactRules.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"StartEvent": "YES",
88
"IdentifyRules" : "[meta.id]",
99
"MatchIdRules": {"_id": "%IdentifyRules_objid%"},
10-
"ExtractionRules" : "{ id : meta.id, type : meta.type, time : meta.time, identity : data.identity, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
10+
"ExtractionRules" : "{ id : meta.id, type : meta.type, time : meta.time, gav : data.gav, fileInformation : data.fileInformation, buildCommand : data.buildCommand }",
1111
"DownstreamIdentifyRules" : "links | [?type=='COMPOSITION'].target",
1212
"DownstreamMergeRules": "{\"externalComposition\":{\"eventId\":%IdentifyRules%}}",
1313
"DownstreamExtractionRules" : "{artifacts: [{id : meta.id}]}",
1414
"HistoryIdentifyRules":"links | [?type=='COMPOSITION'].target",
15-
"HistoryExtractionRules":"{id : meta.id, identity : data.identity, fileInformation : data.fileInformation}",
15+
"HistoryExtractionRules":"{id : meta.id, gav : data.gav, fileInformation : data.fileInformation}",
1616
"HistoryPathRules": "{artifacts: [{id: meta.id}]}",
1717
"ProcessRules" : null
1818
},

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build.version=
99
server.port: 8090
1010

1111
# path to files with rules for aggregating objects
12-
rules.path: /ArtifactRules.json
12+
rules.path: /rules/ArtifactRules-Eiffel-Agen-Version.json
1313

1414
# logging levels can be set with the flag below for the top packages
1515
# deactivated by default because Travis will fail due to log file size.

0 commit comments

Comments
 (0)