Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contains: catch wrong "multi elements contained expectation" #224

Open
Antonboom opened this issue Feb 13, 2025 · 0 comments
Open

contains: catch wrong "multi elements contained expectation" #224

Antonboom opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Antonboom
Copy link
Owner

Antonboom commented Feb 13, 2025

Bubbled while formatter.require-string-msg (#201) testing:

	assert.Contains(t, cadvisorInfoToUserDefinedMetrics(&cInfo),
		statsapi.UserDefinedMetric{
			UserDefinedMetricDescriptor: statsapi.UserDefinedMetricDescriptor{
				Name:  "qos",
				Type:  statsapi.MetricGauge,
				Units: "per second",
			},
			Time:  metav1.NewTime(timestamp2),
			Value: 100,
		},
		statsapi.UserDefinedMetric{
			UserDefinedMetricDescriptor: statsapi.UserDefinedMetricDescriptor{
				Name:  "cpuLoad",
				Type:  statsapi.MetricCumulative,
				Units: "count",
			},
			Time:  metav1.NewTime(timestamp2),
			Value: 2.1,
		})
@Antonboom Antonboom added enhancement New feature or request good first issue Good for newcomers labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant