File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
staging/src/k8s.io/component-base/metrics/testutil Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ func TestNewFakeKubeRegistry(t *testing.T) {
27
27
registryVersion := "1.18.0"
28
28
counter := metrics .NewCounter (
29
29
& metrics.CounterOpts {
30
- Name : "test_counter_name " ,
30
+ Name : "test_normal_total " ,
31
31
Help : "counter help" ,
32
32
},
33
33
)
34
34
deprecatedCounter := metrics .NewCounter (
35
35
& metrics.CounterOpts {
36
- Name : "test_deprecated_counter " ,
36
+ Name : "test_deprecated_total " ,
37
37
Help : "counter help" ,
38
38
DeprecatedVersion : "1.18.0" ,
39
39
},
@@ -55,18 +55,18 @@ func TestNewFakeKubeRegistry(t *testing.T) {
55
55
name : "normal" ,
56
56
metric : counter ,
57
57
expected : `
58
- # HELP test_counter_name [ALPHA] counter help
59
- # TYPE test_counter_name counter
60
- test_counter_name 0
58
+ # HELP test_normal_total [ALPHA] counter help
59
+ # TYPE test_normal_total counter
60
+ test_normal_total 0
61
61
` ,
62
62
},
63
63
{
64
64
name : "deprecated" ,
65
65
metric : deprecatedCounter ,
66
66
expected : `
67
- # HELP test_deprecated_counter [ALPHA] (Deprecated since 1.18.0) counter help
68
- # TYPE test_deprecated_counter counter
69
- test_deprecated_counter 0
67
+ # HELP test_deprecated_total [ALPHA] (Deprecated since 1.18.0) counter help
68
+ # TYPE test_deprecated_total counter
69
+ test_deprecated_total 0
70
70
` ,
71
71
},
72
72
{
You can’t perform that action at this time.
0 commit comments