Skip to content

Unit testing with client-go #641

@briantopping

Description

@briantopping

Getting some experience with RIO, having problems testing: According to to this issue, client-go will not support setting an API object timestamp returned via GetCreationTimestamp. This causes errant behavior in UpdatingObjectManager.Manage as a non-zero creation timestamp is used to indicate various states.

Of course I could test it differently. Looking through the lens of community adoption though, it becomes more difficult to "drop in" the library as a prototype and have existing unit tests show equivalent behavior.

Curious how this issue strikes others. I think upstream is wrong, that there should be some means of some pluggable behavior, but there's practically no traction on the issue in client-go for years.

EDIT: also see #589

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions