mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
add instrumented serivce unit test of version
Change-Id: I21b65cd3a03528a1ea14a77d71feb7d2bf7b097e
This commit is contained in:
parent
1797255cd2
commit
b88cf9435e
@ -59,3 +59,11 @@ func TestRecordOperation(t *testing.T) {
|
|||||||
mux.ServeHTTP(w, r)
|
mux.ServeHTTP(w, r)
|
||||||
}), "GET", prometheusUrl, nil, runtimeOperationsLatencyExpected)
|
}), "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)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user