cbeneke / hcloud-fip-controller

Kubernetes controller to (re-)assign floating IPs on hetzner cloud instances
Apache License 2.0
123 stars 14 forks source link

Create unit tests #52

Closed phiphi282 closed 4 years ago

phiphi282 commented 4 years ago

Boilerplate for creating unit tests for hcloud, kubernetes and config related functions.

Needs to be rewritten after #39 is merged

Fix #6

phiphi282 commented 4 years ago

Coverage is at 62.8 % for internal package currently.

All important function have tests (no init functions and leader election) There is still room for improvement since most of what I tested were positive tests.

But I guess this is already a good chunk.