Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRA test driver: GRPC calls #118351

Merged
merged 1 commit into from
Jun 1, 2023

Commits on Jun 1, 2023

  1. e2e dra: collect and check GRPC calls

    If kubelet plugin registration fails, it would be good to know more about the
    communication with kubelet. Capturing the GRPC calls and then checking that
    makes the failure messages more informative. Here's an example where a failure
    was triggered by temporarily modifying the check so that it didn't find the
    call:
    
      [FAILED] Timed out after 30.000s.
      Expected:
          <[]app.GRPCCall | len:2, cap:2>: [
              {
                  FullMethod: "/pluginregistration.Registration/GetInfo",
                  Request:
                      {},
                  Response:
                      endpoint: /var/lib/kubelet/plugins/test-driver/dra.sock
                      name: test-driver.cdi.k8s.io
                      supported_versions:
                      - 1.0.0
                      type: DRAPlugin,
                  Err: nil,
              },
              {
                  FullMethod: "/pluginregistration.Registration/NotifyRegistrationStatus",
                  Request:
                      plugin_registered: true,
                  Response:
                      {},
                  Err: nil,
              },
          ]
      to contain successful NotifyRegistrationStatus call
    pohly committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    d0a6473 View commit details
    Browse the repository at this point in the history