Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestImagePullDurationMetric (0.2 sec)

  1. pkg/kubelet/metrics/metrics_test.go

    */
    
    package metrics
    
    import (
    	"os"
    	"testing"
    
    	"k8s.io/component-base/metrics/testutil"
    )
    
    const imagePullDurationKey = "kubelet_" + ImagePullDurationKey
    
    func TestImagePullDurationMetric(t *testing.T) {
    	t.Run("register image pull duration", func(t *testing.T) {
    		Register()
    		defer clearMetrics()
    
    		// Pairs of image size in bytes and pull duration in seconds
    		dataPoints := [][]float64{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top