Commit b88cf943 authored by chenguoyan01's avatar chenguoyan01

add instrumented serivce unit test of version

Change-Id: I21b65cd3a03528a1ea14a77d71feb7d2bf7b097e
parent 1797255c
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment