Use Running Pods Endpoint for testing

* Use the VKUBELET API for fetching the pods during testing, which
   makes it easier to run testing without wiring up an entire cluster
 * Runningpods does not require each provider to implement the
   optional stats interface for testing.
This commit is contained in:
Sargun Dhillon
2019-05-17 16:18:18 -07:00
parent d183dbbe17
commit ec8972fef3
5 changed files with 237 additions and 164 deletions

View File

@@ -42,7 +42,7 @@ func TestMain(m *testing.M) {
// Create a new instance of the test framework targeting the specified node.
f = framework.NewTestingFramework(kubeconfig, namespace, nodeName)
// Wait for the virtual-kubelet pod to be ready.
if err := f.WaitUntilPodReady(namespace, nodeName); err != nil {
if _, err := f.WaitUntilPodReady(namespace, nodeName); err != nil {
panic(err)
}
// Run the test suite.