Skip to content

Commit

Permalink
Fixing PrometheusFormatterTest (merge main -> ce/main 85587)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 85592]
  • Loading branch information
thegridman committed Mar 26, 2021
1 parent 2e6e540 commit 1fdee00
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
* Copyright (c) 2000, 2021, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
Expand Down Expand Up @@ -83,7 +83,7 @@ public void testExtendedMetricWithTags() throws IOException
new PrometheusFormatter(true, MetricsResource.Format.Legacy, Collections.singletonList(metric))
.writeMetrics(writer);

String expected = "# TYPE vendor:coherence_cluster_size gauge \n"
String expected = "# TYPE vendor:coherence_cluster_size gauge\n"
+ "# HELP vendor:coherence_cluster_size Cluster size\n"
+ "vendor:coherence_cluster_size{cluster=\"testCluster\", node_id=\"1\", site=\"testSite\"} 3\n";

Expand Down Expand Up @@ -113,7 +113,7 @@ public void testExtendedMetricWithoutTags() throws IOException
new PrometheusFormatter(true, MetricsResource.Format.Legacy, Collections.singletonList(metric))
.writeMetrics(writer);

String expected = "# TYPE vendor:coherence_cluster_size gauge \n"
String expected = "# TYPE vendor:coherence_cluster_size gauge\n"
+ "# HELP vendor:coherence_cluster_size Cluster size\n"
+ "vendor:coherence_cluster_size 3\n";

Expand All @@ -129,7 +129,7 @@ public void testExtendedMetricWithoutDescription() throws IOException
new PrometheusFormatter(true, MetricsResource.Format.Legacy, Collections.singletonList(metric))
.writeMetrics(writer);

String expected = "# TYPE vendor:coherence_cluster_size gauge \n"
String expected = "# TYPE vendor:coherence_cluster_size gauge\n"
+ "vendor:coherence_cluster_size 3\n";

assertThat(writer.toString(), equalTo(expected));
Expand Down

0 comments on commit 1fdee00

Please sign in to comment.