@@ -102,29 +102,29 @@ public static ClusterType parse(String value) {
102
102
103
103
@ SuppressWarnings ("unchecked" )
104
104
public void testBackwardsCompatibility () throws Exception {
105
+ // This iteration of nodes is only to get plugins installed on each node. We don't currently use its functionality but in case we
106
+ // ever need version-based dependencies in future BWC tests it will be needed. It's directly copied from similar implementations
107
+ // in other plugins.
105
108
String uri = getUri ();
106
109
Map <String , Map <String , Object >> responseMap = (Map <String , Map <String , Object >>) getAsMap (uri ).get ("nodes" );
107
110
for (Map <String , Object > response : responseMap .values ()) {
108
111
List <Map <String , Object >> plugins = (List <Map <String , Object >>) response .get ("plugins" );
109
112
Set <Object > pluginNames = plugins .stream ().map (map -> map .get ("name" )).collect (Collectors .toSet ());
113
+ assertTrue (pluginNames .contains ("opensearch-flow-framework" ));
110
114
String workflowId = createNoopTemplate ();
111
115
Template t = getTemplate (workflowId );
112
116
switch (CLUSTER_TYPE ) {
113
117
case OLD :
114
- assertTrue (pluginNames .contains ("opensearch-flow-framework" ));
115
118
// mapping for 2.12 does not include time stamps
116
119
assertNull (t .createdTime ());
117
120
assertNull (t .lastUpdatedTime ());
118
121
assertNull (t .lastProvisionedTime ());
119
122
break ;
120
123
case MIXED :
121
- assertTrue (pluginNames .contains ("opensearch-flow-framework" ));
122
124
// Time stamps may or may not be null depending on whether index has been accessed by new version node
123
- // So just test that the template parses
124
125
assertNull (t .lastProvisionedTime ());
125
126
break ;
126
127
case UPGRADED :
127
- assertTrue (pluginNames .contains ("opensearch-flow-framework" ));
128
128
// mapping for 2.13+ includes time stamps
129
129
assertNotNull (t .createdTime ());
130
130
assertEquals (t .createdTime (), t .lastUpdatedTime ());
0 commit comments