Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Kubernetes-commit: 9189c3d55997e8a341316f084636742566678d14
  • Loading branch information
Han Kang authored and k8s-publishing-bot committed Jul 12, 2023
1 parent c4e269a commit 44d187f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion featuregate/feature_gate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func TestFeatureGateMetrics(t *testing.T) {
const testBetaDisabled Feature = "TestBetaDisabled"
testedMetrics := []string{"kubernetes_feature_enabled"}
expectedOutput := `
# HELP kubernetes_feature_enabled [ALPHA] This metric records the data about the stage and enablement of a k8s feature.
# HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature.
# TYPE kubernetes_feature_enabled gauge
kubernetes_feature_enabled{name="TestAlpha",stage="ALPHA"} 0
kubernetes_feature_enabled{name="TestBeta",stage="BETA"} 1
Expand Down
4 changes: 2 additions & 2 deletions metrics/prometheus/feature/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestObserveHealthcheck(t *testing.T) {
stage: "ALPHA",
enabled: true,
want: `
# HELP kubernetes_feature_enabled [ALPHA] This metric records the data about the stage and enablement of a k8s feature.
# HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature.
# TYPE kubernetes_feature_enabled gauge
kubernetes_feature_enabled{name="feature-a",stage="ALPHA"} 1
`,
Expand All @@ -57,7 +57,7 @@ func TestObserveHealthcheck(t *testing.T) {
stage: "BETA",
enabled: false,
want: `
# HELP kubernetes_feature_enabled [ALPHA] This metric records the data about the stage and enablement of a k8s feature.
# HELP kubernetes_feature_enabled [BETA] This metric records the data about the stage and enablement of a k8s feature.
# TYPE kubernetes_feature_enabled gauge
kubernetes_feature_enabled{name="feature-b",stage="BETA"} 0
`,
Expand Down

0 comments on commit 44d187f

Please sign in to comment.