intel-device-plugins-for-kubernetes icon indicating copy to clipboard operation
intel-device-plugins-for-kubernetes copied to clipboard

envtest: tests for upgrades fail when the tests for CRUD operations fail.

Open hj-johannes-lee opened this issue 3 years ago • 0 comments

If there is a failure in the tests for CRUD operations, then tests for upgrades also fail with the message below. It seems that daemonset created during the CRUD operations remain 'not-deleted' and it causes the error.

  Expected
      <*errors.StatusError | 0xc00033d400>: {
          ErrStatus: {
              TypeMeta: {Kind: "", APIVersion: ""},
              ListMeta: {
                  SelfLink: "",
                  ResourceVersion: "",
                  Continue: "",
                  RemainingItemCount: nil,
              },
              Status: "Failure",
              Message: "daemonsets.apps \"intel-qat-plugin\" already exists",
              Reason: "AlreadyExists",
              Details: {
                  Name: "intel-qat-plugin",
                  Group: "apps",
                  Kind: "daemonsets",
                  UID: "",
                  Causes: nil,
                  RetryAfterSeconds: 0,
              },
              Code: 409,
          },
      }
  to be nil

It may not be an urgent matter we need to fix, but it may be better to make the tests for CRUD operations are independent to other following tests under it.

hj-johannes-lee avatar Mar 08 '22 11:03 hj-johannes-lee