mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 12:17:52 +00:00
add instrumented serivce unit test of version
Change-Id: I21b65cd3a03528a1ea14a77d71feb7d2bf7b097e
This commit is contained in:
@@ -59,3 +59,11 @@ func TestRecordOperation(t *testing.T) {
|
||||
mux.ServeHTTP(w, r)
|
||||
}), "GET", prometheusUrl, nil, runtimeOperationsLatencyExpected)
|
||||
}
|
||||
|
||||
func TestInstrumentedVersion(t *testing.T) {
|
||||
fakeRuntime, _, _, _ := createTestRuntimeManager()
|
||||
irs := newInstrumentedRuntimeService(fakeRuntime)
|
||||
vr, err := irs.Version("1")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, kubeRuntimeAPIVersion, vr.Version)
|
||||
}
|
||||
|
Reference in New Issue
Block a user