Skip to content

Commit

Permalink
Remove flaky GoConfigMigration Test
Browse files Browse the repository at this point in the history
  • Loading branch information
GaneshSPatil committed Mar 18, 2019
1 parent 5f0cc35 commit da6d73b
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2445,30 +2445,6 @@ public void shouldOnlyUpdateSchemaVersionForMigration116() throws NoSuchMethodEx
assertThat(migratedContent).contains(configContent);
}

@Test
public void shouldOnlyUpdateSchemaVersionForMigration118() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
String configContent = " <elastic>\n" +
" <profiles>\n" +
" <profile id=\"asdf\" pluginId=\"cd.go.contrib.elastic-agent.docker\">\n" +
" <property>\n" +
" <key>Image</key>\n" +
" <value>asdf</value>\n" +
" </property>\n" +
" </profile>" +
" </profiles>" +
" </elastic>";

String configXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+ "<cruise schemaVersion=\"117\">\n"
+ configContent
+ "</cruise>";

String migratedContent = migrateXmlString(configXml, 117, 118);

assertThat(migratedContent).contains("<cruise schemaVersion=\"118\"");
assertThat(migratedContent).contains(configContent);
}

@Test
public void shouldAllowSpecifyingClusterProfileIdAttributeOnProfilesAsPartMigration118() throws Exception {
String configContent = " <elastic>\n" +
Expand Down

0 comments on commit da6d73b

Please sign in to comment.