Skip to content

Refactor service unit tests to use KnClient mock framework #358

@rhuss

Description

@rhuss

In what area(s)?

Describe the feature:

In order to simplify the maintenance of our tests, existing tests in services should be refactored to use the MockKnClient support class. An example of such a test can be found in service_create_mock_test.go

Ideally all the test classes

  • service_create_test.go
  • service_list_test.go
  • service_describe_test.go
  • service_update_test.go

should be rewritten (and the mock sample integrated into service_create_test)

Maybe also add as service_delete_test.go which seems to be missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor.kind/featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions