diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-16 14:46:17 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2020-03-16 14:46:17 +0100 |
commit | 4628eeaa4f467500c36f8fe7caf91b666846f302 (patch) | |
tree | b788e15071b9b8e345b7c3ca279fbc38df9a65df | |
parent | 71695b9269d820b72966b6de5f81385b73e3cbd0 (diff) |
Remove temporary test
-rw-r--r-- | node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java index b64530dca3c..5a2ba674d99 100644 --- a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java +++ b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java @@ -145,33 +145,4 @@ public class AutoscalingTest { tester.autoscale(application1, cluster1)); } - @Test - public void testReadLog() throws Exception { - int prefixLength = "[2020-03-13 16:03:39.346] DEBUG : configserver Container.com.yahoo.vespa.hosted.provision.autoscale.NodeMetricsDb\t".length(); - - Set<String> addingHosts = new HashSet<>(); - Set<String> countingHosts = new HashSet<>(); - for (String line : IOUtils.getLines("/Users/bratseth/Documents/log.txt")) { - if (line.length() < prefixLength) continue; - - line = line.substring(prefixLength); - if (line.startsWith("Adding")) { - int i = line.indexOf(" for "); - String addedHost = line.substring(i + 5); - addingHosts.add(addedHost); - } - else if (line.startsWith("Counting")) { - int i = line.indexOf("Non-matches:"); - line = line.substring(i + "Non-matches: [".length(), line.length() - 1); - for (String m : line.split(",")) { - i = m.indexOf(" for "); - String countingHost = m.substring(i + 5); - countingHosts.add(countingHost); - } - } - } - Set<String> overlap = Sets.intersection(addingHosts, countingHosts); - System.out.println("Overlap: " + overlap); - } - } |